twitter-bootstrap-rails 1.4.3 → 2.0rc0
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.
Potentially problematic release.
This version of twitter-bootstrap-rails might be problematic. Click here for more details.
- data/README.md +85 -52
- data/lib/generators/bootstrap/install/templates/bootstrap.coffee +15 -12
- data/lib/generators/bootstrap/layout/layout_generator.rb +1 -1
- data/lib/generators/bootstrap/layout/templates/layout.html.erb +97 -50
- data/lib/generators/bootstrap/layout/templates/layout.html.slim +40 -0
- data/lib/generators/bootstrap/themed/templates/_form.html.erb +5 -1
- data/lib/generators/bootstrap/themed/templates/edit.html.erb +2 -1
- data/lib/generators/bootstrap/themed/templates/index.html.erb +1 -0
- data/lib/generators/bootstrap/themed/templates/new.html.erb +1 -1
- data/lib/generators/bootstrap/themed/templates/show.html.erb +7 -3
- data/lib/generators/bootstrap/themed/themed_generator.rb +0 -15
- data/lib/twitter-bootstrap-rails.rb +3 -3
- data/lib/twitter/bootstrap/rails/bootstrap.rb +1 -1
- data/lib/twitter/bootstrap/rails/version.rb +1 -1
- data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings-white.png +0 -0
- data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings.png +0 -0
- data/vendor/assets/javascripts/twitter/bootstrap.js +10 -6
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-alert.js +91 -0
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-button.js +98 -0
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-carousel.js +154 -0
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-collapse.js +136 -0
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-dropdown.js +58 -21
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-modal.js +63 -114
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-popover.js +38 -33
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-scrollspy.js +62 -44
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-tab.js +130 -0
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-tooltip.js +270 -0
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-transition.js +51 -0
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-typeahead.js +271 -0
- data/vendor/toolkit/twitter/bootstrap/accordion.less +28 -0
- data/vendor/toolkit/twitter/bootstrap/alerts.less +70 -0
- data/vendor/toolkit/twitter/bootstrap/bootstrap.less +41 -5
- data/vendor/toolkit/twitter/bootstrap/breadcrumbs.less +22 -0
- data/vendor/toolkit/twitter/bootstrap/button-groups.less +147 -0
- data/vendor/toolkit/twitter/bootstrap/buttons.less +165 -0
- data/vendor/toolkit/twitter/bootstrap/carousel.less +121 -0
- data/vendor/toolkit/twitter/bootstrap/close.less +18 -0
- data/vendor/toolkit/twitter/bootstrap/code.less +44 -0
- data/vendor/toolkit/twitter/bootstrap/component-animations.less +18 -0
- data/vendor/toolkit/twitter/bootstrap/dropdowns.less +131 -0
- data/vendor/toolkit/twitter/bootstrap/forms.less +335 -299
- data/vendor/toolkit/twitter/bootstrap/grid.less +8 -0
- data/vendor/toolkit/twitter/bootstrap/hero-unit.less +20 -0
- data/vendor/toolkit/twitter/bootstrap/labels.less +16 -0
- data/vendor/toolkit/twitter/bootstrap/layouts.less +17 -0
- data/vendor/toolkit/twitter/bootstrap/mixins.less +391 -76
- data/vendor/toolkit/twitter/bootstrap/modals.less +72 -0
- data/vendor/toolkit/twitter/bootstrap/navbar.less +292 -0
- data/vendor/toolkit/twitter/bootstrap/navs.less +344 -0
- data/vendor/toolkit/twitter/bootstrap/pager.less +30 -0
- data/vendor/toolkit/twitter/bootstrap/pagination.less +55 -0
- data/vendor/toolkit/twitter/bootstrap/popovers.less +49 -0
- data/vendor/toolkit/twitter/bootstrap/progress-bars.less +95 -0
- data/vendor/toolkit/twitter/bootstrap/reset.less +37 -52
- data/vendor/toolkit/twitter/bootstrap/responsive.less +323 -0
- data/vendor/toolkit/twitter/bootstrap/scaffolding.less +13 -123
- data/vendor/toolkit/twitter/bootstrap/sprites.less +156 -0
- data/vendor/toolkit/twitter/bootstrap/tables.less +75 -160
- data/vendor/toolkit/twitter/bootstrap/thumbnails.less +35 -0
- data/vendor/toolkit/twitter/bootstrap/tooltip.less +35 -0
- data/vendor/toolkit/twitter/bootstrap/type.less +100 -70
- data/vendor/toolkit/twitter/bootstrap/utilities.less +23 -0
- data/vendor/toolkit/twitter/bootstrap/variables.less +94 -55
- data/vendor/toolkit/twitter/bootstrap/wells.less +17 -0
- metadata +58 -49
- data/lib/generators/bootstrap/themed/templates/builders/builder.rb +0 -24
- data/lib/generators/bootstrap/themed/templates/builders/helper.rb +0 -6
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-alerts.js +0 -124
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-buttons.js +0 -64
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-tabs.js +0 -80
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-twipsy.js +0 -321
- data/vendor/toolkit/twitter/bootstrap/patterns.less +0 -1063
@@ -0,0 +1,17 @@
|
|
1
|
+
// WELLS
|
2
|
+
// -----
|
3
|
+
|
4
|
+
.well {
|
5
|
+
min-height: 20px;
|
6
|
+
padding: 19px;
|
7
|
+
margin-bottom: 20px;
|
8
|
+
background-color: #f5f5f5;
|
9
|
+
border: 1px solid #eee;
|
10
|
+
border: 1px solid rgba(0,0,0,.05);
|
11
|
+
.border-radius(4px);
|
12
|
+
.box-shadow(inset 0 1px 1px rgba(0,0,0,.05));
|
13
|
+
blockquote {
|
14
|
+
border-color: #ddd;
|
15
|
+
border-color: rgba(0,0,0,.15);
|
16
|
+
}
|
17
|
+
}
|
metadata
CHANGED
@@ -1,82 +1,60 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twitter-bootstrap-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
5
|
-
prerelease:
|
4
|
+
version: 2.0rc0
|
5
|
+
prerelease: 3
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Seyhun Akyurek
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2012-02-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
name: jquery-rails
|
16
|
-
requirement: &82471270 !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ! '>='
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '1.0'
|
22
|
-
type: :runtime
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: *82471270
|
25
|
-
- !ruby/object:Gem::Dependency
|
26
|
-
name: less-rails
|
27
|
-
requirement: &82470700 !ruby/object:Gem::Requirement
|
28
|
-
none: false
|
29
|
-
requirements:
|
30
|
-
- - ~>
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 2.1.0
|
33
|
-
type: :runtime
|
34
|
-
prerelease: false
|
35
|
-
version_requirements: *82470700
|
36
14
|
- !ruby/object:Gem::Dependency
|
37
15
|
name: railties
|
38
|
-
requirement: &
|
16
|
+
requirement: &85810950 !ruby/object:Gem::Requirement
|
39
17
|
none: false
|
40
18
|
requirements:
|
41
19
|
- - ! '>='
|
42
20
|
- !ruby/object:Gem::Version
|
43
|
-
version: '
|
21
|
+
version: '3.1'
|
44
22
|
type: :runtime
|
45
23
|
prerelease: false
|
46
|
-
version_requirements: *
|
24
|
+
version_requirements: *85810950
|
47
25
|
- !ruby/object:Gem::Dependency
|
48
26
|
name: actionpack
|
49
|
-
requirement: &
|
27
|
+
requirement: &85810650 !ruby/object:Gem::Requirement
|
50
28
|
none: false
|
51
29
|
requirements:
|
52
30
|
- - ! '>='
|
53
31
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
32
|
+
version: '3.1'
|
55
33
|
type: :runtime
|
56
34
|
prerelease: false
|
57
|
-
version_requirements: *
|
35
|
+
version_requirements: *85810650
|
58
36
|
- !ruby/object:Gem::Dependency
|
59
|
-
name:
|
60
|
-
requirement: &
|
37
|
+
name: less-rails
|
38
|
+
requirement: &85810370 !ruby/object:Gem::Requirement
|
61
39
|
none: false
|
62
40
|
requirements:
|
63
|
-
- -
|
41
|
+
- - ~>
|
64
42
|
- !ruby/object:Gem::Version
|
65
|
-
version:
|
66
|
-
type: :
|
43
|
+
version: 2.1.2
|
44
|
+
type: :runtime
|
67
45
|
prerelease: false
|
68
|
-
version_requirements: *
|
46
|
+
version_requirements: *85810370
|
69
47
|
- !ruby/object:Gem::Dependency
|
70
48
|
name: rails
|
71
|
-
requirement: &
|
49
|
+
requirement: &85810030 !ruby/object:Gem::Requirement
|
72
50
|
none: false
|
73
51
|
requirements:
|
74
52
|
- - ! '>='
|
75
53
|
- !ruby/object:Gem::Version
|
76
|
-
version: 3.1
|
54
|
+
version: '3.1'
|
77
55
|
type: :development
|
78
56
|
prerelease: false
|
79
|
-
version_requirements: *
|
57
|
+
version_requirements: *85810030
|
80
58
|
description: twitter-bootstrap-rails project integrates Bootstrap CSS toolkit for
|
81
59
|
Rails 3.1 Asset Pipeline
|
82
60
|
email:
|
@@ -86,10 +64,9 @@ extensions: []
|
|
86
64
|
extra_rdoc_files: []
|
87
65
|
files:
|
88
66
|
- lib/generators/bootstrap/layout/layout_generator.rb
|
67
|
+
- lib/generators/bootstrap/layout/templates/layout.html.slim
|
89
68
|
- lib/generators/bootstrap/layout/templates/layout.html.erb
|
90
69
|
- lib/generators/bootstrap/themed/themed_generator.rb
|
91
|
-
- lib/generators/bootstrap/themed/templates/builders/builder.rb
|
92
|
-
- lib/generators/bootstrap/themed/templates/builders/helper.rb
|
93
70
|
- lib/generators/bootstrap/themed/templates/show.html.erb
|
94
71
|
- lib/generators/bootstrap/themed/templates/new.html.erb
|
95
72
|
- lib/generators/bootstrap/themed/templates/index.html.erb
|
@@ -104,24 +81,56 @@ files:
|
|
104
81
|
- lib/twitter/bootstrap/rails/bootstrap.rb
|
105
82
|
- lib/twitter/bootstrap/rails/version.rb
|
106
83
|
- lib/twitter/bootstrap/rails/engine.rb
|
84
|
+
- vendor/assets/images/twitter/bootstrap/glyphicons-halflings-white.png
|
85
|
+
- vendor/assets/images/twitter/bootstrap/glyphicons-halflings.png
|
107
86
|
- vendor/assets/stylesheets/twitter/bootstrap.css.less
|
108
87
|
- vendor/assets/javascripts/twitter/bootstrap.js
|
109
|
-
- vendor/assets/javascripts/twitter/bootstrap/bootstrap-twipsy.js
|
110
88
|
- vendor/assets/javascripts/twitter/bootstrap/bootstrap-modal.js
|
111
|
-
- vendor/assets/javascripts/twitter/bootstrap/bootstrap-
|
89
|
+
- vendor/assets/javascripts/twitter/bootstrap/bootstrap-button.js
|
90
|
+
- vendor/assets/javascripts/twitter/bootstrap/bootstrap-tab.js
|
91
|
+
- vendor/assets/javascripts/twitter/bootstrap/bootstrap-typeahead.js
|
92
|
+
- vendor/assets/javascripts/twitter/bootstrap/bootstrap-carousel.js
|
93
|
+
- vendor/assets/javascripts/twitter/bootstrap/bootstrap-collapse.js
|
94
|
+
- vendor/assets/javascripts/twitter/bootstrap/bootstrap-transition.js
|
112
95
|
- vendor/assets/javascripts/twitter/bootstrap/bootstrap-dropdown.js
|
113
96
|
- vendor/assets/javascripts/twitter/bootstrap/bootstrap-popover.js
|
114
|
-
- vendor/assets/javascripts/twitter/bootstrap/bootstrap-
|
97
|
+
- vendor/assets/javascripts/twitter/bootstrap/bootstrap-tooltip.js
|
98
|
+
- vendor/assets/javascripts/twitter/bootstrap/bootstrap-alert.js
|
115
99
|
- vendor/assets/javascripts/twitter/bootstrap/bootstrap-scrollspy.js
|
116
|
-
- vendor/assets/javascripts/twitter/bootstrap/bootstrap-buttons.js
|
117
100
|
- vendor/toolkit/twitter/bootstrap.less
|
118
|
-
- vendor/toolkit/twitter/bootstrap/
|
101
|
+
- vendor/toolkit/twitter/bootstrap/thumbnails.less
|
102
|
+
- vendor/toolkit/twitter/bootstrap/code.less
|
103
|
+
- vendor/toolkit/twitter/bootstrap/navbar.less
|
104
|
+
- vendor/toolkit/twitter/bootstrap/pagination.less
|
105
|
+
- vendor/toolkit/twitter/bootstrap/close.less
|
106
|
+
- vendor/toolkit/twitter/bootstrap/utilities.less
|
107
|
+
- vendor/toolkit/twitter/bootstrap/carousel.less
|
119
108
|
- vendor/toolkit/twitter/bootstrap/tables.less
|
109
|
+
- vendor/toolkit/twitter/bootstrap/grid.less
|
110
|
+
- vendor/toolkit/twitter/bootstrap/labels.less
|
111
|
+
- vendor/toolkit/twitter/bootstrap/tooltip.less
|
112
|
+
- vendor/toolkit/twitter/bootstrap/component-animations.less
|
113
|
+
- vendor/toolkit/twitter/bootstrap/responsive.less
|
114
|
+
- vendor/toolkit/twitter/bootstrap/popovers.less
|
115
|
+
- vendor/toolkit/twitter/bootstrap/alerts.less
|
120
116
|
- vendor/toolkit/twitter/bootstrap/scaffolding.less
|
117
|
+
- vendor/toolkit/twitter/bootstrap/navs.less
|
118
|
+
- vendor/toolkit/twitter/bootstrap/hero-unit.less
|
119
|
+
- vendor/toolkit/twitter/bootstrap/sprites.less
|
121
120
|
- vendor/toolkit/twitter/bootstrap/forms.less
|
121
|
+
- vendor/toolkit/twitter/bootstrap/button-groups.less
|
122
|
+
- vendor/toolkit/twitter/bootstrap/layouts.less
|
123
|
+
- vendor/toolkit/twitter/bootstrap/progress-bars.less
|
124
|
+
- vendor/toolkit/twitter/bootstrap/breadcrumbs.less
|
122
125
|
- vendor/toolkit/twitter/bootstrap/reset.less
|
126
|
+
- vendor/toolkit/twitter/bootstrap/dropdowns.less
|
127
|
+
- vendor/toolkit/twitter/bootstrap/modals.less
|
128
|
+
- vendor/toolkit/twitter/bootstrap/pager.less
|
129
|
+
- vendor/toolkit/twitter/bootstrap/wells.less
|
123
130
|
- vendor/toolkit/twitter/bootstrap/mixins.less
|
131
|
+
- vendor/toolkit/twitter/bootstrap/accordion.less
|
124
132
|
- vendor/toolkit/twitter/bootstrap/type.less
|
133
|
+
- vendor/toolkit/twitter/bootstrap/buttons.less
|
125
134
|
- vendor/toolkit/twitter/bootstrap/bootstrap.less
|
126
135
|
- vendor/toolkit/twitter/bootstrap/variables.less
|
127
136
|
- Rakefile
|
@@ -141,9 +150,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
141
150
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
142
151
|
none: false
|
143
152
|
requirements:
|
144
|
-
- - ! '
|
153
|
+
- - ! '>'
|
145
154
|
- !ruby/object:Gem::Version
|
146
|
-
version:
|
155
|
+
version: 1.3.1
|
147
156
|
requirements: []
|
148
157
|
rubyforge_project: twitter-bootstrap-rails
|
149
158
|
rubygems_version: 1.8.11
|
@@ -1,24 +0,0 @@
|
|
1
|
-
class BootstrapFormBuilder < ActionView::Helpers::FormBuilder
|
2
|
-
helpers = field_helpers +
|
3
|
-
%w{date_select datetime_select time_select} +
|
4
|
-
%w{collection_select select country_select time_zone_select} -
|
5
|
-
%w{hidden_field label fields_for}
|
6
|
-
|
7
|
-
helpers.each do |name|
|
8
|
-
define_method(name) do |field, *args|
|
9
|
-
options_index = ActionView::Helpers::FormBuilder.instance_method(name.to_sym).parameters.index([:opt,:options])
|
10
|
-
if options_index.nil?
|
11
|
-
options = args.last.is_a?(Hash) ? args.pop : {}
|
12
|
-
else
|
13
|
-
options = args[options_index - 1]
|
14
|
-
end
|
15
|
-
label = label(field, options[:label], :class => options[:label_class])
|
16
|
-
@template.content_tag(:div, :class => 'clearfix') do
|
17
|
-
@template.concat(label)
|
18
|
-
@template.concat(@template.content_tag(:div, :class => 'input') { @template.concat(super(field, *args)) })
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
ActionView::Base.default_form_builder = BootstrapFormBuilder
|
@@ -1,124 +0,0 @@
|
|
1
|
-
/* ==========================================================
|
2
|
-
* bootstrap-alerts.js v1.4.0
|
3
|
-
* http://twitter.github.com/bootstrap/javascript.html#alerts
|
4
|
-
* ==========================================================
|
5
|
-
* Copyright 2011 Twitter, Inc.
|
6
|
-
*
|
7
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
-
* you may not use this file except in compliance with the License.
|
9
|
-
* You may obtain a copy of the License at
|
10
|
-
*
|
11
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
12
|
-
*
|
13
|
-
* Unless required by applicable law or agreed to in writing, software
|
14
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
-
* See the License for the specific language governing permissions and
|
17
|
-
* limitations under the License.
|
18
|
-
* ========================================================== */
|
19
|
-
|
20
|
-
|
21
|
-
!function( $ ){
|
22
|
-
|
23
|
-
"use strict"
|
24
|
-
|
25
|
-
/* CSS TRANSITION SUPPORT (https://gist.github.com/373874)
|
26
|
-
* ======================================================= */
|
27
|
-
|
28
|
-
var transitionEnd
|
29
|
-
|
30
|
-
$(document).ready(function () {
|
31
|
-
|
32
|
-
$.support.transition = (function () {
|
33
|
-
var thisBody = document.body || document.documentElement
|
34
|
-
, thisStyle = thisBody.style
|
35
|
-
, support = thisStyle.transition !== undefined || thisStyle.WebkitTransition !== undefined || thisStyle.MozTransition !== undefined || thisStyle.MsTransition !== undefined || thisStyle.OTransition !== undefined
|
36
|
-
return support
|
37
|
-
})()
|
38
|
-
|
39
|
-
// set CSS transition event type
|
40
|
-
if ( $.support.transition ) {
|
41
|
-
transitionEnd = "TransitionEnd"
|
42
|
-
if ( $.browser.webkit ) {
|
43
|
-
transitionEnd = "webkitTransitionEnd"
|
44
|
-
} else if ( $.browser.mozilla ) {
|
45
|
-
transitionEnd = "transitionend"
|
46
|
-
} else if ( $.browser.opera ) {
|
47
|
-
transitionEnd = "oTransitionEnd"
|
48
|
-
}
|
49
|
-
}
|
50
|
-
|
51
|
-
})
|
52
|
-
|
53
|
-
/* ALERT CLASS DEFINITION
|
54
|
-
* ====================== */
|
55
|
-
|
56
|
-
var Alert = function ( content, options ) {
|
57
|
-
if (options == 'close') return this.close.call(content)
|
58
|
-
this.settings = $.extend({}, $.fn.alert.defaults, options)
|
59
|
-
this.$element = $(content)
|
60
|
-
.delegate(this.settings.selector, 'click', this.close)
|
61
|
-
}
|
62
|
-
|
63
|
-
Alert.prototype = {
|
64
|
-
|
65
|
-
close: function (e) {
|
66
|
-
var $element = $(this)
|
67
|
-
, className = 'alert-message'
|
68
|
-
|
69
|
-
$element = $element.hasClass(className) ? $element : $element.parent()
|
70
|
-
|
71
|
-
e && e.preventDefault()
|
72
|
-
$element.removeClass('in')
|
73
|
-
|
74
|
-
function removeElement () {
|
75
|
-
$element.remove()
|
76
|
-
}
|
77
|
-
|
78
|
-
$.support.transition && $element.hasClass('fade') ?
|
79
|
-
$element.bind(transitionEnd, removeElement) :
|
80
|
-
removeElement()
|
81
|
-
}
|
82
|
-
|
83
|
-
}
|
84
|
-
|
85
|
-
|
86
|
-
/* ALERT PLUGIN DEFINITION
|
87
|
-
* ======================= */
|
88
|
-
|
89
|
-
$.fn.alert = function ( options ) {
|
90
|
-
|
91
|
-
if ( options === true ) {
|
92
|
-
return this.data('alert')
|
93
|
-
}
|
94
|
-
|
95
|
-
return this.each(function () {
|
96
|
-
var $this = $(this)
|
97
|
-
, data
|
98
|
-
|
99
|
-
if ( typeof options == 'string' ) {
|
100
|
-
|
101
|
-
data = $this.data('alert')
|
102
|
-
|
103
|
-
if (typeof data == 'object') {
|
104
|
-
return data[options].call( $this )
|
105
|
-
}
|
106
|
-
|
107
|
-
}
|
108
|
-
|
109
|
-
$(this).data('alert', new Alert( this, options ))
|
110
|
-
|
111
|
-
})
|
112
|
-
}
|
113
|
-
|
114
|
-
$.fn.alert.defaults = {
|
115
|
-
selector: '.close'
|
116
|
-
}
|
117
|
-
|
118
|
-
$(document).ready(function () {
|
119
|
-
new Alert($('body'), {
|
120
|
-
selector: '.alert-message[data-alert] .close'
|
121
|
-
})
|
122
|
-
})
|
123
|
-
|
124
|
-
}( window.jQuery || window.ender );
|
@@ -1,64 +0,0 @@
|
|
1
|
-
/* ============================================================
|
2
|
-
* bootstrap-buttons.js v1.4.0
|
3
|
-
* http://twitter.github.com/bootstrap/javascript.html#buttons
|
4
|
-
* ============================================================
|
5
|
-
* Copyright 2011 Twitter, Inc.
|
6
|
-
*
|
7
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
-
* you may not use this file except in compliance with the License.
|
9
|
-
* You may obtain a copy of the License at
|
10
|
-
*
|
11
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
12
|
-
*
|
13
|
-
* Unless required by applicable law or agreed to in writing, software
|
14
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
-
* See the License for the specific language governing permissions and
|
17
|
-
* limitations under the License.
|
18
|
-
* ============================================================ */
|
19
|
-
|
20
|
-
!function( $ ){
|
21
|
-
|
22
|
-
"use strict"
|
23
|
-
|
24
|
-
function setState(el, state) {
|
25
|
-
var d = 'disabled'
|
26
|
-
, $el = $(el)
|
27
|
-
, data = $el.data()
|
28
|
-
|
29
|
-
state = state + 'Text'
|
30
|
-
data.resetText || $el.data('resetText', $el.html())
|
31
|
-
|
32
|
-
$el.html( data[state] || $.fn.button.defaults[state] )
|
33
|
-
|
34
|
-
setTimeout(function () {
|
35
|
-
state == 'loadingText' ?
|
36
|
-
$el.addClass(d).attr(d, d) :
|
37
|
-
$el.removeClass(d).removeAttr(d)
|
38
|
-
}, 0)
|
39
|
-
}
|
40
|
-
|
41
|
-
function toggle(el) {
|
42
|
-
$(el).toggleClass('active')
|
43
|
-
}
|
44
|
-
|
45
|
-
$.fn.button = function(options) {
|
46
|
-
return this.each(function () {
|
47
|
-
if (options == 'toggle') {
|
48
|
-
return toggle(this)
|
49
|
-
}
|
50
|
-
options && setState(this, options)
|
51
|
-
})
|
52
|
-
}
|
53
|
-
|
54
|
-
$.fn.button.defaults = {
|
55
|
-
loadingText: 'loading...'
|
56
|
-
}
|
57
|
-
|
58
|
-
$(function () {
|
59
|
-
$('body').delegate('.btn[data-toggle]', 'click', function () {
|
60
|
-
$(this).button('toggle')
|
61
|
-
})
|
62
|
-
})
|
63
|
-
|
64
|
-
}( window.jQuery || window.ender );
|
@@ -1,80 +0,0 @@
|
|
1
|
-
/* ========================================================
|
2
|
-
* bootstrap-tabs.js v1.4.0
|
3
|
-
* http://twitter.github.com/bootstrap/javascript.html#tabs
|
4
|
-
* ========================================================
|
5
|
-
* Copyright 2011 Twitter, Inc.
|
6
|
-
*
|
7
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
-
* you may not use this file except in compliance with the License.
|
9
|
-
* You may obtain a copy of the License at
|
10
|
-
*
|
11
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
12
|
-
*
|
13
|
-
* Unless required by applicable law or agreed to in writing, software
|
14
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
-
* See the License for the specific language governing permissions and
|
17
|
-
* limitations under the License.
|
18
|
-
* ======================================================== */
|
19
|
-
|
20
|
-
|
21
|
-
!function( $ ){
|
22
|
-
|
23
|
-
"use strict"
|
24
|
-
|
25
|
-
function activate ( element, container ) {
|
26
|
-
container
|
27
|
-
.find('> .active')
|
28
|
-
.removeClass('active')
|
29
|
-
.find('> .dropdown-menu > .active')
|
30
|
-
.removeClass('active')
|
31
|
-
|
32
|
-
element.addClass('active')
|
33
|
-
|
34
|
-
if ( element.parent('.dropdown-menu') ) {
|
35
|
-
element.closest('li.dropdown').addClass('active')
|
36
|
-
}
|
37
|
-
}
|
38
|
-
|
39
|
-
function tab( e ) {
|
40
|
-
var $this = $(this)
|
41
|
-
, $ul = $this.closest('ul:not(.dropdown-menu)')
|
42
|
-
, href = $this.attr('href')
|
43
|
-
, previous
|
44
|
-
, $href
|
45
|
-
|
46
|
-
if ( /^#\w+/.test(href) ) {
|
47
|
-
e.preventDefault()
|
48
|
-
|
49
|
-
if ( $this.parent('li').hasClass('active') ) {
|
50
|
-
return
|
51
|
-
}
|
52
|
-
|
53
|
-
previous = $ul.find('.active a').last()[0]
|
54
|
-
$href = $(href)
|
55
|
-
|
56
|
-
activate($this.parent('li'), $ul)
|
57
|
-
activate($href, $href.parent())
|
58
|
-
|
59
|
-
$this.trigger({
|
60
|
-
type: 'change'
|
61
|
-
, relatedTarget: previous
|
62
|
-
})
|
63
|
-
}
|
64
|
-
}
|
65
|
-
|
66
|
-
|
67
|
-
/* TABS/PILLS PLUGIN DEFINITION
|
68
|
-
* ============================ */
|
69
|
-
|
70
|
-
$.fn.tabs = $.fn.pills = function ( selector ) {
|
71
|
-
return this.each(function () {
|
72
|
-
$(this).delegate(selector || '.tabs li > a, .pills > li > a', 'click', tab)
|
73
|
-
})
|
74
|
-
}
|
75
|
-
|
76
|
-
$(document).ready(function () {
|
77
|
-
$('body').tabs('ul[data-tabs] li > a, ul[data-pills] > li > a')
|
78
|
-
})
|
79
|
-
|
80
|
-
}( window.jQuery || window.ender );
|