bootstrapped-rails 2.0.8 → 2.0.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (152) hide show
  1. data/lib/bootstrapped-rails/version.rb +1 -1
  2. metadata +7 -157
  3. data/vendor/assets/twitter/docs/assets/bootstrap.zip +0 -0
  4. data/vendor/assets/twitter/docs/assets/css/bootstrap-responsive.css +0 -567
  5. data/vendor/assets/twitter/docs/assets/css/bootstrap.css +0 -3365
  6. data/vendor/assets/twitter/docs/assets/css/docs.css +0 -790
  7. data/vendor/assets/twitter/docs/assets/ico/bootstrap-apple-114x114.png +0 -0
  8. data/vendor/assets/twitter/docs/assets/ico/bootstrap-apple-57x57.png +0 -0
  9. data/vendor/assets/twitter/docs/assets/ico/bootstrap-apple-72x72.png +0 -0
  10. data/vendor/assets/twitter/docs/assets/ico/favicon.ico +0 -0
  11. data/vendor/assets/twitter/docs/assets/img/bird.png +0 -0
  12. data/vendor/assets/twitter/docs/assets/img/bootstrap-mdo-sfmoma-01.jpg +0 -0
  13. data/vendor/assets/twitter/docs/assets/img/bootstrap-mdo-sfmoma-02.jpg +0 -0
  14. data/vendor/assets/twitter/docs/assets/img/bootstrap-mdo-sfmoma-03.jpg +0 -0
  15. data/vendor/assets/twitter/docs/assets/img/browsers.png +0 -0
  16. data/vendor/assets/twitter/docs/assets/img/example-diagram-01.png +0 -0
  17. data/vendor/assets/twitter/docs/assets/img/example-diagram-02.png +0 -0
  18. data/vendor/assets/twitter/docs/assets/img/example-diagram-03.png +0 -0
  19. data/vendor/assets/twitter/docs/assets/img/example-sites/bartop.png +0 -0
  20. data/vendor/assets/twitter/docs/assets/img/example-sites/fleetio.png +0 -0
  21. data/vendor/assets/twitter/docs/assets/img/example-sites/jshint.png +0 -0
  22. data/vendor/assets/twitter/docs/assets/img/example-sites/kippt.png +0 -0
  23. data/vendor/assets/twitter/docs/assets/img/example-sites/railwayjs.png +0 -0
  24. data/vendor/assets/twitter/docs/assets/img/example-sites/totalwireframe.png +0 -0
  25. data/vendor/assets/twitter/docs/assets/img/examples/bootstrap-example-fluid.jpg +0 -0
  26. data/vendor/assets/twitter/docs/assets/img/examples/bootstrap-example-hero.jpg +0 -0
  27. data/vendor/assets/twitter/docs/assets/img/examples/bootstrap-example-starter.jpg +0 -0
  28. data/vendor/assets/twitter/docs/assets/img/github-16px.png +0 -0
  29. data/vendor/assets/twitter/docs/assets/img/glyphicons-halflings-white.png +0 -0
  30. data/vendor/assets/twitter/docs/assets/img/glyphicons-halflings.png +0 -0
  31. data/vendor/assets/twitter/docs/assets/img/glyphicons/glyphicons_009_magic.png +0 -0
  32. data/vendor/assets/twitter/docs/assets/img/glyphicons/glyphicons_042_group.png +0 -0
  33. data/vendor/assets/twitter/docs/assets/img/glyphicons/glyphicons_079_podium.png +0 -0
  34. data/vendor/assets/twitter/docs/assets/img/glyphicons/glyphicons_082_roundabout.png +0 -0
  35. data/vendor/assets/twitter/docs/assets/img/glyphicons/glyphicons_155_show_thumbnails.png +0 -0
  36. data/vendor/assets/twitter/docs/assets/img/glyphicons/glyphicons_163_iphone.png +0 -0
  37. data/vendor/assets/twitter/docs/assets/img/glyphicons/glyphicons_214_resize_small.png +0 -0
  38. data/vendor/assets/twitter/docs/assets/img/glyphicons/glyphicons_266_book_open.png +0 -0
  39. data/vendor/assets/twitter/docs/assets/img/grid-18px-masked.png +0 -0
  40. data/vendor/assets/twitter/docs/assets/img/icon-css3.png +0 -0
  41. data/vendor/assets/twitter/docs/assets/img/icon-github.png +0 -0
  42. data/vendor/assets/twitter/docs/assets/img/icon-html5.png +0 -0
  43. data/vendor/assets/twitter/docs/assets/img/icon-twitter.png +0 -0
  44. data/vendor/assets/twitter/docs/assets/img/less-logo-large.png +0 -0
  45. data/vendor/assets/twitter/docs/assets/img/less-small.png +0 -0
  46. data/vendor/assets/twitter/docs/assets/img/responsive-illustrations.png +0 -0
  47. data/vendor/assets/twitter/docs/assets/js/README.md +0 -106
  48. data/vendor/assets/twitter/docs/assets/js/application.js +0 -180
  49. data/vendor/assets/twitter/docs/assets/js/bootstrap-alert.js +0 -91
  50. data/vendor/assets/twitter/docs/assets/js/bootstrap-button.js +0 -98
  51. data/vendor/assets/twitter/docs/assets/js/bootstrap-carousel.js +0 -154
  52. data/vendor/assets/twitter/docs/assets/js/bootstrap-collapse.js +0 -136
  53. data/vendor/assets/twitter/docs/assets/js/bootstrap-dropdown.js +0 -92
  54. data/vendor/assets/twitter/docs/assets/js/bootstrap-modal.js +0 -209
  55. data/vendor/assets/twitter/docs/assets/js/bootstrap-popover.js +0 -95
  56. data/vendor/assets/twitter/docs/assets/js/bootstrap-scrollspy.js +0 -125
  57. data/vendor/assets/twitter/docs/assets/js/bootstrap-tab.js +0 -130
  58. data/vendor/assets/twitter/docs/assets/js/bootstrap-tooltip.js +0 -270
  59. data/vendor/assets/twitter/docs/assets/js/bootstrap-transition.js +0 -51
  60. data/vendor/assets/twitter/docs/assets/js/bootstrap-typeahead.js +0 -271
  61. data/vendor/assets/twitter/docs/assets/js/google-code-prettify/prettify.css +0 -30
  62. data/vendor/assets/twitter/docs/assets/js/google-code-prettify/prettify.js +0 -28
  63. data/vendor/assets/twitter/docs/assets/js/jquery.js +0 -9252
  64. data/vendor/assets/twitter/docs/base-css.html +0 -1582
  65. data/vendor/assets/twitter/docs/build/index.js +0 -33
  66. data/vendor/assets/twitter/docs/build/node_modules/.bin/hulk +0 -93
  67. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/.git_ignore +0 -1
  68. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/.gitmodules +0 -3
  69. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/LICENSE +0 -177
  70. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/Makefile +0 -62
  71. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/README.md +0 -93
  72. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/bin/hulk +0 -93
  73. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/lib/compiler.js +0 -348
  74. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/lib/hogan.js +0 -20
  75. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/lib/template.js +0 -233
  76. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/package.json +0 -20
  77. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/html/list.html +0 -8
  78. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/index.html +0 -13
  79. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/index.js +0 -848
  80. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/mustache.js +0 -90
  81. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec.js +0 -77
  82. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec/Changes +0 -31
  83. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec/README.md +0 -65
  84. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec/Rakefile +0 -27
  85. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec/TESTING.md +0 -46
  86. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec/specs/comments.json +0 -1
  87. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec/specs/comments.yml +0 -103
  88. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec/specs/delimiters.json +0 -1
  89. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec/specs/delimiters.yml +0 -158
  90. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec/specs/interpolation.json +0 -1
  91. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec/specs/interpolation.yml +0 -230
  92. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec/specs/inverted.json +0 -1
  93. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec/specs/inverted.yml +0 -193
  94. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec/specs/partials.json +0 -1
  95. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec/specs/partials.yml +0 -109
  96. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec/specs/sections.json +0 -1
  97. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec/specs/sections.yml +0 -256
  98. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec/specs/~lambdas.json +0 -1
  99. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec/specs/~lambdas.yml +0 -149
  100. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/templates/list.mustache +0 -8
  101. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/tools/release.js +0 -74
  102. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/tools/web_templates.js +0 -32
  103. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/1.0.0/hogan.js +0 -500
  104. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/1.0.0/hogan.min.js +0 -14
  105. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.0/hogan.js +0 -500
  106. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.0/hogan.min.js +0 -14
  107. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.3/hogan.js +0 -545
  108. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.3/hogan.min.js +0 -5
  109. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.amd.js +0 -576
  110. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.common.js +0 -576
  111. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.js +0 -572
  112. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.amd.js +0 -5
  113. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.common.js +0 -5
  114. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.js +0 -5
  115. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.mustache.js +0 -5
  116. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.mustache.js +0 -619
  117. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.5/template-1.0.5.js +0 -233
  118. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.5/template-1.0.5.min.js +0 -5
  119. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/favicon.ico +0 -0
  120. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/images/logo.png +0 -0
  121. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/images/noise.png +0 -0
  122. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/images/small-hogan-icon.png +0 -0
  123. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/images/stripes.png +0 -0
  124. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/index.html.mustache +0 -139
  125. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/stylesheets/layout.css +0 -206
  126. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/stylesheets/skeleton.css +0 -236
  127. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/wrappers/amd.js.mustache +0 -21
  128. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/wrappers/common.js.mustache +0 -21
  129. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/wrappers/js.mustache +0 -17
  130. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/wrappers/mustache.js.mustache +0 -64
  131. data/vendor/assets/twitter/docs/build/package.json +0 -6
  132. data/vendor/assets/twitter/docs/components.html +0 -1517
  133. data/vendor/assets/twitter/docs/download.html +0 -362
  134. data/vendor/assets/twitter/docs/examples.html +0 -145
  135. data/vendor/assets/twitter/docs/examples/fluid.html +0 -150
  136. data/vendor/assets/twitter/docs/examples/hero.html +0 -107
  137. data/vendor/assets/twitter/docs/examples/starter-template.html +0 -77
  138. data/vendor/assets/twitter/docs/index.html +0 -249
  139. data/vendor/assets/twitter/docs/javascript.html +0 -1465
  140. data/vendor/assets/twitter/docs/less.html +0 -795
  141. data/vendor/assets/twitter/docs/scaffolding.html +0 -438
  142. data/vendor/assets/twitter/docs/templates/layout.mustache +0 -132
  143. data/vendor/assets/twitter/docs/templates/pages/base-css.mustache +0 -1468
  144. data/vendor/assets/twitter/docs/templates/pages/components.mustache +0 -1403
  145. data/vendor/assets/twitter/docs/templates/pages/download.mustache +0 -248
  146. data/vendor/assets/twitter/docs/templates/pages/examples.mustache +0 -31
  147. data/vendor/assets/twitter/docs/templates/pages/index.mustache +0 -136
  148. data/vendor/assets/twitter/docs/templates/pages/javascript.mustache +0 -1352
  149. data/vendor/assets/twitter/docs/templates/pages/less.mustache +0 -681
  150. data/vendor/assets/twitter/docs/templates/pages/scaffolding.mustache +0 -324
  151. data/vendor/assets/twitter/docs/templates/pages/upgrading.mustache +0 -183
  152. data/vendor/assets/twitter/docs/upgrading.html +0 -297
@@ -1,98 +0,0 @@
1
- /* ============================================================
2
- * bootstrap-button.js v2.0.0
3
- * http://twitter.github.com/bootstrap/javascript.html#buttons
4
- * ============================================================
5
- * Copyright 2012 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
- /* BUTTON PUBLIC CLASS DEFINITION
25
- * ============================== */
26
-
27
- var Button = function ( element, options ) {
28
- this.$element = $(element)
29
- this.options = $.extend({}, $.fn.button.defaults, options)
30
- }
31
-
32
- Button.prototype = {
33
-
34
- constructor: Button
35
-
36
- , setState: function ( state ) {
37
- var d = 'disabled'
38
- , $el = this.$element
39
- , data = $el.data()
40
- , val = $el.is('input') ? 'val' : 'html'
41
-
42
- state = state + 'Text'
43
- data.resetText || $el.data('resetText', $el[val]())
44
-
45
- $el[val](data[state] || this.options[state])
46
-
47
- // push to event loop to allow forms to submit
48
- setTimeout(function () {
49
- state == 'loadingText' ?
50
- $el.addClass(d).attr(d, d) :
51
- $el.removeClass(d).removeAttr(d)
52
- }, 0)
53
- }
54
-
55
- , toggle: function () {
56
- var $parent = this.$element.parent('[data-toggle="buttons-radio"]')
57
-
58
- $parent && $parent
59
- .find('.active')
60
- .removeClass('active')
61
-
62
- this.$element.toggleClass('active')
63
- }
64
-
65
- }
66
-
67
-
68
- /* BUTTON PLUGIN DEFINITION
69
- * ======================== */
70
-
71
- $.fn.button = function ( option ) {
72
- return this.each(function () {
73
- var $this = $(this)
74
- , data = $this.data('button')
75
- , options = typeof option == 'object' && option
76
- if (!data) $this.data('button', (data = new Button(this, options)))
77
- if (option == 'toggle') data.toggle()
78
- else if (option) data.setState(option)
79
- })
80
- }
81
-
82
- $.fn.button.defaults = {
83
- loadingText: 'loading...'
84
- }
85
-
86
- $.fn.button.Constructor = Button
87
-
88
-
89
- /* BUTTON DATA-API
90
- * =============== */
91
-
92
- $(function () {
93
- $('body').on('click.button.data-api', '[data-toggle^=button]', function ( e ) {
94
- $(e.target).button('toggle')
95
- })
96
- })
97
-
98
- }( window.jQuery )
@@ -1,154 +0,0 @@
1
- /* ==========================================================
2
- * bootstrap-carousel.js v2.0.0
3
- * http://twitter.github.com/bootstrap/javascript.html#carousel
4
- * ==========================================================
5
- * Copyright 2012 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
- /* CAROUSEL CLASS DEFINITION
26
- * ========================= */
27
-
28
- var Carousel = function (element, options) {
29
- this.$element = $(element)
30
- this.options = $.extend({}, $.fn.carousel.defaults, options)
31
- this.options.slide && this.slide(this.options.slide)
32
- }
33
-
34
- Carousel.prototype = {
35
-
36
- cycle: function () {
37
- this.interval = setInterval($.proxy(this.next, this), this.options.interval)
38
- return this
39
- }
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
-
62
- , pause: function () {
63
- clearInterval(this.interval)
64
- return this
65
- }
66
-
67
- , next: function () {
68
- if (this.sliding) return
69
- return this.slide('next')
70
- }
71
-
72
- , prev: function () {
73
- if (this.sliding) return
74
- return this.slide('prev')
75
- }
76
-
77
- , slide: function (type, next) {
78
- var $active = this.$element.find('.active')
79
- , $next = next || $active[type]()
80
- , isCycling = this.interval
81
- , direction = type == 'next' ? 'left' : 'right'
82
- , fallback = type == 'next' ? 'first' : 'last'
83
- , that = this
84
-
85
- this.sliding = true
86
-
87
- isCycling && this.pause()
88
-
89
- $next = $next.length ? $next : this.$element.find('.item')[fallback]()
90
-
91
- if (!$.support.transition && this.$element.hasClass('slide')) {
92
- this.$element.trigger('slide')
93
- $active.removeClass('active')
94
- $next.addClass('active')
95
- this.sliding = false
96
- this.$element.trigger('slid')
97
- } else {
98
- $next.addClass(type)
99
- $next[0].offsetWidth // force reflow
100
- $active.addClass(direction)
101
- $next.addClass(direction)
102
- this.$element.trigger('slide')
103
- this.$element.one($.support.transition.end, function () {
104
- $next.removeClass([type, direction].join(' ')).addClass('active')
105
- $active.removeClass(['active', direction].join(' '))
106
- that.sliding = false
107
- setTimeout(function () { that.$element.trigger('slid') }, 0)
108
- })
109
- }
110
-
111
- isCycling && this.cycle()
112
-
113
- return this
114
- }
115
-
116
- }
117
-
118
-
119
- /* CAROUSEL PLUGIN DEFINITION
120
- * ========================== */
121
-
122
- $.fn.carousel = function ( option ) {
123
- return this.each(function () {
124
- var $this = $(this)
125
- , data = $this.data('carousel')
126
- , options = typeof option == 'object' && option
127
- if (!data) $this.data('carousel', (data = new Carousel(this, options)))
128
- if (typeof option == 'number') data.to(option)
129
- else if (typeof option == 'string' || (option = options.slide)) data[option]()
130
- else data.cycle()
131
- })
132
- }
133
-
134
- $.fn.carousel.defaults = {
135
- interval: 5000
136
- }
137
-
138
- $.fn.carousel.Constructor = Carousel
139
-
140
-
141
- /* CAROUSEL DATA-API
142
- * ================= */
143
-
144
- $(function () {
145
- $('body').on('click.carousel.data-api', '[data-slide]', function ( e ) {
146
- var $this = $(this), href
147
- , $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
148
- , options = !$target.data('modal') && $.extend({}, $target.data(), $this.data())
149
- $target.carousel(options)
150
- e.preventDefault()
151
- })
152
- })
153
-
154
- }( window.jQuery )
@@ -1,136 +0,0 @@
1
- /* =============================================================
2
- * bootstrap-collapse.js v2.0.0
3
- * http://twitter.github.com/bootstrap/javascript.html#collapse
4
- * =============================================================
5
- * Copyright 2012 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
- var Collapse = function ( element, options ) {
25
- this.$element = $(element)
26
- this.options = $.extend({}, $.fn.collapse.defaults, options)
27
-
28
- if (this.options["parent"]) {
29
- this.$parent = $(this.options["parent"])
30
- }
31
-
32
- this.options.toggle && this.toggle()
33
- }
34
-
35
- Collapse.prototype = {
36
-
37
- constructor: Collapse
38
-
39
- , dimension: function () {
40
- var hasWidth = this.$element.hasClass('width')
41
- return hasWidth ? 'width' : 'height'
42
- }
43
-
44
- , show: function () {
45
- var dimension = this.dimension()
46
- , scroll = $.camelCase(['scroll', dimension].join('-'))
47
- , actives = this.$parent && this.$parent.find('.in')
48
- , hasData
49
-
50
- if (actives && actives.length) {
51
- hasData = actives.data('collapse')
52
- actives.collapse('hide')
53
- hasData || actives.data('collapse', null)
54
- }
55
-
56
- this.$element[dimension](0)
57
- this.transition('addClass', 'show', 'shown')
58
- this.$element[dimension](this.$element[0][scroll])
59
-
60
- }
61
-
62
- , hide: function () {
63
- var dimension = this.dimension()
64
- this.reset(this.$element[dimension]())
65
- this.transition('removeClass', 'hide', 'hidden')
66
- this.$element[dimension](0)
67
- }
68
-
69
- , reset: function ( size ) {
70
- var dimension = this.dimension()
71
-
72
- this.$element
73
- .removeClass('collapse')
74
- [dimension](size || 'auto')
75
- [0].offsetWidth
76
-
77
- this.$element.addClass('collapse')
78
- }
79
-
80
- , transition: function ( method, startEvent, completeEvent ) {
81
- var that = this
82
- , complete = function () {
83
- if (startEvent == 'show') that.reset()
84
- that.$element.trigger(completeEvent)
85
- }
86
-
87
- this.$element
88
- .trigger(startEvent)
89
- [method]('in')
90
-
91
- $.support.transition && this.$element.hasClass('collapse') ?
92
- this.$element.one($.support.transition.end, complete) :
93
- complete()
94
- }
95
-
96
- , toggle: function () {
97
- this[this.$element.hasClass('in') ? 'hide' : 'show']()
98
- }
99
-
100
- }
101
-
102
- /* COLLAPSIBLE PLUGIN DEFINITION
103
- * ============================== */
104
-
105
- $.fn.collapse = function ( option ) {
106
- return this.each(function () {
107
- var $this = $(this)
108
- , data = $this.data('collapse')
109
- , options = typeof option == 'object' && option
110
- if (!data) $this.data('collapse', (data = new Collapse(this, options)))
111
- if (typeof option == 'string') data[option]()
112
- })
113
- }
114
-
115
- $.fn.collapse.defaults = {
116
- toggle: true
117
- }
118
-
119
- $.fn.collapse.Constructor = Collapse
120
-
121
-
122
- /* COLLAPSIBLE DATA-API
123
- * ==================== */
124
-
125
- $(function () {
126
- $('body').on('click.collapse.data-api', '[data-toggle=collapse]', function ( e ) {
127
- var $this = $(this), href
128
- , target = $this.attr('data-target')
129
- || e.preventDefault()
130
- || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7
131
- , option = $(target).data('collapse') ? 'toggle' : $this.data()
132
- $(target).collapse(option)
133
- })
134
- })
135
-
136
- }( window.jQuery )
@@ -1,92 +0,0 @@
1
- /* ============================================================
2
- * bootstrap-dropdown.js v2.0.0
3
- * http://twitter.github.com/bootstrap/javascript.html#dropdowns
4
- * ============================================================
5
- * Copyright 2012 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
- /* DROPDOWN CLASS DEFINITION
26
- * ========================= */
27
-
28
- var toggle = '[data-toggle="dropdown"]'
29
- , Dropdown = function ( element ) {
30
- var $el = $(element).on('click.dropdown.data-api', this.toggle)
31
- $('html').on('click.dropdown.data-api', function () {
32
- $el.parent().removeClass('open')
33
- })
34
- }
35
-
36
- Dropdown.prototype = {
37
-
38
- constructor: Dropdown
39
-
40
- , toggle: function ( e ) {
41
- var $this = $(this)
42
- , selector = $this.attr('data-target')
43
- , $parent
44
- , isActive
45
-
46
- if (!selector) {
47
- selector = $this.attr('href')
48
- selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
49
- }
50
-
51
- $parent = $(selector)
52
- $parent.length || ($parent = $this.parent())
53
-
54
- isActive = $parent.hasClass('open')
55
-
56
- clearMenus()
57
- !isActive && $parent.toggleClass('open')
58
-
59
- return false
60
- }
61
-
62
- }
63
-
64
- function clearMenus() {
65
- $(toggle).parent().removeClass('open')
66
- }
67
-
68
-
69
- /* DROPDOWN PLUGIN DEFINITION
70
- * ========================== */
71
-
72
- $.fn.dropdown = function ( option ) {
73
- return this.each(function () {
74
- var $this = $(this)
75
- , data = $this.data('dropdown')
76
- if (!data) $this.data('dropdown', (data = new Dropdown(this)))
77
- if (typeof option == 'string') data[option].call($this)
78
- })
79
- }
80
-
81
- $.fn.dropdown.Constructor = Dropdown
82
-
83
-
84
- /* APPLY TO STANDARD DROPDOWN ELEMENTS
85
- * =================================== */
86
-
87
- $(function () {
88
- $('html').on('click.dropdown.data-api', clearMenus)
89
- $('body').on('click.dropdown.data-api', toggle, Dropdown.prototype.toggle)
90
- })
91
-
92
- }( window.jQuery )