From ec3bb1a8dbdb8889412e8aec602abbd744d904f2 Mon Sep 17 00:00:00 2001 From: FezVrasta Date: Mon, 29 Sep 2014 09:32:47 +0200 Subject: [PATCH] fixed problem with new focus effect of checkboxes --- scripts/material.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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() {