1
- /**
2
- * bootstrap.js v3.0.0 by @fat and @mdo
3
- * Copyright 2013 Twitter Inc.
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- if ( ! jQuery ) { throw new Error ( "Bootstrap requires jQuery" ) }
1
+ /*!
2
+ * Bootstrap v3.0.3 (http://getbootstrap.com)
3
+ * Copyright 2013 Twitter, Inc.
4
+ * Licensed under http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+
7
+ if ( typeof jQuery === "undefined" ) { throw new Error ( "Bootstrap requires jQuery" ) }
7
8
8
9
/* ========================================================================
9
- * Bootstrap: transition.js v3.0.0
10
- * http://twbs.github. com/bootstrap/ javascript.html #transitions
10
+ * Bootstrap: transition.js v3.0.3
11
+ * http://getbootstrap. com/javascript/ #transitions
11
12
* ========================================================================
12
13
* Copyright 2013 Twitter, Inc.
13
14
*
@@ -60,11 +61,11 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
60
61
$ . support . transition = transitionEnd ( )
61
62
} )
62
63
63
- } ( window . jQuery ) ;
64
+ } ( jQuery ) ;
64
65
65
66
/* ========================================================================
66
- * Bootstrap: alert.js v3.0.0
67
- * http://twbs.github. com/bootstrap/ javascript.html #alerts
67
+ * Bootstrap: alert.js v3.0.3
68
+ * http://getbootstrap. com/javascript/ #alerts
68
69
* ========================================================================
69
70
* Copyright 2013 Twitter, Inc.
70
71
*
@@ -159,11 +160,11 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
159
160
160
161
$ ( document ) . on ( 'click.bs.alert.data-api' , dismiss , Alert . prototype . close )
161
162
162
- } ( window . jQuery ) ;
163
+ } ( jQuery ) ;
163
164
164
165
/* ========================================================================
165
- * Bootstrap: button.js v3.0.0
166
- * http://twbs.github. com/bootstrap/ javascript.html #buttons
166
+ * Bootstrap: button.js v3.0.3
167
+ * http://getbootstrap. com/javascript/ #buttons
167
168
* ========================================================================
168
169
* Copyright 2013 Twitter, Inc.
169
170
*
@@ -217,15 +218,21 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
217
218
218
219
Button . prototype . toggle = function ( ) {
219
220
var $parent = this . $element . closest ( '[data-toggle="buttons"]' )
221
+ var changed = true
220
222
221
223
if ( $parent . length ) {
222
224
var $input = this . $element . find ( 'input' )
223
- . prop ( 'checked' , ! this . $element . hasClass ( 'active' ) )
224
- . trigger ( 'change' )
225
- if ( $input . prop ( 'type' ) === 'radio' ) $parent . find ( '.active' ) . removeClass ( 'active' )
225
+ if ( $input . prop ( 'type' ) === 'radio' ) {
226
+ // see if clicking on current one
227
+ if ( $input . prop ( 'checked' ) && this . $element . hasClass ( 'active' ) )
228
+ changed = false
229
+ else
230
+ $parent . find ( '.active' ) . removeClass ( 'active' )
231
+ }
232
+ if ( changed ) $input . prop ( 'checked' , ! this . $element . hasClass ( 'active' ) ) . trigger ( 'change' )
226
233
}
227
234
228
- this . $element . toggleClass ( 'active' )
235
+ if ( changed ) this . $element . toggleClass ( 'active' )
229
236
}
230
237
231
238
@@ -269,13 +276,13 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
269
276
e . preventDefault ( )
270
277
} )
271
278
272
- } ( window . jQuery ) ;
279
+ } ( jQuery ) ;
273
280
274
281
/* ========================================================================
275
- * Bootstrap: carousel.js v3.0.0
276
- * http://twbs.github. com/bootstrap/ javascript.html #carousel
282
+ * Bootstrap: carousel.js v3.0.3
283
+ * http://getbootstrap. com/javascript/ #carousel
277
284
* ========================================================================
278
- * Copyright 2012 Twitter, Inc.
285
+ * Copyright 2013 Twitter, Inc.
279
286
*
280
287
* Licensed under the Apache License, Version 2.0 (the "License");
281
288
* you may not use this file except in compliance with the License.
@@ -342,7 +349,7 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
342
349
343
350
if ( pos > ( this . $items . length - 1 ) || pos < 0 ) return
344
351
345
- if ( this . sliding ) return this . $element . one ( 'slid' , function ( ) { that . to ( pos ) } )
352
+ if ( this . sliding ) return this . $element . one ( 'slid.bs.carousel ' , function ( ) { that . to ( pos ) } )
346
353
if ( activeIndex == pos ) return this . pause ( ) . cycle ( )
347
354
348
355
return this . slide ( pos > activeIndex ? 'next' : 'prev' , $ ( this . $items [ pos ] ) )
@@ -394,7 +401,7 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
394
401
395
402
if ( this . $indicators . length ) {
396
403
this . $indicators . find ( '.active' ) . removeClass ( 'active' )
397
- this . $element . one ( 'slid' , function ( ) {
404
+ this . $element . one ( 'slid.bs.carousel ' , function ( ) {
398
405
var $nextIndicator = $ ( that . $indicators . children ( ) [ that . getActiveIndex ( ) ] )
399
406
$nextIndicator && $nextIndicator . addClass ( 'active' )
400
407
} )
@@ -412,7 +419,7 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
412
419
$next . removeClass ( [ type , direction ] . join ( ' ' ) ) . addClass ( 'active' )
413
420
$active . removeClass ( [ 'active' , direction ] . join ( ' ' ) )
414
421
that . sliding = false
415
- setTimeout ( function ( ) { that . $element . trigger ( 'slid' ) } , 0 )
422
+ setTimeout ( function ( ) { that . $element . trigger ( 'slid.bs.carousel ' ) } , 0 )
416
423
} )
417
424
. emulateTransitionEnd ( 600 )
418
425
} else {
@@ -421,7 +428,7 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
421
428
$active . removeClass ( 'active' )
422
429
$next . addClass ( 'active' )
423
430
this . sliding = false
424
- this . $element . trigger ( 'slid' )
431
+ this . $element . trigger ( 'slid.bs.carousel ' )
425
432
}
426
433
427
434
isCycling && this . cycle ( )
@@ -487,13 +494,13 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
487
494
} )
488
495
} )
489
496
490
- } ( window . jQuery ) ;
497
+ } ( jQuery ) ;
491
498
492
499
/* ========================================================================
493
- * Bootstrap: collapse.js v3.0.0
494
- * http://twbs.github. com/bootstrap/ javascript.html #collapse
500
+ * Bootstrap: collapse.js v3.0.3
501
+ * http://getbootstrap. com/javascript/ #collapse
495
502
* ========================================================================
496
- * Copyright 2012 Twitter, Inc.
503
+ * Copyright 2013 Twitter, Inc.
497
504
*
498
505
* Licensed under the Apache License, Version 2.0 (the "License");
499
506
* you may not use this file except in compliance with the License.
@@ -667,13 +674,13 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
667
674
$target . collapse ( option )
668
675
} )
669
676
670
- } ( window . jQuery ) ;
677
+ } ( jQuery ) ;
671
678
672
679
/* ========================================================================
673
- * Bootstrap: dropdown.js v3.0.0
674
- * http://twbs.github. com/bootstrap/ javascript.html #dropdowns
680
+ * Bootstrap: dropdown.js v3.0.3
681
+ * http://getbootstrap. com/javascript/ #dropdowns
675
682
* ========================================================================
676
- * Copyright 2012 Twitter, Inc.
683
+ * Copyright 2013 Twitter, Inc.
677
684
*
678
685
* Licensed under the Apache License, Version 2.0 (the "License");
679
686
* you may not use this file except in compliance with the License.
@@ -697,7 +704,7 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
697
704
var backdrop = '.dropdown-backdrop'
698
705
var toggle = '[data-toggle=dropdown]'
699
706
var Dropdown = function ( element ) {
700
- var $el = $ ( element ) . on ( 'click.bs.dropdown' , this . toggle )
707
+ $ ( element ) . on ( 'click.bs.dropdown' , this . toggle )
701
708
}
702
709
703
710
Dropdown . prototype . toggle = function ( e ) {
@@ -712,7 +719,7 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
712
719
713
720
if ( ! isActive ) {
714
721
if ( 'ontouchstart' in document . documentElement && ! $parent . closest ( '.navbar-nav' ) . length ) {
715
- // if mobile we we use a backdrop because click events don't delegate
722
+ // if mobile we use a backdrop because click events don't delegate
716
723
$ ( '<div class="dropdown-backdrop"/>' ) . insertAfter ( $ ( this ) ) . on ( 'click' , clearMenus )
717
724
}
718
725
@@ -794,9 +801,9 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
794
801
$ . fn . dropdown = function ( option ) {
795
802
return this . each ( function ( ) {
796
803
var $this = $ ( this )
797
- var data = $this . data ( 'dropdown' )
804
+ var data = $this . data ( 'bs. dropdown' )
798
805
799
- if ( ! data ) $this . data ( 'dropdown' , ( data = new Dropdown ( this ) ) )
806
+ if ( ! data ) $this . data ( 'bs. dropdown' , ( data = new Dropdown ( this ) ) )
800
807
if ( typeof option == 'string' ) data [ option ] . call ( $this )
801
808
} )
802
809
}
@@ -822,13 +829,13 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
822
829
. on ( 'click.bs.dropdown.data-api' , toggle , Dropdown . prototype . toggle )
823
830
. on ( 'keydown.bs.dropdown.data-api' , toggle + ', [role=menu]' , Dropdown . prototype . keydown )
824
831
825
- } ( window . jQuery ) ;
832
+ } ( jQuery ) ;
826
833
827
834
/* ========================================================================
828
- * Bootstrap: modal.js v3.0.0
829
- * http://twbs.github. com/bootstrap/ javascript.html #modals
835
+ * Bootstrap: modal.js v3.0.3
836
+ * http://getbootstrap. com/javascript/ #modals
830
837
* ========================================================================
831
- * Copyright 2012 Twitter, Inc.
838
+ * Copyright 2013 Twitter, Inc.
832
839
*
833
840
* Licensed under the Apache License, Version 2.0 (the "License");
834
841
* you may not use this file except in compliance with the License.
@@ -1069,14 +1076,14 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
1069
1076
. on ( 'show.bs.modal' , '.modal' , function ( ) { $ ( document . body ) . addClass ( 'modal-open' ) } )
1070
1077
. on ( 'hidden.bs.modal' , '.modal' , function ( ) { $ ( document . body ) . removeClass ( 'modal-open' ) } )
1071
1078
1072
- } ( window . jQuery ) ;
1079
+ } ( jQuery ) ;
1073
1080
1074
1081
/* ========================================================================
1075
- * Bootstrap: tooltip.js v3.0.0
1076
- * http://twbs.github. com/bootstrap/ javascript.html #tooltip
1082
+ * Bootstrap: tooltip.js v3.0.3
1083
+ * http://getbootstrap. com/javascript/ #tooltip
1077
1084
* Inspired by the original jQuery.tipsy by Jason Frame
1078
1085
* ========================================================================
1079
- * Copyright 2012 Twitter, Inc.
1086
+ * Copyright 2013 Twitter, Inc.
1080
1087
*
1081
1088
* Licensed under the Apache License, Version 2.0 (the "License");
1082
1089
* you may not use this file except in compliance with the License.
@@ -1456,13 +1463,13 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
1456
1463
return this
1457
1464
}
1458
1465
1459
- } ( window . jQuery ) ;
1466
+ } ( jQuery ) ;
1460
1467
1461
1468
/* ========================================================================
1462
- * Bootstrap: popover.js v3.0.0
1463
- * http://twbs.github. com/bootstrap/ javascript.html #popovers
1469
+ * Bootstrap: popover.js v3.0.3
1470
+ * http://getbootstrap. com/javascript/ #popovers
1464
1471
* ========================================================================
1465
- * Copyright 2012 Twitter, Inc.
1472
+ * Copyright 2013 Twitter, Inc.
1466
1473
*
1467
1474
* Licensed under the Apache License, Version 2.0 (the "License");
1468
1475
* you may not use this file except in compliance with the License.
@@ -1574,13 +1581,13 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
1574
1581
return this
1575
1582
}
1576
1583
1577
- } ( window . jQuery ) ;
1584
+ } ( jQuery ) ;
1578
1585
1579
1586
/* ========================================================================
1580
- * Bootstrap: scrollspy.js v3.0.0
1581
- * http://twbs.github. com/bootstrap/ javascript.html #scrollspy
1587
+ * Bootstrap: scrollspy.js v3.0.3
1588
+ * http://getbootstrap. com/javascript/ #scrollspy
1582
1589
* ========================================================================
1583
- * Copyright 2012 Twitter, Inc.
1590
+ * Copyright 2013 Twitter, Inc.
1584
1591
*
1585
1592
* Licensed under the Apache License, Version 2.0 (the "License");
1586
1593
* you may not use this file except in compliance with the License.
@@ -1691,7 +1698,7 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
1691
1698
. addClass ( 'active' )
1692
1699
}
1693
1700
1694
- active . trigger ( 'activate' )
1701
+ active . trigger ( 'activate.bs.scrollspy ' )
1695
1702
}
1696
1703
1697
1704
@@ -1733,13 +1740,13 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
1733
1740
} )
1734
1741
} )
1735
1742
1736
- } ( window . jQuery ) ;
1743
+ } ( jQuery ) ;
1737
1744
1738
1745
/* ========================================================================
1739
- * Bootstrap: tab.js v3.0.0
1740
- * http://twbs.github. com/bootstrap/ javascript.html #tabs
1746
+ * Bootstrap: tab.js v3.0.3
1747
+ * http://getbootstrap. com/javascript/ #tabs
1741
1748
* ========================================================================
1742
- * Copyright 2012 Twitter, Inc.
1749
+ * Copyright 2013 Twitter, Inc.
1743
1750
*
1744
1751
* Licensed under the Apache License, Version 2.0 (the "License");
1745
1752
* you may not use this file except in compliance with the License.
@@ -1767,7 +1774,7 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
1767
1774
Tab . prototype . show = function ( ) {
1768
1775
var $this = this . element
1769
1776
var $ul = $this . closest ( 'ul:not(.dropdown-menu)' )
1770
- var selector = $this . attr ( 'data- target')
1777
+ var selector = $this . data ( ' target')
1771
1778
1772
1779
if ( ! selector ) {
1773
1780
selector = $this . attr ( 'href' )
@@ -1869,13 +1876,13 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
1869
1876
$ ( this ) . tab ( 'show' )
1870
1877
} )
1871
1878
1872
- } ( window . jQuery ) ;
1879
+ } ( jQuery ) ;
1873
1880
1874
1881
/* ========================================================================
1875
- * Bootstrap: affix.js v3.0.0
1876
- * http://twbs.github. com/bootstrap/ javascript.html #affix
1882
+ * Bootstrap: affix.js v3.0.3
1883
+ * http://getbootstrap. com/javascript/ #affix
1877
1884
* ========================================================================
1878
- * Copyright 2012 Twitter, Inc.
1885
+ * Copyright 2013 Twitter, Inc.
1879
1886
*
1880
1887
* Licensed under the Apache License, Version 2.0 (the "License");
1881
1888
* you may not use this file except in compliance with the License.
@@ -1996,4 +2003,4 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
1996
2003
} )
1997
2004
} )
1998
2005
1999
- } ( window . jQuery ) ;
2006
+ } ( jQuery ) ;
0 commit comments