Skip to content

Commit

Permalink
build [1.1.3]
Browse files Browse the repository at this point in the history
  • Loading branch information
niceue committed Dec 9, 2017
1 parent 6233c6e commit 25dda7e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
8 changes: 4 additions & 4 deletions dist/jquery.validator.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.n-inline-block,
.input-group input,
.input-group select,
.input-group textarea,
.input-group [contenteditable],
.nice-validator input,
.nice-validator select,
.nice-validator textarea,
.nice-validator [contenteditable],
.msg-wrap,
.n-icon,
.n-msg {
Expand Down
9 changes: 6 additions & 3 deletions dist/jquery.validator.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! nice-validator 1.1.2
/*! nice-validator 1.1.3
* (c) 2012-2017 Jony Zhang <[email protected]>, MIT Licensed
* https://github.com/niceue/nice-validator
*/
Expand Down Expand Up @@ -515,7 +515,7 @@
var me = this,
opt = me.options,
form = e.target,
canSubmit = e.type === 'submit' && !e.isDefaultPrevented();
canSubmit = e.type === 'submit' && form.tagName === 'FORM' && !e.isDefaultPrevented();

e.preventDefault();

Expand Down Expand Up @@ -890,6 +890,9 @@
isValid = true;
}
}
else {
isValid = !!ret
}

rule = field._rules[field._i];
if (rule.not) {
Expand Down Expand Up @@ -1285,7 +1288,7 @@
msgHide.call(me, $msgbox, msgOpt.type);
} else {
$msgbox[0].style.display = 'none';
$msgbox[0].innerHTML = null;
$msgbox[0].innerHTML = '';
}
},

Expand Down
Loading

0 comments on commit 25dda7e

Please sign in to comment.