pure-bootstrap-rails 2.3.1 → 2.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  module PureBootstrap
2
2
  module Rails
3
- VERSION = "2.3.1"
3
+ VERSION = "2.3.2"
4
4
  end
5
5
  end
@@ -1,5 +1,5 @@
1
1
  /* ===================================================
2
- * bootstrap-transition.js v2.3.1
2
+ * bootstrap-transition.js v2.3.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.3.1
61
+ * bootstrap-alert.js v2.3.2
62
62
  * http://twitter.github.com/bootstrap/javascript.html#alerts
63
63
  * ==========================================================
64
64
  * Copyright 2012 Twitter, Inc.
@@ -156,7 +156,7 @@
156
156
  $(document).on('click.alert.data-api', dismiss, Alert.prototype.close)
157
157
 
158
158
  }(window.jQuery);/* ============================================================
159
- * bootstrap-button.js v2.3.1
159
+ * bootstrap-button.js v2.3.2
160
160
  * http://twitter.github.com/bootstrap/javascript.html#buttons
161
161
  * ============================================================
162
162
  * Copyright 2012 Twitter, Inc.
@@ -260,7 +260,7 @@
260
260
  })
261
261
 
262
262
  }(window.jQuery);/* ==========================================================
263
- * bootstrap-carousel.js v2.3.1
263
+ * bootstrap-carousel.js v2.3.2
264
264
  * http://twitter.github.com/bootstrap/javascript.html#carousel
265
265
  * ==========================================================
266
266
  * Copyright 2012 Twitter, Inc.
@@ -466,7 +466,7 @@
466
466
  })
467
467
 
468
468
  }(window.jQuery);/* =============================================================
469
- * bootstrap-collapse.js v2.3.1
469
+ * bootstrap-collapse.js v2.3.2
470
470
  * http://twitter.github.com/bootstrap/javascript.html#collapse
471
471
  * =============================================================
472
472
  * Copyright 2012 Twitter, Inc.
@@ -632,7 +632,7 @@
632
632
  })
633
633
 
634
634
  }(window.jQuery);/* ============================================================
635
- * bootstrap-dropdown.js v2.3.1
635
+ * bootstrap-dropdown.js v2.3.2
636
636
  * http://twitter.github.com/bootstrap/javascript.html#dropdowns
637
637
  * ============================================================
638
638
  * Copyright 2012 Twitter, Inc.
@@ -685,6 +685,10 @@
685
685
  clearMenus()
686
686
 
687
687
  if (!isActive) {
688
+ if ('ontouchstart' in document.documentElement) {
689
+ // if mobile we we use a backdrop because click events don't delegate
690
+ $('<div class="dropdown-backdrop"/>').insertBefore($(this)).on('click', clearMenus)
691
+ }
688
692
  $parent.toggleClass('open')
689
693
  }
690
694
 
@@ -737,6 +741,7 @@
737
741
  }
738
742
 
739
743
  function clearMenus() {
744
+ $('.dropdown-backdrop').remove()
740
745
  $(toggle).each(function () {
741
746
  getParent($(this)).removeClass('open')
742
747
  })
@@ -791,13 +796,12 @@
791
796
  $(document)
792
797
  .on('click.dropdown.data-api', clearMenus)
793
798
  .on('click.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() })
794
- .on('click.dropdown-menu', function (e) { e.stopPropagation() })
795
799
  .on('click.dropdown.data-api' , toggle, Dropdown.prototype.toggle)
796
800
  .on('keydown.dropdown.data-api', toggle + ', [role=menu]' , Dropdown.prototype.keydown)
797
801
 
798
802
  }(window.jQuery);
799
803
  /* =========================================================
800
- * bootstrap-modal.js v2.3.1
804
+ * bootstrap-modal.js v2.3.2
801
805
  * http://twitter.github.com/bootstrap/javascript.html#modals
802
806
  * =========================================================
803
807
  * Copyright 2012 Twitter, Inc.
@@ -1044,7 +1048,7 @@
1044
1048
 
1045
1049
  }(window.jQuery);
1046
1050
  /* ===========================================================
1047
- * bootstrap-tooltip.js v2.3.1
1051
+ * bootstrap-tooltip.js v2.3.2
1048
1052
  * http://twitter.github.com/bootstrap/javascript.html#tooltips
1049
1053
  * Inspired by the original jQuery.tipsy by Jason Frame
1050
1054
  * ===========================================================
@@ -1405,7 +1409,7 @@
1405
1409
 
1406
1410
  }(window.jQuery);
1407
1411
  /* ===========================================================
1408
- * bootstrap-popover.js v2.3.1
1412
+ * bootstrap-popover.js v2.3.2
1409
1413
  * http://twitter.github.com/bootstrap/javascript.html#popovers
1410
1414
  * ===========================================================
1411
1415
  * Copyright 2012 Twitter, Inc.
@@ -1519,7 +1523,7 @@
1519
1523
 
1520
1524
  }(window.jQuery);
1521
1525
  /* =============================================================
1522
- * bootstrap-scrollspy.js v2.3.1
1526
+ * bootstrap-scrollspy.js v2.3.2
1523
1527
  * http://twitter.github.com/bootstrap/javascript.html#scrollspy
1524
1528
  * =============================================================
1525
1529
  * Copyright 2012 Twitter, Inc.
@@ -1680,7 +1684,7 @@
1680
1684
  })
1681
1685
 
1682
1686
  }(window.jQuery);/* ========================================================
1683
- * bootstrap-tab.js v2.3.1
1687
+ * bootstrap-tab.js v2.3.2
1684
1688
  * http://twitter.github.com/bootstrap/javascript.html#tabs
1685
1689
  * ========================================================
1686
1690
  * Copyright 2012 Twitter, Inc.
@@ -1823,7 +1827,7 @@
1823
1827
  })
1824
1828
 
1825
1829
  }(window.jQuery);/* =============================================================
1826
- * bootstrap-typeahead.js v2.3.1
1830
+ * bootstrap-typeahead.js v2.3.2
1827
1831
  * http://twitter.github.com/bootstrap/javascript.html#typeahead
1828
1832
  * =============================================================
1829
1833
  * Copyright 2012 Twitter, Inc.
@@ -2158,7 +2162,7 @@
2158
2162
 
2159
2163
  }(window.jQuery);
2160
2164
  /* ==========================================================
2161
- * bootstrap-affix.js v2.3.1
2165
+ * bootstrap-affix.js v2.3.2
2162
2166
  * http://twitter.github.com/bootstrap/javascript.html#affix
2163
2167
  * ==========================================================
2164
2168
  * Copyright 2012 Twitter, Inc.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Bootstrap Responsive v2.3.1
2
+ * Bootstrap Responsive v2.3.2
3
3
  *
4
4
  * Copyright 2012 Twitter, Inc
5
5
  * Licensed under the Apache License v2.0
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Bootstrap v2.3.1
2
+ * Bootstrap v2.3.2
3
3
  *
4
4
  * Copyright 2012 Twitter, Inc
5
5
  * Licensed under the Apache License v2.0
@@ -3009,6 +3009,15 @@ table th[class*="span"],
3009
3009
  display: block;
3010
3010
  }
3011
3011
 
3012
+ .dropdown-backdrop {
3013
+ position: fixed;
3014
+ top: 0;
3015
+ right: 0;
3016
+ bottom: 0;
3017
+ left: 0;
3018
+ z-index: 990;
3019
+ }
3020
+
3012
3021
  .pull-right > .dropdown-menu {
3013
3022
  right: 0;
3014
3023
  left: auto;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pure-bootstrap-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.3.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-03 00:00:00.000000000 Z
12
+ date: 2013-05-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -78,21 +78,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
78
78
  - - ! '>='
79
79
  - !ruby/object:Gem::Version
80
80
  version: '0'
81
- segments:
82
- - 0
83
- hash: -1021273592954544000
84
81
  required_rubygems_version: !ruby/object:Gem::Requirement
85
82
  none: false
86
83
  requirements:
87
84
  - - ! '>='
88
85
  - !ruby/object:Gem::Version
89
86
  version: '0'
90
- segments:
91
- - 0
92
- hash: -1021273592954544000
93
87
  requirements: []
94
88
  rubyforge_project:
95
- rubygems_version: 1.8.23
89
+ rubygems_version: 1.8.25
96
90
  signing_key:
97
91
  specification_version: 3
98
92
  summary: Pure Bootstrap for Rails