diff --git a/scripts/material.js b/scripts/material.js index 85aeeeaa..1f846079 100644 --- a/scripts/material.js +++ b/scripts/material.js @@ -2,7 +2,9 @@ $(function (){ - ripples.init(".btn:not(.btn-link), .navbar a, .nav-tabs a, .withripple"); + if (ripples) { + ripples.init(".btn:not(.btn-link), .navbar a, .nav-tabs a, .withripple"); + } var initInputs = function() { // Add fake-checkbox to material checkboxes @@ -44,6 +46,10 @@ $(function (){ }); } + $(document).on("change", ".checkbox input", function() { + $(this).blur(); + }); + $(document).on("keyup change", ".form-control", function() { var self = $(this); setTimeout(function() {