File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 44 * ========================================================================
55 * Copyright 2014 Min Hur, The New York Times Company
66 * Licensed under MIT
7- * ======================================================================== */
7+ * ========================================================================
8+ * FORK: 20181017: https://github.com/gitbrent/bootstrap-toggle
9+ */
810
911
1012 + function ( $ ) {
1921 this . render ( )
2022 }
2123
22- Toggle . VERSION = '2.2 .0'
24+ Toggle . VERSION = '3.0 .0'
2325
2426 Toggle . DEFAULTS = {
2527 on : 'On' ,
171173 $ ( 'input[type=checkbox][data-toggle^=toggle]' ) . bootstrapToggle ( )
172174 } )
173175
174- $ ( document ) . on ( 'click.bs.toggle' , 'div[data-toggle^=toggle]' , function ( e ) {
176+ $ ( document ) . on ( 'touchstart.bs.toggle click.bs.toggle' , 'div[data-toggle^=toggle]' , function ( e ) {
175177 var $checkbox = $ ( this ) . find ( 'input[type=checkbox]' )
176178 $checkbox . bootstrapToggle ( 'toggle' )
177179 e . preventDefault ( )
You can’t perform that action at this time.
0 commit comments