Explorar el Código

Merge pull request #40 from Pasvaz/patch-1

Patch 1
Stein, Peter hace 12 años
padre
commit
ba653e71fa
Se han modificado 2 ficheros con 3 adiciones y 3 borrados
  1. 1 1
      examples/index.html
  2. 2 2
      static/js/bootstrap-switch.js

+ 1 - 1
examples/index.html

@@ -12,7 +12,6 @@
     <link rel="stylesheet" href="../static/stylesheets/bootstrap-switch.css" />
     <link rel="stylesheet" href="http://getbootstrap.com/2.3.2/assets/js/google-code-prettify/prettify.css" />
     <link rel="stylesheet" href="http://getbootstrap.com/2.3.2/assets/css/docs.css" />
-    <link rel="stylesheet" href="static/stylesheets/styles.css" />
 
     <style>
         .span4, h1 {
@@ -751,3 +750,4 @@ $(document).ready(function() {
 
 </body>
 </html>
+).on(

+ 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")