Skip to content

Commit 09c89a2

Browse files
committed
[build] 1.0.5
1 parent b22eb62 commit 09c89a2

File tree

7 files changed

+21
-16
lines changed

7 files changed

+21
-16
lines changed

dist/jquery.validator.js

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
/*! nice-validator 1.0.4
1+
/*! nice-validator 1.0.5
22
* (c) 2012-2016 Jony Zhang <[email protected]>, MIT Licensed
33
* https://github.com/niceue/nice-validator
44
*/
55
;(function(factory) {
66
typeof module === "object" && module.exports ? module.exports = factory( require( "jquery" ) ) :
7-
typeof define === 'function' && define.amd ? require(['jquery'], factory) :
7+
typeof define === 'function' && define.amd ? define(['jquery'], factory) :
88
factory(jQuery);
99
}(function($, undefined) {
1010
"use strict";
@@ -786,13 +786,18 @@
786786
var me = this,
787787
el = e.target;
788788

789-
if ( $(el).is(INPUT_SELECTOR) ) {
790-
me.showMsg(el, {type: type, msg: msg});
789+
if ( me.$el.is(el) ) {
790+
if (isObject(type)) {
791+
me.showMsg(type)
792+
}
793+
else if ( type === 'tip' ) {
794+
me.$el.find(INPUT_SELECTOR +"["+ DATA_TIP +"]", el).each(function(){
795+
me.showMsg(this, {type: type, msg: msg});
796+
});
797+
}
791798
}
792-
else if ( type === 'tip' ) {
793-
me.$el.find(INPUT_SELECTOR +"["+ DATA_TIP +"]", el).each(function(){
794-
me.showMsg(this, {type: type, msg: msg});
795-
});
799+
else {
800+
me.showMsg(el, {type: type, msg: msg});
796801
}
797802
},
798803

@@ -2104,7 +2109,7 @@
21042109
el.href = Validator.css = dir + 'jquery.validator.css';
21052110
node.parentNode.insertBefore(el, node);
21062111
}
2107-
if (!Validator.local && params.local !== '') {
2112+
if (!Validator.local && ~str.indexOf('local') && params.local !== '') {
21082113
Validator.local = (params.local || doc.documentElement.lang || 'en').replace('_','-');
21092114
Validator.pending = 1;
21102115
el = doc.createElement('script');

dist/jquery.validator.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/local/en.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*********************************/
55
(function(factory) {
66
typeof module === "object" && module.exports ? module.exports = factory( require( "jquery" ) ) :
7-
typeof define === 'function' && define.amd ? require(['jquery'], factory) :
7+
typeof define === 'function' && define.amd ? define(['jquery'], factory) :
88
factory(jQuery);
99
}(function($) {
1010

dist/local/ja.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*********************************/
55
(function(factory) {
66
typeof module === "object" && module.exports ? module.exports = factory( require( "jquery" ) ) :
7-
typeof define === 'function' && define.amd ? require(['jquery'], factory) :
7+
typeof define === 'function' && define.amd ? define(['jquery'], factory) :
88
factory(jQuery);
99
}(function($) {
1010

dist/local/zh-CN.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*********************************/
55
(function(factory) {
66
typeof module === "object" && module.exports ? module.exports = factory( require( "jquery" ) ) :
7-
typeof define === 'function' && define.amd ? require(['jquery'], factory) :
7+
typeof define === 'function' && define.amd ? define(['jquery'], factory) :
88
factory(jQuery);
99
}(function($) {
1010

dist/local/zh-TW.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*********************************/
55
(function(factory) {
66
typeof module === "object" && module.exports ? module.exports = factory( require( "jquery" ) ) :
7-
typeof define === 'function' && define.amd ? require(['jquery'], factory) :
7+
typeof define === 'function' && define.amd ? define(['jquery'], factory) :
88
factory(jQuery);
99
}(function($) {
1010

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nice-validator",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"author": "Jony Zhang <[email protected]>",
55
"license": "MIT",
66
"description": "Simple, smart and pleasant verification solution.",

0 commit comments

Comments
 (0)