This commit is contained in:
Vadym 2016-03-17 09:44:31 +00:00
commit 997c05c739
4 changed files with 12 additions and 6 deletions

7
dist/js/material.js vendored
View File

@ -91,8 +91,11 @@
// Add fake-checkbox to material checkboxes
var $input = $((selector) ? selector : this.options.togglebuttonElements)
.filter(":notmdproc")
.data("mdproc", true)
.after("<span class='toggle'></span>");
.data("mdproc", true);
if (!$input.next("span.toggle").length) {
$input.after("<span class='toggle'></span>");
}
_toggleTypeFocus($input);
},

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -91,8 +91,11 @@
// Add fake-checkbox to material checkboxes
var $input = $((selector) ? selector : this.options.togglebuttonElements)
.filter(":notmdproc")
.data("mdproc", true)
.after("<span class='toggle'></span>");
.data("mdproc", true);
if (!$input.next("span.toggle").length) {
$input.after("<span class='toggle'></span>");
}
_toggleTypeFocus($input);
},