diff --git a/examples/index.html b/examples/index.html index 8b04bd5d..8f411249 100644 --- a/examples/index.html +++ b/examples/index.html @@ -579,15 +579,15 @@

- +
Option 1
- +
Option 2
- +
Option 3
@@ -597,15 +597,15 @@

 <div class="control-group">
     <div class="controls">
-        <label class="control-label" for="option1">Option 1</label>
+        <h5>Option 1</h5>
         <div id="option1" class="make-switch radio1 radio-no-uncheck">
             <input type="radio" name="radio1" value="option1">
         </div>
-        <label class="control-label" for="option2">Option 2</label>
+        <h5>Option 2</h5>
         <div id="option2" class="make-switch radio1 radio-no-uncheck">
             <input type="radio" name="radio1" value="option2">
         </div>
-        <label class="control-label" for="option3">Option 3</label>
+        <h5>Option 3</h5>
         <div id="option3" class="make-switch radio1 radio-no-uncheck">
             <input type="radio" name="radio1" value="option3">
         </div>
@@ -638,15 +638,15 @@ 

- +
Option 1
- +
Option 2
- +
Option 3
@@ -656,15 +656,15 @@

 <div class="control-group">
     <div class="controls">
-        <label class="control-label" for="option11">Option 1</label>
+        <h5>Option 1</h5>
             <div id="option11" class="make-switch radio2">
                 <input type="radio" name="radio2" value="option1">
             </div>
-        <label class="control-label" for="option12">Option 2</label>
+        <h5>Option 2</h5>
             <div id="option12" class="make-switch radio2">
                 <input type="radio" name="radio2" value="option2" checked="checked">
             </div>
-        <label class="control-label" for="option13">Option 3</label>
+        <h5>Option 3</h5>
             <div id="option13" class="make-switch radio2">
                 <input type="radio" name="radio2" value="option3">
             </div>
@@ -923,4 +923,4 @@ 

Modal

ga('send', 'pageview'); - \ No newline at end of file + diff --git a/static/js/bootstrap-switch.js b/static/js/bootstrap-switch.js index 80de245e..4396eb45 100644 --- a/static/js/bootstrap-switch.js +++ b/static/js/bootstrap-switch.js @@ -81,10 +81,6 @@ if (icon) { $label.html(''); } - - if (textLabel) { - $label.html('' + textLabel + ''); - } if (textLabel) { $label.html('' + textLabel + ''); diff --git a/static/js/bootstrap-switch.min.js b/static/js/bootstrap-switch.min.js index 5a02168a..74d0c8a8 100644 --- a/static/js/bootstrap-switch.min.js +++ b/static/js/bootstrap-switch.min.js @@ -11,5 +11,4 @@ * Licensed under the Apache License, Version 2.0 * http://www.apache.org/licenses/LICENSE-2.0 * ============================================================ */ - -!function($){"use strict";$.fn['bootstrapSwitch']=function(method){var inputSelector='input[type!="hidden"]';var methods={init:function(){return this.each(function(){var $element=$(this),$div,$switchLeft,$switchRight,$label,$form=$element.closest('form'),myClasses="",classes=$element.attr('class'),color,moving,onLabel="ON",offLabel="OFF",icon=false,textLabel=false;$.each(['switch-mini','switch-small','switch-large'],function(i,el){if(classes.indexOf(el)>=0)myClasses=el});$element.addClass('has-switch');if($element.data('on')!==undefined)color="switch-"+$element.data('on');if($element.data('on-label')!==undefined)onLabel=$element.data('on-label');if($element.data('off-label')!==undefined)offLabel=$element.data('off-label');if($element.data('label-icon')!==undefined)icon=$element.data('label-icon');if($element.data('text-label')!==undefined)textLabel=$element.data('text-label');$switchLeft=$('').addClass("switch-left").addClass(myClasses).addClass(color).html(onLabel);color='';if($element.data('off')!==undefined)color="switch-"+$element.data('off');$switchRight=$('').addClass("switch-right").addClass(myClasses).addClass(color).html(offLabel);$label=$('