jombo 1.0.10 → 1.0.11

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 910b80fb794c2453d7ab4fa5ea4b739b1b04bfca
4
+ data.tar.gz: 762aaec84bc827da2a2f87b2e621394fe38a2dba
5
+ SHA512:
6
+ metadata.gz: 3881f6c4c4b2af74961711916a18a758a04add16104c68bfdf0fe2b6d0d9e36cf7b88df5676eb3816bd5020e14e5fd83da1ed43a87d77a6fbe8ca9107d56cd8f
7
+ data.tar.gz: 28152f361750f3f57e79542f4a2dba0826149a2a133e9812be69d0cc73e5339582e5936505da866e62e900f9283197830c5e7da0be3902c5cb6c804796f7ea8d
@@ -0,0 +1 @@
1
+ ruby-2.0.0-p0@jombo-gem
@@ -1,8 +1,8 @@
1
1
  Git/Update Sequence
2
2
  ===================
3
3
 
4
- - Merge "master" with "work"
5
4
  - Switch to "work"
5
+ - Merge "master" with "work"
6
6
  - Asset updates on "work"
7
7
  - Switch to "build
8
8
  - Merge "work with "build"
@@ -21,7 +21,7 @@ Git/Update Sequence
21
21
  - rm -rf pkg/
22
22
  - Release the gem to rubygems
23
23
  rake release
24
-
24
+
25
25
  - Switch to "master" branch
26
26
  - Merge "master" with "release"
27
27
  - Push to GitHub
@@ -1,3 +1,3 @@
1
1
  module Jombo
2
- VERSION = "1.0.10"
2
+ VERSION = "1.0.11"
3
3
  end
@@ -1,5 +1,5 @@
1
1
  /* ==========================================================
2
- * bootstrap-affix.js v2.1.1
2
+ * bootstrap-affix.js v2.3.1
3
3
  * http://twitter.github.com/bootstrap/javascript.html#affix
4
4
  * ==========================================================
5
5
  * Copyright 2012 Twitter, Inc.
@@ -28,7 +28,9 @@
28
28
 
29
29
  var Affix = function (element, options) {
30
30
  this.options = $.extend({}, $.fn.affix.defaults, options)
31
- this.$window = $(window).on('scroll.affix.data-api', $.proxy(this.checkPosition, this))
31
+ this.$window = $(window)
32
+ .on('scroll.affix.data-api', $.proxy(this.checkPosition, this))
33
+ .on('click.affix.data-api', $.proxy(function () { setTimeout($.proxy(this.checkPosition, this), 1) }, this))
32
34
  this.$element = $(element)
33
35
  this.checkPosition()
34
36
  }
@@ -66,6 +68,8 @@
66
68
  /* AFFIX PLUGIN DEFINITION
67
69
  * ======================= */
68
70
 
71
+ var old = $.fn.affix
72
+
69
73
  $.fn.affix = function (option) {
70
74
  return this.each(function () {
71
75
  var $this = $(this)
@@ -83,6 +87,15 @@
83
87
  }
84
88
 
85
89
 
90
+ /* AFFIX NO CONFLICT
91
+ * ================= */
92
+
93
+ $.fn.affix.noConflict = function () {
94
+ $.fn.affix = old
95
+ return this
96
+ }
97
+
98
+
86
99
  /* AFFIX DATA-API
87
100
  * ============== */
88
101
 
@@ -1,5 +1,5 @@
1
1
  /* ==========================================================
2
- * bootstrap-alert.js v2.1.1
2
+ * bootstrap-alert.js v2.3.1
3
3
  * http://twitter.github.com/bootstrap/javascript.html#alerts
4
4
  * ==========================================================
5
5
  * Copyright 2012 Twitter, Inc.
@@ -68,6 +68,8 @@
68
68
  /* ALERT PLUGIN DEFINITION
69
69
  * ======================= */
70
70
 
71
+ var old = $.fn.alert
72
+
71
73
  $.fn.alert = function (option) {
72
74
  return this.each(function () {
73
75
  var $this = $(this)
@@ -80,11 +82,18 @@
80
82
  $.fn.alert.Constructor = Alert
81
83
 
82
84
 
85
+ /* ALERT NO CONFLICT
86
+ * ================= */
87
+
88
+ $.fn.alert.noConflict = function () {
89
+ $.fn.alert = old
90
+ return this
91
+ }
92
+
93
+
83
94
  /* ALERT DATA-API
84
95
  * ============== */
85
96
 
86
- $(function () {
87
- $('body').on('click.alert.data-api', dismiss, Alert.prototype.close)
88
- })
97
+ $(document).on('click.alert.data-api', dismiss, Alert.prototype.close)
89
98
 
90
99
  }(window.jQuery);
@@ -1,5 +1,5 @@
1
1
  /* ============================================================
2
- * bootstrap-button.js v2.1.1
2
+ * bootstrap-button.js v2.3.1
3
3
  * http://twitter.github.com/bootstrap/javascript.html#buttons
4
4
  * ============================================================
5
5
  * Copyright 2012 Twitter, Inc.
@@ -64,6 +64,8 @@
64
64
  /* BUTTON PLUGIN DEFINITION
65
65
  * ======================== */
66
66
 
67
+ var old = $.fn.button
68
+
67
69
  $.fn.button = function (option) {
68
70
  return this.each(function () {
69
71
  var $this = $(this)
@@ -82,15 +84,22 @@
82
84
  $.fn.button.Constructor = Button
83
85
 
84
86
 
87
+ /* BUTTON NO CONFLICT
88
+ * ================== */
89
+
90
+ $.fn.button.noConflict = function () {
91
+ $.fn.button = old
92
+ return this
93
+ }
94
+
95
+
85
96
  /* BUTTON DATA-API
86
97
  * =============== */
87
98
 
88
- $(function () {
89
- $('body').on('click.button.data-api', '[data-toggle^=button]', function ( e ) {
90
- var $btn = $(e.target)
91
- if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn')
92
- $btn.button('toggle')
93
- })
99
+ $(document).on('click.button.data-api', '[data-toggle^=button]', function (e) {
100
+ var $btn = $(e.target)
101
+ if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn')
102
+ $btn.button('toggle')
94
103
  })
95
104
 
96
105
  }(window.jQuery);
@@ -1,5 +1,5 @@
1
1
  /* ==========================================================
2
- * bootstrap-carousel.js v2.1.1
2
+ * bootstrap-carousel.js v2.3.1
3
3
  * http://twitter.github.com/bootstrap/javascript.html#carousel
4
4
  * ==========================================================
5
5
  * Copyright 2012 Twitter, Inc.
@@ -28,8 +28,8 @@
28
28
 
29
29
  var Carousel = function (element, options) {
30
30
  this.$element = $(element)
31
+ this.$indicators = this.$element.find('.carousel-indicators')
31
32
  this.options = options
32
- this.options.slide && this.slide(this.options.slide)
33
33
  this.options.pause == 'hover' && this.$element
34
34
  .on('mouseenter', $.proxy(this.pause, this))
35
35
  .on('mouseleave', $.proxy(this.cycle, this))
@@ -39,19 +39,24 @@
39
39
 
40
40
  cycle: function (e) {
41
41
  if (!e) this.paused = false
42
+ if (this.interval) clearInterval(this.interval);
42
43
  this.options.interval
43
44
  && !this.paused
44
45
  && (this.interval = setInterval($.proxy(this.next, this), this.options.interval))
45
46
  return this
46
47
  }
47
48
 
49
+ , getActiveIndex: function () {
50
+ this.$active = this.$element.find('.item.active')
51
+ this.$items = this.$active.parent().children()
52
+ return this.$items.index(this.$active)
53
+ }
54
+
48
55
  , to: function (pos) {
49
- var $active = this.$element.find('.item.active')
50
- , children = $active.parent().children()
51
- , activePos = children.index($active)
56
+ var activeIndex = this.getActiveIndex()
52
57
  , that = this
53
58
 
54
- if (pos > (children.length - 1) || pos < 0) return
59
+ if (pos > (this.$items.length - 1) || pos < 0) return
55
60
 
56
61
  if (this.sliding) {
57
62
  return this.$element.one('slid', function () {
@@ -59,18 +64,18 @@
59
64
  })
60
65
  }
61
66
 
62
- if (activePos == pos) {
67
+ if (activeIndex == pos) {
63
68
  return this.pause().cycle()
64
69
  }
65
70
 
66
- return this.slide(pos > activePos ? 'next' : 'prev', $(children[pos]))
71
+ return this.slide(pos > activeIndex ? 'next' : 'prev', $(this.$items[pos]))
67
72
  }
68
73
 
69
74
  , pause: function (e) {
70
75
  if (!e) this.paused = true
71
76
  if (this.$element.find('.next, .prev').length && $.support.transition.end) {
72
77
  this.$element.trigger($.support.transition.end)
73
- this.cycle()
78
+ this.cycle(true)
74
79
  }
75
80
  clearInterval(this.interval)
76
81
  this.interval = null
@@ -94,9 +99,7 @@
94
99
  , direction = type == 'next' ? 'left' : 'right'
95
100
  , fallback = type == 'next' ? 'first' : 'last'
96
101
  , that = this
97
- , e = $.Event('slide', {
98
- relatedTarget: $next[0]
99
- })
102
+ , e
100
103
 
101
104
  this.sliding = true
102
105
 
@@ -104,8 +107,21 @@
104
107
 
105
108
  $next = $next.length ? $next : this.$element.find('.item')[fallback]()
106
109
 
110
+ e = $.Event('slide', {
111
+ relatedTarget: $next[0]
112
+ , direction: direction
113
+ })
114
+
107
115
  if ($next.hasClass('active')) return
108
116
 
117
+ if (this.$indicators.length) {
118
+ this.$indicators.find('.active').removeClass('active')
119
+ this.$element.one('slid', function () {
120
+ var $nextIndicator = $(that.$indicators.children()[that.getActiveIndex()])
121
+ $nextIndicator && $nextIndicator.addClass('active')
122
+ })
123
+ }
124
+
109
125
  if ($.support.transition && this.$element.hasClass('slide')) {
110
126
  this.$element.trigger(e)
111
127
  if (e.isDefaultPrevented()) return
@@ -139,6 +155,8 @@
139
155
  /* CAROUSEL PLUGIN DEFINITION
140
156
  * ========================== */
141
157
 
158
+ var old = $.fn.carousel
159
+
142
160
  $.fn.carousel = function (option) {
143
161
  return this.each(function () {
144
162
  var $this = $(this)
@@ -148,7 +166,7 @@
148
166
  if (!data) $this.data('carousel', (data = new Carousel(this, options)))
149
167
  if (typeof option == 'number') data.to(option)
150
168
  else if (action) data[action]()
151
- else if (options.interval) data.cycle()
169
+ else if (options.interval) data.pause().cycle()
152
170
  })
153
171
  }
154
172
 
@@ -160,17 +178,30 @@
160
178
  $.fn.carousel.Constructor = Carousel
161
179
 
162
180
 
181
+ /* CAROUSEL NO CONFLICT
182
+ * ==================== */
183
+
184
+ $.fn.carousel.noConflict = function () {
185
+ $.fn.carousel = old
186
+ return this
187
+ }
188
+
163
189
  /* CAROUSEL DATA-API
164
190
  * ================= */
165
191
 
166
- $(function () {
167
- $('body').on('click.carousel.data-api', '[data-slide]', function ( e ) {
168
- var $this = $(this), href
169
- , $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
170
- , options = !$target.data('modal') && $.extend({}, $target.data(), $this.data())
171
- $target.carousel(options)
172
- e.preventDefault()
173
- })
192
+ $(document).on('click.carousel.data-api', '[data-slide], [data-slide-to]', function (e) {
193
+ var $this = $(this), href
194
+ , $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
195
+ , options = $.extend({}, $target.data(), $this.data())
196
+ , slideIndex
197
+
198
+ $target.carousel(options)
199
+
200
+ if (slideIndex = $this.attr('data-slide-to')) {
201
+ $target.data('carousel').pause().to(slideIndex).cycle()
202
+ }
203
+
204
+ e.preventDefault()
174
205
  })
175
206
 
176
207
  }(window.jQuery);
@@ -1,5 +1,5 @@
1
1
  /* =============================================================
2
- * bootstrap-collapse.js v2.1.1
2
+ * bootstrap-collapse.js v2.3.1
3
3
  * http://twitter.github.com/bootstrap/javascript.html#collapse
4
4
  * =============================================================
5
5
  * Copyright 2012 Twitter, Inc.
@@ -52,7 +52,7 @@
52
52
  , actives
53
53
  , hasData
54
54
 
55
- if (this.transitioning) return
55
+ if (this.transitioning || this.$element.hasClass('in')) return
56
56
 
57
57
  dimension = this.dimension()
58
58
  scroll = $.camelCase(['scroll', dimension].join('-'))
@@ -72,7 +72,7 @@
72
72
 
73
73
  , hide: function () {
74
74
  var dimension
75
- if (this.transitioning) return
75
+ if (this.transitioning || !this.$element.hasClass('in')) return
76
76
  dimension = this.dimension()
77
77
  this.reset(this.$element[dimension]())
78
78
  this.transition('removeClass', $.Event('hide'), 'hidden')
@@ -120,14 +120,16 @@
120
120
  }
121
121
 
122
122
 
123
- /* COLLAPSIBLE PLUGIN DEFINITION
124
- * ============================== */
123
+ /* COLLAPSE PLUGIN DEFINITION
124
+ * ========================== */
125
+
126
+ var old = $.fn.collapse
125
127
 
126
128
  $.fn.collapse = function (option) {
127
129
  return this.each(function () {
128
130
  var $this = $(this)
129
131
  , data = $this.data('collapse')
130
- , options = typeof option == 'object' && option
132
+ , options = $.extend({}, $.fn.collapse.defaults, $this.data(), typeof option == 'object' && option)
131
133
  if (!data) $this.data('collapse', (data = new Collapse(this, options)))
132
134
  if (typeof option == 'string') data[option]()
133
135
  })
@@ -140,19 +142,26 @@
140
142
  $.fn.collapse.Constructor = Collapse
141
143
 
142
144
 
143
- /* COLLAPSIBLE DATA-API
145
+ /* COLLAPSE NO CONFLICT
144
146
  * ==================== */
145
147
 
146
- $(function () {
147
- $('body').on('click.collapse.data-api', '[data-toggle=collapse]', function (e) {
148
- var $this = $(this), href
149
- , target = $this.attr('data-target')
150
- || e.preventDefault()
151
- || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7
152
- , option = $(target).data('collapse') ? 'toggle' : $this.data()
153
- $this[$(target).hasClass('in') ? 'addClass' : 'removeClass']('collapsed')
154
- $(target).collapse(option)
155
- })
148
+ $.fn.collapse.noConflict = function () {
149
+ $.fn.collapse = old
150
+ return this
151
+ }
152
+
153
+
154
+ /* COLLAPSE DATA-API
155
+ * ================= */
156
+
157
+ $(document).on('click.collapse.data-api', '[data-toggle=collapse]', function (e) {
158
+ var $this = $(this), href
159
+ , target = $this.attr('data-target')
160
+ || e.preventDefault()
161
+ || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7
162
+ , option = $(target).data('collapse') ? 'toggle' : $this.data()
163
+ $this[$(target).hasClass('in') ? 'addClass' : 'removeClass']('collapsed')
164
+ $(target).collapse(option)
156
165
  })
157
166
 
158
167
  }(window.jQuery);
@@ -1,5 +1,5 @@
1
1
  /* ============================================================
2
- * bootstrap-dropdown.js v2.1.1
2
+ * bootstrap-dropdown.js v2.3.1
3
3
  * http://twitter.github.com/bootstrap/javascript.html#dropdowns
4
4
  * ============================================================
5
5
  * Copyright 2012 Twitter, Inc.
@@ -53,9 +53,10 @@
53
53
 
54
54
  if (!isActive) {
55
55
  $parent.toggleClass('open')
56
- $this.focus()
57
56
  }
58
57
 
58
+ $this.focus()
59
+
59
60
  return false
60
61
  }
61
62
 
@@ -80,9 +81,12 @@
80
81
 
81
82
  isActive = $parent.hasClass('open')
82
83
 
83
- if (!isActive || (isActive && e.keyCode == 27)) return $this.click()
84
+ if (!isActive || (isActive && e.keyCode == 27)) {
85
+ if (e.which == 27) $parent.find(toggle).focus()
86
+ return $this.click()
87
+ }
84
88
 
85
- $items = $('[role=menu] li:not(.divider) a', $parent)
89
+ $items = $('[role=menu] li:not(.divider):visible a', $parent)
86
90
 
87
91
  if (!$items.length) return
88
92
 
@@ -100,8 +104,9 @@
100
104
  }
101
105
 
102
106
  function clearMenus() {
103
- getParent($(toggle))
104
- .removeClass('open')
107
+ $(toggle).each(function () {
108
+ getParent($(this)).removeClass('open')
109
+ })
105
110
  }
106
111
 
107
112
  function getParent($this) {
@@ -113,8 +118,9 @@
113
118
  selector = selector && /#/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
114
119
  }
115
120
 
116
- $parent = $(selector)
117
- $parent.length || ($parent = $this.parent())
121
+ $parent = selector && $(selector)
122
+
123
+ if (!$parent || !$parent.length) $parent = $this.parent()
118
124
 
119
125
  return $parent
120
126
  }
@@ -123,6 +129,8 @@
123
129
  /* DROPDOWN PLUGIN DEFINITION
124
130
  * ========================== */
125
131
 
132
+ var old = $.fn.dropdown
133
+
126
134
  $.fn.dropdown = function (option) {
127
135
  return this.each(function () {
128
136
  var $this = $(this)
@@ -135,16 +143,23 @@
135
143
  $.fn.dropdown.Constructor = Dropdown
136
144
 
137
145
 
146
+ /* DROPDOWN NO CONFLICT
147
+ * ==================== */
148
+
149
+ $.fn.dropdown.noConflict = function () {
150
+ $.fn.dropdown = old
151
+ return this
152
+ }
153
+
154
+
138
155
  /* APPLY TO STANDARD DROPDOWN ELEMENTS
139
156
  * =================================== */
140
157
 
141
- $(function () {
142
- $('html')
143
- .on('click.dropdown.data-api touchstart.dropdown.data-api', clearMenus)
144
- $('body')
145
- .on('click.dropdown touchstart.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() })
146
- .on('click.dropdown.data-api touchstart.dropdown.data-api' , toggle, Dropdown.prototype.toggle)
147
- .on('keydown.dropdown.data-api touchstart.dropdown.data-api', toggle + ', [role=menu]' , Dropdown.prototype.keydown)
148
- })
158
+ $(document)
159
+ .on('click.dropdown.data-api', clearMenus)
160
+ .on('click.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() })
161
+ .on('click.dropdown-menu', function (e) { e.stopPropagation() })
162
+ .on('click.dropdown.data-api' , toggle, Dropdown.prototype.toggle)
163
+ .on('keydown.dropdown.data-api', toggle + ', [role=menu]' , Dropdown.prototype.keydown)
149
164
 
150
- }(window.jQuery);
165
+ }(window.jQuery);