Explorar o código

fixed setAnimated bug

fixed setAnimated bug
Stein, Peter %!s(int64=11) %!d(string=hai) anos
pai
achega
2bb0dd41ef
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      static/js/bootstrap-switch.js

+ 1 - 1
static/js/bootstrap-switch.js

@@ -302,7 +302,7 @@
         }
       },
       setAnimated: function(value) {
-        var $element = $(this).find('inputSelector').parent();
+        var $element = $(this).find(inputSelector).parent();
         if (value === undefined) value = false;
         $element.data('animated', value);
         $element.attr('data-animated', value);