jombo 0.0.1.beta23 → 0.0.1.beta24
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.
- data/LICENSE +22 -0
- data/lib/jombo/version.rb +1 -1
- data/vendor/assets/javascripts/bootstrap/bootstrap-alert.js +2 -3
- data/vendor/assets/javascripts/bootstrap/bootstrap-button.js +1 -1
- data/vendor/assets/javascripts/bootstrap/bootstrap-carousel.js +28 -6
- data/vendor/assets/javascripts/bootstrap/bootstrap-collapse.js +2 -3
- data/vendor/assets/javascripts/bootstrap/bootstrap-dropdown.js +1 -1
- data/vendor/assets/javascripts/bootstrap/bootstrap-modal.js +1 -1
- data/vendor/assets/javascripts/bootstrap/bootstrap-popover.js +1 -1
- data/vendor/assets/javascripts/bootstrap/bootstrap-scrollspy.js +14 -7
- data/vendor/assets/javascripts/bootstrap/bootstrap-tab.js +1 -1
- data/vendor/assets/javascripts/bootstrap/bootstrap-tooltip.js +3 -3
- data/vendor/assets/javascripts/bootstrap/bootstrap-transition.js +28 -24
- data/vendor/assets/javascripts/bootstrap/bootstrap-typeahead.js +32 -21
- data/vendor/assets/stylesheets/bootstrap/bootstrap.css +498 -483
- metadata +3 -2
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2012 Pencil Case Studios
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/lib/jombo/version.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* bootstrap-alert.js v2.0.0
|
3
3
|
* http://twitter.github.com/bootstrap/javascript.html#alerts
|
4
4
|
* ==========================================================
|
5
|
-
* Copyright
|
5
|
+
* Copyright 2012 Twitter, Inc.
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
8
|
* you may not use this file except in compliance with the License.
|
@@ -43,13 +43,12 @@
|
|
43
43
|
|
44
44
|
e && e.preventDefault()
|
45
45
|
|
46
|
-
$parent.length || ($parent = $this.hasClass('alert
|
46
|
+
$parent.length || ($parent = $this.hasClass('alert') ? $this : $this.parent())
|
47
47
|
|
48
48
|
$parent.removeClass('in')
|
49
49
|
|
50
50
|
function removeElement() {
|
51
51
|
$parent.remove()
|
52
|
-
|
53
52
|
$parent.trigger('closed')
|
54
53
|
}
|
55
54
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* bootstrap-buttons.js v2.0.0
|
3
3
|
* http://twitter.github.com/bootstrap/javascript.html#buttons
|
4
4
|
* ============================================================
|
5
|
-
* Copyright
|
5
|
+
* Copyright 2012 Twitter, Inc.
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
8
|
* you may not use this file except in compliance with the License.
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* bootstrap-carousel.js v2.0.0
|
3
3
|
* http://twitter.github.com/bootstrap/javascript.html#alerts
|
4
4
|
* ==========================================================
|
5
|
-
* Copyright
|
5
|
+
* Copyright 2012 Twitter, Inc.
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
8
|
* you may not use this file except in compliance with the License.
|
@@ -38,6 +38,27 @@
|
|
38
38
|
return this
|
39
39
|
}
|
40
40
|
|
41
|
+
, to: function (pos) {
|
42
|
+
var $active = this.$element.find('.active')
|
43
|
+
, children = $active.parent().children()
|
44
|
+
, activePos = children.index($active)
|
45
|
+
, that = this
|
46
|
+
|
47
|
+
if (pos > (children.length - 1) || pos < 0) return
|
48
|
+
|
49
|
+
if (this.sliding) {
|
50
|
+
return this.$element.one('slid', function () {
|
51
|
+
that.to(pos)
|
52
|
+
})
|
53
|
+
}
|
54
|
+
|
55
|
+
if (activePos == pos) {
|
56
|
+
return this.pause().cycle()
|
57
|
+
}
|
58
|
+
|
59
|
+
return this.slide(pos > activePos ? 'next' : 'prev', $(children[pos]))
|
60
|
+
}
|
61
|
+
|
41
62
|
, pause: function () {
|
42
63
|
clearInterval(this.interval)
|
43
64
|
return this
|
@@ -53,9 +74,9 @@
|
|
53
74
|
return this.slide('prev')
|
54
75
|
}
|
55
76
|
|
56
|
-
, slide: function (type) {
|
77
|
+
, slide: function (type, next) {
|
57
78
|
var $active = this.$element.find('.active')
|
58
|
-
, $next = $active[type]()
|
79
|
+
, $next = next || $active[type]()
|
59
80
|
, isCycling = this.interval
|
60
81
|
, direction = type == 'next' ? 'left' : 'right'
|
61
82
|
, fallback = type == 'next' ? 'first' : 'last'
|
@@ -71,8 +92,8 @@
|
|
71
92
|
this.$element.trigger('slide')
|
72
93
|
$active.removeClass('active')
|
73
94
|
$next.addClass('active')
|
74
|
-
this.$element.trigger('slid')
|
75
95
|
this.sliding = false
|
96
|
+
this.$element.trigger('slid')
|
76
97
|
} else {
|
77
98
|
$next.addClass(type)
|
78
99
|
$next[0].offsetWidth // force reflow
|
@@ -82,8 +103,8 @@
|
|
82
103
|
this.$element.one($.support.transition.end, function () {
|
83
104
|
$next.removeClass([type, direction].join(' ')).addClass('active')
|
84
105
|
$active.removeClass(['active', direction].join(' '))
|
85
|
-
that.$element.trigger('slid')
|
86
106
|
that.sliding = false
|
107
|
+
setTimeout(function () { that.$element.trigger('slid') }, 0)
|
87
108
|
})
|
88
109
|
}
|
89
110
|
|
@@ -104,7 +125,8 @@
|
|
104
125
|
, data = $this.data('carousel')
|
105
126
|
, options = typeof option == 'object' && option
|
106
127
|
if (!data) $this.data('carousel', (data = new Carousel(this, options)))
|
107
|
-
if (typeof option == '
|
128
|
+
if (typeof option == 'number') data.to(option)
|
129
|
+
else if (typeof option == 'string' || (option = options.slide)) data[option]()
|
108
130
|
else data.cycle()
|
109
131
|
})
|
110
132
|
}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* bootstrap-collapsible.js v2.0.0
|
3
3
|
* http://twitter.github.com/bootstrap/javascript.html#collapsible
|
4
4
|
* =============================================================
|
5
|
-
* Copyright
|
5
|
+
* Copyright 2012 Twitter, Inc.
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
8
|
* you may not use this file except in compliance with the License.
|
@@ -125,9 +125,8 @@
|
|
125
125
|
$(function () {
|
126
126
|
$('body').on('click.collapse.data-api', '[data-toggle=collapse]', function ( e ) {
|
127
127
|
var $this = $(this)
|
128
|
-
, target = $this.attr('data-target') || $this.attr('href')
|
128
|
+
, target = $this.attr('data-target') || e.preventDefault() || $this.attr('href')
|
129
129
|
, option = $(target).data('collapse') ? 'toggle' : $this.data()
|
130
|
-
e.preventDefault()
|
131
130
|
$(target).collapse(option)
|
132
131
|
})
|
133
132
|
})
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* bootstrap-dropdown.js v2.0.0
|
3
3
|
* http://twitter.github.com/bootstrap/javascript.html#dropdown
|
4
4
|
* ============================================================
|
5
|
-
* Copyright
|
5
|
+
* Copyright 2012 Twitter, Inc.
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
8
|
* you may not use this file except in compliance with the License.
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* bootstrap-modal.js v2.0.0
|
3
3
|
* http://twitter.github.com/bootstrap/javascript.html#modal
|
4
4
|
* =========================================================
|
5
|
-
* Copyright
|
5
|
+
* Copyright 2012 Twitter, Inc.
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
8
|
* you may not use this file except in compliance with the License.
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* bootstrap-popover.js v2.0.0
|
3
3
|
* http://twitter.github.com/bootstrap/javascript.html#popover
|
4
4
|
* ===========================================================
|
5
|
-
* Copyright
|
5
|
+
* Copyright 2012 Twitter, Inc.
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
8
|
* you may not use this file except in compliance with the License.
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* bootstrap-scrollspy.js v2.0.0
|
3
3
|
* http://twitter.github.com/bootstrap/javascript.html#scrollspy
|
4
4
|
* =============================================================
|
5
|
-
* Copyright
|
5
|
+
* Copyright 2012 Twitter, Inc.
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
8
|
* you may not use this file except in compliance with the License.
|
@@ -24,15 +24,14 @@
|
|
24
24
|
/* SCROLLSPY CLASS DEFINITION
|
25
25
|
* ========================== */
|
26
26
|
|
27
|
-
function ScrollSpy( element ) {
|
27
|
+
function ScrollSpy( element, options) {
|
28
28
|
var process = $.proxy(this.process, this)
|
29
|
-
|
29
|
+
this.options = $.extend({}, $.fn.scrollspy.defaults, options)
|
30
30
|
this.$scrollElement = $(element).on('scroll.scroll.data-api', process)
|
31
31
|
this.selector = (this.$scrollElement.attr('data-target')
|
32
32
|
|| this.$scrollElement.attr('href')
|
33
33
|
|| '') + ' .nav li > a'
|
34
34
|
this.$body = $('body').on('click.scroll.data-api', this.selector, process)
|
35
|
-
|
36
35
|
this.refresh()
|
37
36
|
this.process()
|
38
37
|
}
|
@@ -55,7 +54,7 @@
|
|
55
54
|
}
|
56
55
|
|
57
56
|
, process: function () {
|
58
|
-
var scrollTop = this.$scrollElement.scrollTop() +
|
57
|
+
var scrollTop = this.$scrollElement.scrollTop() + this.options.offset
|
59
58
|
, offsets = this.offsets
|
60
59
|
, targets = this.targets
|
61
60
|
, activeTarget = this.activeTarget
|
@@ -98,17 +97,25 @@
|
|
98
97
|
return this.each(function () {
|
99
98
|
var $this = $(this)
|
100
99
|
, data = $this.data('scrollspy')
|
101
|
-
|
100
|
+
, options = typeof option == 'object' && option
|
101
|
+
if (!data) $this.data('scrollspy', (data = new ScrollSpy(this, options)))
|
102
102
|
if (typeof option == 'string') data[option]()
|
103
103
|
})
|
104
104
|
}
|
105
105
|
|
106
106
|
$.fn.scrollspy.Constructor = ScrollSpy
|
107
107
|
|
108
|
+
$.fn.scrollspy.defaults = {
|
109
|
+
offset: 10
|
110
|
+
}
|
111
|
+
|
108
112
|
|
109
113
|
/* SCROLLSPY DATA-API
|
110
114
|
* ============== */
|
111
115
|
|
112
|
-
$(function () {
|
116
|
+
$(function () {
|
117
|
+
var $spy = $('[data-spy="scroll"]')
|
118
|
+
$spy.scrollspy($spy.data())
|
119
|
+
})
|
113
120
|
|
114
121
|
}( window.jQuery )
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* bootstrap-tabs.js v2.0.0
|
3
3
|
* http://twitter.github.com/bootstrap/javascript.html#tabs
|
4
4
|
* ========================================================
|
5
|
-
* Copyright
|
5
|
+
* Copyright 2012 Twitter, Inc.
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
8
|
* you may not use this file except in compliance with the License.
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* http://twitter.github.com/bootstrap/javascript.html#tooltip
|
4
4
|
* Inspired by the original jQuery.tipsy by Jason Frame
|
5
5
|
* ===========================================================
|
6
|
-
* Copyright
|
6
|
+
* Copyright 2012 Twitter, Inc.
|
7
7
|
*
|
8
8
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
9
9
|
* you may not use this file except in compliance with the License.
|
@@ -115,7 +115,7 @@
|
|
115
115
|
}
|
116
116
|
|
117
117
|
placement = typeof this.options.placement == 'function' ?
|
118
|
-
|
118
|
+
this.options.placement.call(this, $tip[0], this.$element[0]) :
|
119
119
|
this.options.placement
|
120
120
|
|
121
121
|
inside = /in/.test(placement)
|
@@ -267,4 +267,4 @@
|
|
267
267
|
, template: '<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'
|
268
268
|
}
|
269
269
|
|
270
|
-
}( window.jQuery )
|
270
|
+
}( window.jQuery )
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* bootstrap-transitions.js v2.0.0
|
3
3
|
* http://twitter.github.com/bootstrap/javascript.html
|
4
4
|
* ===================================================
|
5
|
-
* Copyright
|
5
|
+
* Copyright 2012 Twitter, Inc.
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
8
|
* you may not use this file except in compliance with the License.
|
@@ -17,31 +17,35 @@
|
|
17
17
|
* limitations under the License.
|
18
18
|
* ========================================================== */
|
19
19
|
|
20
|
-
|
20
|
+
!function( $ ) {
|
21
21
|
|
22
|
-
|
22
|
+
$(function () {
|
23
23
|
|
24
|
-
|
25
|
-
* ======================================================= */
|
24
|
+
"use strict"
|
26
25
|
|
27
|
-
|
28
|
-
|
29
|
-
, thisStyle = thisBody.style
|
30
|
-
, support = thisStyle.transition !== undefined || thisStyle.WebkitTransition !== undefined || thisStyle.MozTransition !== undefined || thisStyle.MsTransition !== undefined || thisStyle.OTransition !== undefined
|
26
|
+
/* CSS TRANSITION SUPPORT (https://gist.github.com/373874)
|
27
|
+
* ======================================================= */
|
31
28
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
transitionEnd = "webkitTransitionEnd"
|
37
|
-
} else if ( $.browser.mozilla ) {
|
38
|
-
transitionEnd = "transitionend"
|
39
|
-
} else if ( $.browser.opera ) {
|
40
|
-
transitionEnd = "oTransitionEnd"
|
41
|
-
}
|
42
|
-
return transitionEnd
|
43
|
-
}())
|
44
|
-
}
|
45
|
-
})()
|
29
|
+
$.support.transition = (function () {
|
30
|
+
var thisBody = document.body || document.documentElement
|
31
|
+
, thisStyle = thisBody.style
|
32
|
+
, support = thisStyle.transition !== undefined || thisStyle.WebkitTransition !== undefined || thisStyle.MozTransition !== undefined || thisStyle.MsTransition !== undefined || thisStyle.OTransition !== undefined
|
46
33
|
|
47
|
-
|
34
|
+
return support && {
|
35
|
+
end: (function () {
|
36
|
+
var transitionEnd = "TransitionEnd"
|
37
|
+
if ( $.browser.webkit ) {
|
38
|
+
transitionEnd = "webkitTransitionEnd"
|
39
|
+
} else if ( $.browser.mozilla ) {
|
40
|
+
transitionEnd = "transitionend"
|
41
|
+
} else if ( $.browser.opera ) {
|
42
|
+
transitionEnd = "oTransitionEnd"
|
43
|
+
}
|
44
|
+
return transitionEnd
|
45
|
+
}())
|
46
|
+
}
|
47
|
+
})()
|
48
|
+
|
49
|
+
})
|
50
|
+
|
51
|
+
}( window.jQuery )
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* bootstrap-typeahead.js v2.0.0
|
3
3
|
* http://twitter.github.com/bootstrap/javascript.html#collapsible
|
4
4
|
* =============================================================
|
5
|
-
* Copyright
|
5
|
+
* Copyright 2012 Twitter, Inc.
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
8
|
* you may not use this file except in compliance with the License.
|
@@ -35,7 +35,8 @@
|
|
35
35
|
constructor: Typeahead
|
36
36
|
|
37
37
|
, matcher: function (item, query) {
|
38
|
-
|
38
|
+
// ;_; http://jsperf.com/asdfdfasdfa
|
39
|
+
return ~item.toLowerCase().indexOf(query)
|
39
40
|
}
|
40
41
|
|
41
42
|
, select: function () {
|
@@ -66,16 +67,20 @@
|
|
66
67
|
}
|
67
68
|
|
68
69
|
, lookup: function (event) {
|
69
|
-
var
|
70
|
-
, that = this
|
70
|
+
var that = this
|
71
71
|
, items
|
72
|
+
, q
|
73
|
+
|
74
|
+
this.query = this.$element.val()
|
72
75
|
|
73
|
-
if (!query) {
|
76
|
+
if (!this.query) {
|
74
77
|
return this.shown ? this.hide() : this
|
75
78
|
}
|
76
79
|
|
80
|
+
q = this.query.toLowerCase()
|
81
|
+
|
77
82
|
items = this.data.filter(function (item) {
|
78
|
-
if (that.matcher(item,
|
83
|
+
if (that.matcher(item, q)) return item
|
79
84
|
})
|
80
85
|
|
81
86
|
if (!items.length) {
|
@@ -87,10 +92,15 @@
|
|
87
92
|
|
88
93
|
, render: function (items) {
|
89
94
|
var that = this
|
95
|
+
, QUERY = new RegExp('(' + this.query + ')', 'ig')
|
90
96
|
|
91
97
|
items = $(items).map(function (i, item) {
|
92
98
|
i = $(that.options.item).attr('data-value', item)
|
93
|
-
|
99
|
+
|
100
|
+
i.find('a').html(item.replace(QUERY, function ($1, match) {
|
101
|
+
return '<strong>' + match + '</strong>'
|
102
|
+
}))
|
103
|
+
|
94
104
|
return i[0]
|
95
105
|
})
|
96
106
|
|
@@ -121,6 +131,21 @@
|
|
121
131
|
prev.addClass('active')
|
122
132
|
}
|
123
133
|
|
134
|
+
, listen: function () {
|
135
|
+
this.$element
|
136
|
+
.on('blur', $.proxy(this.blur, this))
|
137
|
+
.on('keypress', $.proxy(this.keypress, this))
|
138
|
+
.on('keyup', $.proxy(this.keyup, this))
|
139
|
+
|
140
|
+
if ($.browser.webkit || $.browser.msie) {
|
141
|
+
this.$element.on('keydown', $.proxy(this.keypress, this))
|
142
|
+
}
|
143
|
+
|
144
|
+
this.$menu
|
145
|
+
.on('click', $.proxy(this.click, this))
|
146
|
+
.on('mouseenter', 'li', $.proxy(this.mouseenter, this))
|
147
|
+
}
|
148
|
+
|
124
149
|
, keyup: function (e) {
|
125
150
|
e.stopPropagation()
|
126
151
|
e.preventDefault()
|
@@ -187,20 +212,6 @@
|
|
187
212
|
$(e.currentTarget).addClass('active')
|
188
213
|
}
|
189
214
|
|
190
|
-
, listen: function () {
|
191
|
-
this.$element
|
192
|
-
.on('blur', $.proxy(this.blur, this))
|
193
|
-
.on('keypress', $.proxy(this.keypress, this))
|
194
|
-
.on('keyup', $.proxy(this.keyup, this))
|
195
|
-
|
196
|
-
if ($.browser.webkit || $.browser.msie) {
|
197
|
-
this.$element.on('keydown', $.proxy(this.keypress, this))
|
198
|
-
}
|
199
|
-
|
200
|
-
this.$menu
|
201
|
-
.on('click', $.proxy(this.click, this))
|
202
|
-
.on('mouseenter', 'li', $.proxy(this.mouseenter, this))
|
203
|
-
}
|
204
215
|
}
|
205
216
|
|
206
217
|
|