mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-29 04:54:12 +03:00
dist
This commit is contained in:
parent
e0db93b7f5
commit
9fa2cde8d4
2
dist/css/bootstrap-material-design.css.map
vendored
2
dist/css/bootstrap-material-design.css.map
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
11
dist/js/material.js
vendored
11
dist/js/material.js
vendored
|
@ -30,6 +30,7 @@
|
||||||
$.material = {
|
$.material = {
|
||||||
"options": {
|
"options": {
|
||||||
// These options set what will be started by $.material.init()
|
// These options set what will be started by $.material.init()
|
||||||
|
"validate": true,
|
||||||
"input": true,
|
"input": true,
|
||||||
"ripples": true,
|
"ripples": true,
|
||||||
"checkbox": true,
|
"checkbox": true,
|
||||||
|
@ -133,6 +134,7 @@
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
"attachInputEventHandlers": function() {
|
"attachInputEventHandlers": function() {
|
||||||
|
var validate = this.options.validate;
|
||||||
|
|
||||||
// checkboxes didn't appear to bubble to the document, so we'll bind these directly
|
// checkboxes didn't appear to bubble to the document, so we'll bind these directly
|
||||||
$(".form-group .checkbox label").hover(function() {
|
$(".form-group .checkbox label").hover(function() {
|
||||||
|
@ -166,12 +168,14 @@
|
||||||
//
|
//
|
||||||
// NOTE: I'm not sure we should be intervening regarding validation, this seems better as a README and snippet of code.
|
// NOTE: I'm not sure we should be intervening regarding validation, this seems better as a README and snippet of code.
|
||||||
// BUT, I've left it here for backwards compatibility.
|
// BUT, I've left it here for backwards compatibility.
|
||||||
if(isValid){
|
if(validate) {
|
||||||
|
if (isValid) {
|
||||||
$formGroup.removeClass("has-error");
|
$formGroup.removeClass("has-error");
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
$formGroup.addClass("has-error");
|
$formGroup.addClass("has-error");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.on("focus", ".form-control, .form-group.is-fileinput", function() {
|
.on("focus", ".form-control, .form-group.is-fileinput", function() {
|
||||||
_addFormGroupFocus(this);
|
_addFormGroupFocus(this);
|
||||||
|
@ -250,7 +254,8 @@
|
||||||
clearInterval(focused);
|
clearInterval(focused);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
"init": function() {
|
"init": function(options) {
|
||||||
|
this.options = $.extend({}, this.options, options);
|
||||||
var $document = $(document);
|
var $document = $(document);
|
||||||
|
|
||||||
if ($.fn.ripples && this.options.ripples) {
|
if ($.fn.ripples && this.options.ripples) {
|
||||||
|
|
2
dist/js/material.min.js
vendored
2
dist/js/material.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/material.min.js.map
vendored
2
dist/js/material.min.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user