Browse Source

Added `setTextLabel` and `setIconLabel` methods

Francesco Pontillo 11 years ago
parent
commit
712d610b90
2 changed files with 2 additions and 2 deletions
  1. 2 2
      static/js/bootstrap-switch.js
  2. 0 0
      static/js/bootstrap-switch.min.js

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

@@ -42,7 +42,7 @@
 
             $element.addClass('has-switch');
 
-            if ($element.data('on') !== undefined)
+            if ($element.data('on'))
               color = "switch-" + $element.data('on');
 
             if ($element.data('on-label') !== undefined)
@@ -64,7 +64,7 @@
               .html(onLabel);
 
             color = '';
-            if ($element.data('off') !== undefined)
+            if ($element.data('off'))
               color = "switch-" + $element.data('off');
 
             $switchRight = $('<span>')

File diff suppressed because it is too large
+ 0 - 0
static/js/bootstrap-switch.min.js


Some files were not shown because too many files changed in this diff