Skip to content

Releases: niceue/nice-validator

1.1.5

26 Mar 13:12
Compare
Choose a tag to compare

Fixed

  • Fixed required(fn) message issue

1.1.4

06 May 15:51
Compare
Choose a tag to compare

Fixed

  • Bug of rule "match" with "display" options ( #267 )

1.1.3

09 Dec 10:58
Compare
Choose a tag to compare

Improvements

  • Now custom rules are compatible with other unknown return value types

Fixed

  • Rollback some changes for style issue and build issue
  • Js error in IE8

1.1.2

13 Sep 11:57
Compare
Choose a tag to compare

Improvements

  • Be careful to fix the bootstrap input box style

Fixed

  • radio binding rules and target to the general DOM repeatedly insert the message

1.1.1

13 Jun 15:45
Compare
Choose a tag to compare

Improvements

  • No longer limit the target element must be inside the form
  • Support validation input box without id and name

Changes

  • Removed aria-required attribute

1.0.10

07 Feb 16:11
Compare
Choose a tag to compare

Fixed

#255 Fix data-target does'nt take effect in some cases

1.0.9

26 Dec 17:00
Compare
Choose a tag to compare

Fixed

#251 Javascript throws an exception when the input that has no validation rule loses focus

1.0.8

18 Nov 15:08
Compare
Choose a tag to compare

Fixed

Fixed IE7 compatible with jQuery 1.7
Fixed js initialization parameters are incorrect #242

1.0.7

09 Sep 14:22
Compare
Choose a tag to compare

FIxed

fixed contentEditable judgement

1.0.6

28 Aug 15:52
Compare
Choose a tag to compare

New

Now you can use the "showmsg" event to do the same thing as the "showMsg" method.

// before
$("#form1").validator("showMsg", {
    "mobile": "This phone number has been used",
    "email": "Email is required"
})

// after
$("#form1").trigger("showmsg", [{
    "mobile": "This phone number has been used",
    "email": "Email is required"
}])

Fixed

  • Fixes in some cases the valid callback is not triggered for the first time
  • Fixed the use of the function target does not come into effect
  • Fixed IE7 compatibility issues
  • Fixed this.isValid is not accurate in validation callback
  • Fixed Requirejs usage.
    Now support the following configuration for requirejs:
requirejs.config({
    paths: {
        jquery: 'http://cdn.jsdelivr.net/jquery/1.12.3/jquery.min',
        validator: 'path/to/nice-validator/local/zh-CN'
    },
    shim: {
        validator: ['path/to/nice-validator/jquery.validator.js?css']
    }
});

require(['jquery', 'validator'], function($){
    $('#form1').validator();
});
  • Avoid JavaScript keyword
  • degrade uglify to 1.5.4