Skip to content

Commit

Permalink
support message container
Browse files Browse the repository at this point in the history
  • Loading branch information
niceue committed Nov 16, 2014
1 parent fb82b73 commit 51562c5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions jquery.validator.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* http://niceue.com/validator/
*/
.n-inline-block,.nice-validator input,.nice-validator select,.nice-validator textarea,.msg-wrap,.n-icon,.n-msg{display:inline-block;*display:inline;*zoom:1}
.nice-validator .msg-container .msg-box{display:block}
.nice-validator .msg-container .msg-wrap{position:static}
.msg-box{position:relative;*zoom:1}
.msg-wrap{position:relative;white-space:nowrap}
.msg-wrap,.n-icon,.n-msg{vertical-align:top}
Expand Down
2 changes: 1 addition & 1 deletion jquery.validator.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/jquery.validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@
stopOnError {Boolean} false Whether to stop validate when found an error input
focusCleanup {Boolean} false Whether to clean up the field message when focus the field
focusInvalid {Boolean} true Whether to focus the field that is invalid
ignoreBlank {Boolean} false When the field has no value, whether to ignore verification
ignore {jqSelector} '' Ignored fields (Using jQuery selector)
beforeSubmit {Function} Do something before submiting the form
Expand Down
4 changes: 4 additions & 0 deletions src/themes/base.styl
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ inline-block() {
input, select, textarea {
@extend .n-inline-block
}
.msg-container {
.msg-box {display: block;}
.msg-wrap {position:static;}
}
}
.msg-box {
position:relative;
Expand Down

0 comments on commit 51562c5

Please sign in to comment.