pure-bootstrap-rails 2.2.1 → 2.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module PureBootstrap
2
2
  module Rails
3
- VERSION = "2.2.1"
3
+ VERSION = "2.2.2"
4
4
  end
5
5
  end
@@ -8,9 +8,9 @@ Gem::Specification.new do |gem|
8
8
  gem.version = PureBootstrap::Rails::VERSION
9
9
  gem.authors = ["Nebojša Jakovljević"]
10
10
  gem.email = ["nebjak@gmail.com"]
11
- gem.description = %q{Pure Bootstrap Rails is Ruby gem that makes using Bootstrap framework in your rails app easy}
11
+ gem.description = %q{Pure Bootstrap Rails is Ruby gem that makes easy using Bootstrap framework in your rails app}
12
12
  gem.summary = %q{Pure Bootstrap for Rails}
13
- gem.homepage = "https://github.com/nebjak/pure-bootstrap-rails"
13
+ gem.homepage = "http://nebjak.github.com/pure-bootstrap-rails/"
14
14
 
15
15
  gem.files = `git ls-files`.split($/)
16
16
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
@@ -1,5 +1,5 @@
1
1
  /* ===================================================
2
- * bootstrap-transition.js v2.2.1
2
+ * bootstrap-transition.js v2.2.2
3
3
  * http://twitter.github.com/bootstrap/javascript.html#transitions
4
4
  * ===================================================
5
5
  * Copyright 2012 Twitter, Inc.
@@ -58,7 +58,7 @@
58
58
  })
59
59
 
60
60
  }(window.jQuery);/* ==========================================================
61
- * bootstrap-alert.js v2.2.1
61
+ * bootstrap-alert.js v2.2.2
62
62
  * http://twitter.github.com/bootstrap/javascript.html#alerts
63
63
  * ==========================================================
64
64
  * Copyright 2012 Twitter, Inc.
@@ -127,6 +127,8 @@
127
127
  /* ALERT PLUGIN DEFINITION
128
128
  * ======================= */
129
129
 
130
+ var old = $.fn.alert
131
+
130
132
  $.fn.alert = function (option) {
131
133
  return this.each(function () {
132
134
  var $this = $(this)
@@ -139,13 +141,22 @@
139
141
  $.fn.alert.Constructor = Alert
140
142
 
141
143
 
144
+ /* ALERT NO CONFLICT
145
+ * ================= */
146
+
147
+ $.fn.alert.noConflict = function () {
148
+ $.fn.alert = old
149
+ return this
150
+ }
151
+
152
+
142
153
  /* ALERT DATA-API
143
154
  * ============== */
144
155
 
145
156
  $(document).on('click.alert.data-api', dismiss, Alert.prototype.close)
146
157
 
147
158
  }(window.jQuery);/* ============================================================
148
- * bootstrap-button.js v2.2.1
159
+ * bootstrap-button.js v2.2.2
149
160
  * http://twitter.github.com/bootstrap/javascript.html#buttons
150
161
  * ============================================================
151
162
  * Copyright 2012 Twitter, Inc.
@@ -210,6 +221,8 @@
210
221
  /* BUTTON PLUGIN DEFINITION
211
222
  * ======================== */
212
223
 
224
+ var old = $.fn.button
225
+
213
226
  $.fn.button = function (option) {
214
227
  return this.each(function () {
215
228
  var $this = $(this)
@@ -228,6 +241,15 @@
228
241
  $.fn.button.Constructor = Button
229
242
 
230
243
 
244
+ /* BUTTON NO CONFLICT
245
+ * ================== */
246
+
247
+ $.fn.button.noConflict = function () {
248
+ $.fn.button = old
249
+ return this
250
+ }
251
+
252
+
231
253
  /* BUTTON DATA-API
232
254
  * =============== */
233
255
 
@@ -238,7 +260,7 @@
238
260
  })
239
261
 
240
262
  }(window.jQuery);/* ==========================================================
241
- * bootstrap-carousel.js v2.2.1
263
+ * bootstrap-carousel.js v2.2.2
242
264
  * http://twitter.github.com/bootstrap/javascript.html#carousel
243
265
  * ==========================================================
244
266
  * Copyright 2012 Twitter, Inc.
@@ -268,7 +290,6 @@
268
290
  var Carousel = function (element, options) {
269
291
  this.$element = $(element)
270
292
  this.options = options
271
- this.options.slide && this.slide(this.options.slide)
272
293
  this.options.pause == 'hover' && this.$element
273
294
  .on('mouseenter', $.proxy(this.pause, this))
274
295
  .on('mouseleave', $.proxy(this.cycle, this))
@@ -380,6 +401,8 @@
380
401
  /* CAROUSEL PLUGIN DEFINITION
381
402
  * ========================== */
382
403
 
404
+ var old = $.fn.carousel
405
+
383
406
  $.fn.carousel = function (option) {
384
407
  return this.each(function () {
385
408
  var $this = $(this)
@@ -401,6 +424,14 @@
401
424
  $.fn.carousel.Constructor = Carousel
402
425
 
403
426
 
427
+ /* CAROUSEL NO CONFLICT
428
+ * ==================== */
429
+
430
+ $.fn.carousel.noConflict = function () {
431
+ $.fn.carousel = old
432
+ return this
433
+ }
434
+
404
435
  /* CAROUSEL DATA-API
405
436
  * ================= */
406
437
 
@@ -413,7 +444,7 @@
413
444
  })
414
445
 
415
446
  }(window.jQuery);/* =============================================================
416
- * bootstrap-collapse.js v2.2.1
447
+ * bootstrap-collapse.js v2.2.2
417
448
  * http://twitter.github.com/bootstrap/javascript.html#collapse
418
449
  * =============================================================
419
450
  * Copyright 2012 Twitter, Inc.
@@ -534,8 +565,10 @@
534
565
  }
535
566
 
536
567
 
537
- /* COLLAPSIBLE PLUGIN DEFINITION
538
- * ============================== */
568
+ /* COLLAPSE PLUGIN DEFINITION
569
+ * ========================== */
570
+
571
+ var old = $.fn.collapse
539
572
 
540
573
  $.fn.collapse = function (option) {
541
574
  return this.each(function () {
@@ -554,9 +587,18 @@
554
587
  $.fn.collapse.Constructor = Collapse
555
588
 
556
589
 
557
- /* COLLAPSIBLE DATA-API
590
+ /* COLLAPSE NO CONFLICT
558
591
  * ==================== */
559
592
 
593
+ $.fn.collapse.noConflict = function () {
594
+ $.fn.collapse = old
595
+ return this
596
+ }
597
+
598
+
599
+ /* COLLAPSE DATA-API
600
+ * ================= */
601
+
560
602
  $(document).on('click.collapse.data-api', '[data-toggle=collapse]', function (e) {
561
603
  var $this = $(this), href
562
604
  , target = $this.attr('data-target')
@@ -568,7 +610,7 @@
568
610
  })
569
611
 
570
612
  }(window.jQuery);/* ============================================================
571
- * bootstrap-dropdown.js v2.2.1
613
+ * bootstrap-dropdown.js v2.2.2
572
614
  * http://twitter.github.com/bootstrap/javascript.html#dropdowns
573
615
  * ============================================================
574
616
  * Copyright 2012 Twitter, Inc.
@@ -622,9 +664,10 @@
622
664
 
623
665
  if (!isActive) {
624
666
  $parent.toggleClass('open')
625
- $this.focus()
626
667
  }
627
668
 
669
+ $this.focus()
670
+
628
671
  return false
629
672
  }
630
673
 
@@ -651,7 +694,7 @@
651
694
 
652
695
  if (!isActive || (isActive && e.keyCode == 27)) return $this.click()
653
696
 
654
- $items = $('[role=menu] li:not(.divider) a', $parent)
697
+ $items = $('[role=menu] li:not(.divider):visible a', $parent)
655
698
 
656
699
  if (!$items.length) return
657
700
 
@@ -693,6 +736,8 @@
693
736
  /* DROPDOWN PLUGIN DEFINITION
694
737
  * ========================== */
695
738
 
739
+ var old = $.fn.dropdown
740
+
696
741
  $.fn.dropdown = function (option) {
697
742
  return this.each(function () {
698
743
  var $this = $(this)
@@ -705,17 +750,27 @@
705
750
  $.fn.dropdown.Constructor = Dropdown
706
751
 
707
752
 
753
+ /* DROPDOWN NO CONFLICT
754
+ * ==================== */
755
+
756
+ $.fn.dropdown.noConflict = function () {
757
+ $.fn.dropdown = old
758
+ return this
759
+ }
760
+
761
+
708
762
  /* APPLY TO STANDARD DROPDOWN ELEMENTS
709
763
  * =================================== */
710
764
 
711
765
  $(document)
712
766
  .on('click.dropdown.data-api touchstart.dropdown.data-api', clearMenus)
713
767
  .on('click.dropdown touchstart.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() })
768
+ .on('touchstart.dropdown.data-api', '.dropdown-menu', function (e) { e.stopPropagation() })
714
769
  .on('click.dropdown.data-api touchstart.dropdown.data-api' , toggle, Dropdown.prototype.toggle)
715
770
  .on('keydown.dropdown.data-api touchstart.dropdown.data-api', toggle + ', [role=menu]' , Dropdown.prototype.keydown)
716
771
 
717
772
  }(window.jQuery);/* =========================================================
718
- * bootstrap-modal.js v2.2.1
773
+ * bootstrap-modal.js v2.2.2
719
774
  * http://twitter.github.com/bootstrap/javascript.html#modals
720
775
  * =========================================================
721
776
  * Copyright 2012 Twitter, Inc.
@@ -909,6 +964,8 @@
909
964
  /* MODAL PLUGIN DEFINITION
910
965
  * ======================= */
911
966
 
967
+ var old = $.fn.modal
968
+
912
969
  $.fn.modal = function (option) {
913
970
  return this.each(function () {
914
971
  var $this = $(this)
@@ -929,6 +986,15 @@
929
986
  $.fn.modal.Constructor = Modal
930
987
 
931
988
 
989
+ /* MODAL NO CONFLICT
990
+ * ================= */
991
+
992
+ $.fn.modal.noConflict = function () {
993
+ $.fn.modal = old
994
+ return this
995
+ }
996
+
997
+
932
998
  /* MODAL DATA-API
933
999
  * ============== */
934
1000
 
@@ -949,7 +1015,7 @@
949
1015
 
950
1016
  }(window.jQuery);
951
1017
  /* ===========================================================
952
- * bootstrap-tooltip.js v2.2.1
1018
+ * bootstrap-tooltip.js v2.2.2
953
1019
  * http://twitter.github.com/bootstrap/javascript.html#tooltips
954
1020
  * Inspired by the original jQuery.tipsy by Jason Frame
955
1021
  * ===========================================================
@@ -1200,6 +1266,8 @@
1200
1266
  /* TOOLTIP PLUGIN DEFINITION
1201
1267
  * ========================= */
1202
1268
 
1269
+ var old = $.fn.tooltip
1270
+
1203
1271
  $.fn.tooltip = function ( option ) {
1204
1272
  return this.each(function () {
1205
1273
  var $this = $(this)
@@ -1223,8 +1291,17 @@
1223
1291
  , html: false
1224
1292
  }
1225
1293
 
1294
+
1295
+ /* TOOLTIP NO CONFLICT
1296
+ * =================== */
1297
+
1298
+ $.fn.tooltip.noConflict = function () {
1299
+ $.fn.tooltip = old
1300
+ return this
1301
+ }
1302
+
1226
1303
  }(window.jQuery);/* ===========================================================
1227
- * bootstrap-popover.js v2.2.1
1304
+ * bootstrap-popover.js v2.2.2
1228
1305
  * http://twitter.github.com/bootstrap/javascript.html#popovers
1229
1306
  * ===========================================================
1230
1307
  * Copyright 2012 Twitter, Inc.
@@ -1269,7 +1346,7 @@
1269
1346
  , content = this.getContent()
1270
1347
 
1271
1348
  $tip.find('.popover-title')[this.options.html ? 'html' : 'text'](title)
1272
- $tip.find('.popover-content > *')[this.options.html ? 'html' : 'text'](content)
1349
+ $tip.find('.popover-content')[this.options.html ? 'html' : 'text'](content)
1273
1350
 
1274
1351
  $tip.removeClass('fade top bottom left right in')
1275
1352
  }
@@ -1306,6 +1383,8 @@
1306
1383
  /* POPOVER PLUGIN DEFINITION
1307
1384
  * ======================= */
1308
1385
 
1386
+ var old = $.fn.popover
1387
+
1309
1388
  $.fn.popover = function (option) {
1310
1389
  return this.each(function () {
1311
1390
  var $this = $(this)
@@ -1322,11 +1401,20 @@
1322
1401
  placement: 'right'
1323
1402
  , trigger: 'click'
1324
1403
  , content: ''
1325
- , template: '<div class="popover"><div class="arrow"></div><div class="popover-inner"><h3 class="popover-title"></h3><div class="popover-content"><p></p></div></div></div>'
1404
+ , template: '<div class="popover"><div class="arrow"></div><div class="popover-inner"><h3 class="popover-title"></h3><div class="popover-content"></div></div></div>'
1326
1405
  })
1327
1406
 
1407
+
1408
+ /* POPOVER NO CONFLICT
1409
+ * =================== */
1410
+
1411
+ $.fn.popover.noConflict = function () {
1412
+ $.fn.popover = old
1413
+ return this
1414
+ }
1415
+
1328
1416
  }(window.jQuery);/* =============================================================
1329
- * bootstrap-scrollspy.js v2.2.1
1417
+ * bootstrap-scrollspy.js v2.2.2
1330
1418
  * http://twitter.github.com/bootstrap/javascript.html#scrollspy
1331
1419
  * =============================================================
1332
1420
  * Copyright 2012 Twitter, Inc.
@@ -1386,7 +1474,7 @@
1386
1474
  , $href = /^#\w/.test(href) && $(href)
1387
1475
  return ( $href
1388
1476
  && $href.length
1389
- && [[ $href.position().top, href ]] ) || null
1477
+ && [[ $href.position().top + self.$scrollElement.scrollTop(), href ]] ) || null
1390
1478
  })
1391
1479
  .sort(function (a, b) { return a[0] - b[0] })
1392
1480
  .each(function () {
@@ -1448,6 +1536,8 @@
1448
1536
  /* SCROLLSPY PLUGIN DEFINITION
1449
1537
  * =========================== */
1450
1538
 
1539
+ var old = $.fn.scrollspy
1540
+
1451
1541
  $.fn.scrollspy = function (option) {
1452
1542
  return this.each(function () {
1453
1543
  var $this = $(this)
@@ -1465,6 +1555,15 @@
1465
1555
  }
1466
1556
 
1467
1557
 
1558
+ /* SCROLLSPY NO CONFLICT
1559
+ * ===================== */
1560
+
1561
+ $.fn.scrollspy.noConflict = function () {
1562
+ $.fn.scrollspy = old
1563
+ return this
1564
+ }
1565
+
1566
+
1468
1567
  /* SCROLLSPY DATA-API
1469
1568
  * ================== */
1470
1569
 
@@ -1476,7 +1575,7 @@
1476
1575
  })
1477
1576
 
1478
1577
  }(window.jQuery);/* ========================================================
1479
- * bootstrap-tab.js v2.2.1
1578
+ * bootstrap-tab.js v2.2.2
1480
1579
  * http://twitter.github.com/bootstrap/javascript.html#tabs
1481
1580
  * ========================================================
1482
1581
  * Copyright 2012 Twitter, Inc.
@@ -1587,6 +1686,8 @@
1587
1686
  /* TAB PLUGIN DEFINITION
1588
1687
  * ===================== */
1589
1688
 
1689
+ var old = $.fn.tab
1690
+
1590
1691
  $.fn.tab = function ( option ) {
1591
1692
  return this.each(function () {
1592
1693
  var $this = $(this)
@@ -1599,6 +1700,15 @@
1599
1700
  $.fn.tab.Constructor = Tab
1600
1701
 
1601
1702
 
1703
+ /* TAB NO CONFLICT
1704
+ * =============== */
1705
+
1706
+ $.fn.tab.noConflict = function () {
1707
+ $.fn.tab = old
1708
+ return this
1709
+ }
1710
+
1711
+
1602
1712
  /* TAB DATA-API
1603
1713
  * ============ */
1604
1714
 
@@ -1608,7 +1718,7 @@
1608
1718
  })
1609
1719
 
1610
1720
  }(window.jQuery);/* =============================================================
1611
- * bootstrap-typeahead.js v2.2.1
1721
+ * bootstrap-typeahead.js v2.2.2
1612
1722
  * http://twitter.github.com/bootstrap/javascript.html#typeahead
1613
1723
  * =============================================================
1614
1724
  * Copyright 2012 Twitter, Inc.
@@ -1642,8 +1752,8 @@
1642
1752
  this.sorter = this.options.sorter || this.sorter
1643
1753
  this.highlighter = this.options.highlighter || this.highlighter
1644
1754
  this.updater = this.options.updater || this.updater
1645
- this.$menu = $(this.options.menu).appendTo('body')
1646
1755
  this.source = this.options.source
1756
+ this.$menu = $(this.options.menu)
1647
1757
  this.shown = false
1648
1758
  this.listen()
1649
1759
  }
@@ -1665,16 +1775,18 @@
1665
1775
  }
1666
1776
 
1667
1777
  , show: function () {
1668
- var pos = $.extend({}, this.$element.offset(), {
1778
+ var pos = $.extend({}, this.$element.position(), {
1669
1779
  height: this.$element[0].offsetHeight
1670
1780
  })
1671
1781
 
1672
- this.$menu.css({
1673
- top: pos.top + pos.height
1674
- , left: pos.left
1675
- })
1782
+ this.$menu
1783
+ .insertAfter(this.$element)
1784
+ .css({
1785
+ top: pos.top + pos.height
1786
+ , left: pos.left
1787
+ })
1788
+ .show()
1676
1789
 
1677
- this.$menu.show()
1678
1790
  this.shown = true
1679
1791
  return this
1680
1792
  }
@@ -1826,7 +1938,7 @@
1826
1938
  }
1827
1939
 
1828
1940
  , keydown: function (e) {
1829
- this.suppressKeyPressRepeat = !~$.inArray(e.keyCode, [40,38,9,13,27])
1941
+ this.suppressKeyPressRepeat = ~$.inArray(e.keyCode, [40,38,9,13,27])
1830
1942
  this.move(e)
1831
1943
  }
1832
1944
 
@@ -1885,6 +1997,8 @@
1885
1997
  /* TYPEAHEAD PLUGIN DEFINITION
1886
1998
  * =========================== */
1887
1999
 
2000
+ var old = $.fn.typeahead
2001
+
1888
2002
  $.fn.typeahead = function (option) {
1889
2003
  return this.each(function () {
1890
2004
  var $this = $(this)
@@ -1906,7 +2020,16 @@
1906
2020
  $.fn.typeahead.Constructor = Typeahead
1907
2021
 
1908
2022
 
1909
- /* TYPEAHEAD DATA-API
2023
+ /* TYPEAHEAD NO CONFLICT
2024
+ * =================== */
2025
+
2026
+ $.fn.typeahead.noConflict = function () {
2027
+ $.fn.typeahead = old
2028
+ return this
2029
+ }
2030
+
2031
+
2032
+ /* TYPEAHEAD DATA-API
1910
2033
  * ================== */
1911
2034
 
1912
2035
  $(document).on('focus.typeahead.data-api', '[data-provide="typeahead"]', function (e) {
@@ -1918,7 +2041,7 @@
1918
2041
 
1919
2042
  }(window.jQuery);
1920
2043
  /* ==========================================================
1921
- * bootstrap-affix.js v2.2.1
2044
+ * bootstrap-affix.js v2.2.2
1922
2045
  * http://twitter.github.com/bootstrap/javascript.html#affix
1923
2046
  * ==========================================================
1924
2047
  * Copyright 2012 Twitter, Inc.
@@ -1987,6 +2110,8 @@
1987
2110
  /* AFFIX PLUGIN DEFINITION
1988
2111
  * ======================= */
1989
2112
 
2113
+ var old = $.fn.affix
2114
+
1990
2115
  $.fn.affix = function (option) {
1991
2116
  return this.each(function () {
1992
2117
  var $this = $(this)
@@ -2004,6 +2129,15 @@
2004
2129
  }
2005
2130
 
2006
2131
 
2132
+ /* AFFIX NO CONFLICT
2133
+ * ================= */
2134
+
2135
+ $.fn.affix.noConflict = function () {
2136
+ $.fn.affix = old
2137
+ return this
2138
+ }
2139
+
2140
+
2007
2141
  /* AFFIX DATA-API
2008
2142
  * ============== */
2009
2143
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Bootstrap Responsive v2.2.1
2
+ * Bootstrap Responsive v2.2.2
3
3
  *
4
4
  * Copyright 2012 Twitter, Inc
5
5
  * Licensed under the Apache License v2.0
@@ -8,6 +8,10 @@
8
8
  * Designed and built with all the love in the world @twitter by @mdo and @fat.
9
9
  */
10
10
 
11
+ @-ms-viewport {
12
+ width: device-width;
13
+ }
14
+
11
15
  .clearfix {
12
16
  *zoom: 1;
13
17
  }