Prechádzať zdrojové kódy

Changing data-icon in favor of data-label-icon

data-icon is used by many css fonts like font awesome or css themes like flat-ui and others, using data-icon adds unexpected content because of the css rule ```[data-icon]:before {content: attr(data-icon);}```
Pasquale Vazzana 11 rokov pred
rodič
commit
ee47912b1e
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      static/js/bootstrap-switch.js

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

@@ -50,8 +50,8 @@
             if ($element.data('off-label') !== undefined)
               offLabel = $element.data('off-label');
 
-            if ($element.data('icon') !== undefined)
-              icon = $element.data('icon');
+            if ($element.data('label-icon') !== undefined)
+              icon = $element.data('label-icon');
 
             $switchLeft = $('<span>')
               .addClass("switch-left")