bootstrap_modal_rails 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bootstrap_modal_rails/version.rb +1 -1
- data/vendor/assets/javascripts/bootstrap_modal_rails/bootstrap-modal.js +78 -79
- data/vendor/assets/javascripts/bootstrap_modal_rails/bootstrap-modalmanager.js +64 -58
- data/vendor/assets/stylesheets/bootstrap_modal_rails/bootstrap-modal.css +21 -21
- metadata +3 -3
@@ -1,20 +1,20 @@
|
|
1
1
|
/* ===========================================================
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
2
|
+
* bootstrap-modal.js v2.1
|
3
|
+
* ===========================================================
|
4
|
+
* Copyright 2012 Jordan Schroter
|
5
|
+
*
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
* you may not use this file except in compliance with the License.
|
8
|
+
* You may obtain a copy of the License at
|
9
|
+
*
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
*
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
* See the License for the specific language governing permissions and
|
16
|
+
* limitations under the License.
|
17
|
+
* ========================================================== */
|
18
18
|
|
19
19
|
|
20
20
|
!function ($) {
|
@@ -36,15 +36,15 @@
|
|
36
36
|
this.options = options;
|
37
37
|
|
38
38
|
this.$element = $(element)
|
39
|
-
|
39
|
+
.delegate('[data-dismiss="modal"]', 'click.dismiss.modal', $.proxy(this.hide, this));
|
40
40
|
|
41
41
|
this.options.remote && this.$element.find('.modal-body').load(this.options.remote);
|
42
42
|
|
43
43
|
var manager = typeof this.options.manager === 'function' ?
|
44
|
-
|
44
|
+
this.options.manager.call(this) : this.options.manager;
|
45
45
|
|
46
46
|
manager = manager.appendModal ?
|
47
|
-
|
47
|
+
manager : $(manager).modalmanager().data('modalmanager');
|
48
48
|
|
49
49
|
manager.appendModal(this);
|
50
50
|
},
|
@@ -58,7 +58,7 @@
|
|
58
58
|
|
59
59
|
if (this.isShown) return;
|
60
60
|
|
61
|
-
this.$element.
|
61
|
+
this.$element.trigger(e);
|
62
62
|
|
63
63
|
if (e.isDefaultPrevented()) return;
|
64
64
|
|
@@ -74,7 +74,7 @@
|
|
74
74
|
|
75
75
|
e = $.Event('hide');
|
76
76
|
|
77
|
-
this.$element.
|
77
|
+
this.$element.trigger(e);
|
78
78
|
|
79
79
|
if (!this.isShown || e.isDefaultPrevented()) return (this.isShown = false);
|
80
80
|
|
@@ -89,20 +89,20 @@
|
|
89
89
|
$(document).off('focusin.modal');
|
90
90
|
|
91
91
|
this.$element
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
92
|
+
.removeClass('in')
|
93
|
+
.removeClass('animated')
|
94
|
+
.removeClass(this.options.attentionAnimation)
|
95
|
+
.removeClass('modal-overflow')
|
96
|
+
.attr('aria-hidden', true);
|
97
97
|
|
98
98
|
$.support.transition && this.$element.hasClass('fade') ?
|
99
|
-
|
100
|
-
|
99
|
+
this.hideWithTransition() :
|
100
|
+
this.hideModal();
|
101
101
|
},
|
102
102
|
|
103
103
|
layout: function () {
|
104
104
|
var prop = this.options.height ? 'height' : 'max-height',
|
105
|
-
|
105
|
+
value = this.options.height || this.options.maxHeight;
|
106
106
|
|
107
107
|
if (this.options.width){
|
108
108
|
this.$element.css('width', this.options.width);
|
@@ -121,25 +121,25 @@
|
|
121
121
|
}
|
122
122
|
|
123
123
|
this.$element.find('.modal-body')
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
var modalOverflow = $(window).height() - 10 < this.$element.height();
|
124
|
+
.css('overflow', '')
|
125
|
+
.css(prop, '');
|
128
126
|
|
129
127
|
if (value){
|
130
128
|
this.$element.find('.modal-body')
|
131
|
-
|
132
|
-
|
129
|
+
.css('overflow', 'auto')
|
130
|
+
.css(prop, value);
|
133
131
|
}
|
134
132
|
|
133
|
+
var modalOverflow = $(window).height() - 10 < this.$element.height();
|
134
|
+
|
135
135
|
if (modalOverflow || this.options.modalOverflow) {
|
136
136
|
this.$element
|
137
|
-
|
138
|
-
|
137
|
+
.css('margin-top', 0)
|
138
|
+
.addClass('modal-overflow');
|
139
139
|
} else {
|
140
140
|
this.$element
|
141
|
-
|
142
|
-
|
141
|
+
.css('margin-top', 0 - this.$element.height() / 2)
|
142
|
+
.removeClass('modal-overflow');
|
143
143
|
}
|
144
144
|
},
|
145
145
|
|
@@ -148,24 +148,24 @@
|
|
148
148
|
|
149
149
|
if (this.isShown && this.options.consumeTab) {
|
150
150
|
this.$element.on('keydown.tabindex.modal', '[data-tabindex]', function (e) {
|
151
|
-
|
151
|
+
if (e.keyCode && e.keyCode == 9){
|
152
152
|
var $next = $(this),
|
153
|
-
|
153
|
+
$rollover = $(this);
|
154
154
|
|
155
155
|
that.$element.find('[data-tabindex]:enabled:not([readonly])').each(function (e) {
|
156
156
|
if (!e.shiftKey){
|
157
157
|
$next = $next.data('tabindex') < $(this).data('tabindex') ?
|
158
|
-
|
159
|
-
|
158
|
+
$next = $(this) :
|
159
|
+
$rollover = $(this);
|
160
160
|
} else {
|
161
161
|
$next = $next.data('tabindex') > $(this).data('tabindex') ?
|
162
|
-
|
163
|
-
|
162
|
+
$next = $(this) :
|
163
|
+
$rollover = $(this);
|
164
164
|
}
|
165
165
|
});
|
166
166
|
|
167
167
|
$next[0] !== $(this)[0] ?
|
168
|
-
|
168
|
+
$next.focus() : $rollover.focus();
|
169
169
|
|
170
170
|
e.preventDefault();
|
171
171
|
}
|
@@ -190,10 +190,10 @@
|
|
190
190
|
|
191
191
|
hideWithTransition: function () {
|
192
192
|
var that = this
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
193
|
+
, timeout = setTimeout(function () {
|
194
|
+
that.$element.off($.support.transition.end);
|
195
|
+
that.hideModal();
|
196
|
+
}, 500);
|
197
197
|
|
198
198
|
this.$element.one($.support.transition.end, function () {
|
199
199
|
clearTimeout(timeout);
|
@@ -202,19 +202,18 @@
|
|
202
202
|
},
|
203
203
|
|
204
204
|
hideModal: function () {
|
205
|
-
this.$element
|
206
|
-
.hide()
|
207
|
-
.triggerHandler('hidden');
|
208
|
-
|
209
205
|
var prop = this.options.height ? 'height' : 'max-height';
|
210
206
|
var value = this.options.height || this.options.maxHeight;
|
211
207
|
|
212
208
|
if (value){
|
213
209
|
this.$element.find('.modal-body')
|
214
|
-
|
215
|
-
|
210
|
+
.css('overflow', '')
|
211
|
+
.css(prop, '');
|
216
212
|
}
|
217
213
|
|
214
|
+
this.$element
|
215
|
+
.hide()
|
216
|
+
.trigger('hidden');
|
218
217
|
},
|
219
218
|
|
220
219
|
removeLoading: function () {
|
@@ -232,8 +231,8 @@
|
|
232
231
|
var doAnimate = $.support.transition && animate;
|
233
232
|
|
234
233
|
this.$loading = $('<div class="loading-mask ' + animate + '">')
|
235
|
-
|
236
|
-
|
234
|
+
.append(this.options.spinner)
|
235
|
+
.appendTo(this.$element);
|
237
236
|
|
238
237
|
if (doAnimate) this.$loading[0].offsetWidth; // force reflow
|
239
238
|
|
@@ -242,16 +241,16 @@
|
|
242
241
|
this.isLoading = true;
|
243
242
|
|
244
243
|
doAnimate ?
|
245
|
-
|
246
|
-
|
244
|
+
this.$loading.one($.support.transition.end, callback) :
|
245
|
+
callback();
|
247
246
|
|
248
247
|
} else if (this.isLoading && this.$loading) {
|
249
248
|
this.$loading.removeClass('in');
|
250
249
|
|
251
250
|
var that = this;
|
252
251
|
$.support.transition && this.$element.hasClass('fade')?
|
253
|
-
|
254
|
-
|
252
|
+
this.$loading.one($.support.transition.end, function () { that.removeLoading() }) :
|
253
|
+
that.removeLoading();
|
255
254
|
|
256
255
|
} else if (callback) {
|
257
256
|
callback(this.isLoading);
|
@@ -271,15 +270,15 @@
|
|
271
270
|
|
272
271
|
if (this.options.attentionAnimation){
|
273
272
|
this.$element
|
274
|
-
|
275
|
-
|
273
|
+
.removeClass('animated')
|
274
|
+
.removeClass(this.options.attentionAnimation);
|
276
275
|
|
277
276
|
var that = this;
|
278
277
|
|
279
278
|
setTimeout(function () {
|
280
279
|
that.$element
|
281
|
-
|
282
|
-
|
280
|
+
.addClass('animated')
|
281
|
+
.addClass(that.options.attentionAnimation);
|
283
282
|
}, 0);
|
284
283
|
}
|
285
284
|
|
@@ -290,7 +289,7 @@
|
|
290
289
|
|
291
290
|
destroy: function () {
|
292
291
|
var e = $.Event('destroy');
|
293
|
-
this.$element.
|
292
|
+
this.$element.trigger(e);
|
294
293
|
if (e.isDefaultPrevented()) return;
|
295
294
|
|
296
295
|
this.teardown();
|
@@ -310,8 +309,8 @@
|
|
310
309
|
this.$element.off('.modal');
|
311
310
|
this.$element.removeData('modal');
|
312
311
|
this.$element
|
313
|
-
|
314
|
-
|
312
|
+
.removeClass('in')
|
313
|
+
.attr('aria-hidden', true);
|
315
314
|
}
|
316
315
|
};
|
317
316
|
|
@@ -322,8 +321,8 @@
|
|
322
321
|
$.fn.modal = function (option, args) {
|
323
322
|
return this.each(function () {
|
324
323
|
var $this = $(this),
|
325
|
-
|
326
|
-
|
324
|
+
data = $this.data('modal'),
|
325
|
+
options = $.extend({}, $.fn.modal.defaults, $this.data(), typeof option == 'object' && option);
|
327
326
|
|
328
327
|
if (!data) $this.data('modal', (data = new Modal(this, options)));
|
329
328
|
if (typeof option == 'string') data[option].apply(data, [].concat(args));
|
@@ -356,18 +355,18 @@
|
|
356
355
|
* ============== */
|
357
356
|
|
358
357
|
$(function () {
|
359
|
-
$(document).off('.modal').on('click.modal.data-api', '[data-toggle="modal"]', function ( e ) {
|
358
|
+
$(document).off('click.modal').on('click.modal.data-api', '[data-toggle="modal"]', function ( e ) {
|
360
359
|
var $this = $(this),
|
361
|
-
|
362
|
-
|
363
|
-
|
360
|
+
href = $this.attr('href'),
|
361
|
+
$target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))), //strip for ie7
|
362
|
+
option = $target.data('modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data());
|
364
363
|
|
365
364
|
e.preventDefault();
|
366
365
|
$target
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
366
|
+
.modal(option)
|
367
|
+
.one('hide', function () {
|
368
|
+
$this.focus();
|
369
|
+
})
|
371
370
|
});
|
372
371
|
});
|
373
372
|
|
@@ -1,20 +1,20 @@
|
|
1
1
|
/* ===========================================================
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
2
|
+
* bootstrap-modalmanager.js v2.1
|
3
|
+
* ===========================================================
|
4
|
+
* Copyright 2012 Jordan Schroter.
|
5
|
+
*
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
* you may not use this file except in compliance with the License.
|
8
|
+
* You may obtain a copy of the License at
|
9
|
+
*
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
*
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
* See the License for the specific language governing permissions and
|
16
|
+
* limitations under the License.
|
17
|
+
* ========================================================== */
|
18
18
|
|
19
19
|
!function ($) {
|
20
20
|
|
@@ -39,7 +39,7 @@
|
|
39
39
|
|
40
40
|
if (this.options.resize) {
|
41
41
|
var resizeTimeout,
|
42
|
-
|
42
|
+
that = this;
|
43
43
|
|
44
44
|
$(window).on('resize.modal', function(){
|
45
45
|
resizeTimeout && clearTimeout(resizeTimeout);
|
@@ -69,8 +69,8 @@
|
|
69
69
|
var transition = $.support.transition && modal.$element.hasClass('fade');
|
70
70
|
|
71
71
|
that.$element
|
72
|
-
|
73
|
-
|
72
|
+
.toggleClass('modal-open', that.hasOpenModal())
|
73
|
+
.toggleClass('page-overflow', $(window).height() < that.$element.height());
|
74
74
|
|
75
75
|
modal.$parent = modal.$element.parent();
|
76
76
|
|
@@ -82,26 +82,32 @@
|
|
82
82
|
|
83
83
|
modal.$element.show();
|
84
84
|
|
85
|
+
if (transition) {
|
86
|
+
//modal.$element[0].style.display = 'run-in';
|
87
|
+
modal.$element[0].offsetWidth;
|
88
|
+
//modal.$element.one($.support.transition.end, function () { modal.$element[0].style.display = 'block' });
|
89
|
+
}
|
90
|
+
|
85
91
|
modal.layout();
|
86
92
|
|
87
93
|
modal.$element
|
88
|
-
|
89
|
-
|
94
|
+
.addClass('in')
|
95
|
+
.attr('aria-hidden', false);
|
90
96
|
|
91
97
|
var complete = function () {
|
92
98
|
that.setFocus();
|
93
|
-
modal.$element.
|
99
|
+
modal.$element.trigger('shown');
|
94
100
|
};
|
95
101
|
|
96
102
|
transition ?
|
97
|
-
|
98
|
-
|
103
|
+
modal.$element.one($.support.transition.end, complete) :
|
104
|
+
complete();
|
99
105
|
});
|
100
106
|
};
|
101
107
|
|
102
108
|
modal.options.replace ?
|
103
|
-
|
104
|
-
|
109
|
+
that.replace(showModal) :
|
110
|
+
showModal();
|
105
111
|
}));
|
106
112
|
|
107
113
|
modal.$element.on('hidden.modalmanager', targetIsSelf(function (e) {
|
@@ -110,8 +116,8 @@
|
|
110
116
|
|
111
117
|
if (modal.$backdrop){
|
112
118
|
$.support.transition && modal.$element.hasClass('fade') ?
|
113
|
-
|
114
|
-
|
119
|
+
modal.$backdrop.one($.support.transition.end, function () { that.destroyModal(modal) }) :
|
120
|
+
that.destroyModal(modal);
|
115
121
|
} else {
|
116
122
|
that.destroyModal(modal);
|
117
123
|
}
|
@@ -164,7 +170,7 @@
|
|
164
170
|
|
165
171
|
removeModal: function (modal) {
|
166
172
|
modal.$element.off('.modalmanager');
|
167
|
-
if (modal.$backdrop) this.removeBackdrop
|
173
|
+
if (modal.$backdrop) this.removeBackdrop(modal);
|
168
174
|
this.stack.splice(this.getIndexOfModal(modal), 1);
|
169
175
|
},
|
170
176
|
|
@@ -190,7 +196,7 @@
|
|
190
196
|
topModal.$backdrop = null;
|
191
197
|
|
192
198
|
callback && topModal.$element.one('hidden',
|
193
|
-
|
199
|
+
targetIsSelf( $.proxy(callback, this) ));
|
194
200
|
|
195
201
|
topModal.hide();
|
196
202
|
} else if (callback) {
|
@@ -208,7 +214,7 @@
|
|
208
214
|
|
209
215
|
if (!this.$backdropHandle) {
|
210
216
|
$backdrop = $('<div class="modal-backdrop ' + animate + '" />')
|
211
|
-
|
217
|
+
.appendTo(this.$element);
|
212
218
|
} else {
|
213
219
|
$backdrop = this.$backdropHandle;
|
214
220
|
$backdrop.off('.modalmanager');
|
@@ -216,7 +222,7 @@
|
|
216
222
|
this.isLoading && this.removeSpinner();
|
217
223
|
}
|
218
224
|
|
219
|
-
return $backdrop
|
225
|
+
return $backdrop;
|
220
226
|
},
|
221
227
|
|
222
228
|
removeContainer: function (modal) {
|
@@ -228,9 +234,9 @@
|
|
228
234
|
var $container;
|
229
235
|
|
230
236
|
$container = $('<div class="modal-scrollable">')
|
231
|
-
|
232
|
-
|
233
|
-
|
237
|
+
.css('z-index', getzIndex( 'modal',
|
238
|
+
modal ? this.getIndexOfModal(modal) : this.stack.length ))
|
239
|
+
.appendTo(this.$element);
|
234
240
|
|
235
241
|
if (modal && modal.options.backdrop != 'static') {
|
236
242
|
$container.on('click.modal', targetIsSelf(function (e) {
|
@@ -248,8 +254,8 @@
|
|
248
254
|
|
249
255
|
backdrop: function (modal, callback) {
|
250
256
|
var animate = modal.$element.hasClass('fade') ? 'fade' : '',
|
251
|
-
|
252
|
-
|
257
|
+
showBackdrop = modal.options.backdrop &&
|
258
|
+
this.backdropCount < this.options.backdropLimit;
|
253
259
|
|
254
260
|
if (modal.isShown && showBackdrop) {
|
255
261
|
var doAnimate = $.support.transition && animate && !this.$backdropHandle;
|
@@ -265,8 +271,8 @@
|
|
265
271
|
this.backdropCount += 1;
|
266
272
|
|
267
273
|
doAnimate ?
|
268
|
-
|
269
|
-
|
274
|
+
modal.$backdrop.one($.support.transition.end, callback) :
|
275
|
+
callback();
|
270
276
|
|
271
277
|
} else if (!modal.isShown && modal.$backdrop) {
|
272
278
|
modal.$backdrop.removeClass('in');
|
@@ -276,8 +282,8 @@
|
|
276
282
|
var that = this;
|
277
283
|
|
278
284
|
$.support.transition && modal.$element.hasClass('fade')?
|
279
|
-
|
280
|
-
|
285
|
+
modal.$backdrop.one($.support.transition.end, function () { that.removeBackdrop(modal) }) :
|
286
|
+
that.removeBackdrop(modal);
|
281
287
|
|
282
288
|
} else if (callback) {
|
283
289
|
callback();
|
@@ -300,8 +306,8 @@
|
|
300
306
|
callback = callback || function () { };
|
301
307
|
|
302
308
|
this.$element
|
303
|
-
|
304
|
-
|
309
|
+
.toggleClass('modal-open', !this.isLoading || this.hasOpenModal())
|
310
|
+
.toggleClass('page-overflow', $(window).height() < this.$element.height());
|
305
311
|
|
306
312
|
if (!this.isLoading) {
|
307
313
|
|
@@ -310,31 +316,31 @@
|
|
310
316
|
this.$backdropHandle[0].offsetWidth; // force reflow
|
311
317
|
|
312
318
|
this.$backdropHandle
|
313
|
-
|
314
|
-
|
319
|
+
.css('z-index', getzIndex('backdrop', this.stack.length))
|
320
|
+
.addClass('in');
|
315
321
|
|
316
322
|
var $spinner = $(this.options.spinner)
|
317
|
-
|
318
|
-
|
319
|
-
|
323
|
+
.css('z-index', getzIndex('modal', this.stack.length))
|
324
|
+
.appendTo(this.$element)
|
325
|
+
.addClass('in');
|
320
326
|
|
321
327
|
this.$spinner = $(this.createContainer())
|
322
|
-
|
323
|
-
|
328
|
+
.append($spinner)
|
329
|
+
.on('click.modalmanager', $.proxy(this.loading, this));
|
324
330
|
|
325
331
|
this.isLoading = true;
|
326
332
|
|
327
333
|
$.support.transition ?
|
328
|
-
|
329
|
-
|
334
|
+
this.$backdropHandle.one($.support.transition.end, callback) :
|
335
|
+
callback();
|
330
336
|
|
331
337
|
} else if (this.isLoading && this.$backdropHandle) {
|
332
338
|
this.$backdropHandle.removeClass('in');
|
333
339
|
|
334
340
|
var that = this;
|
335
341
|
$.support.transition ?
|
336
|
-
|
337
|
-
|
342
|
+
this.$backdropHandle.one($.support.transition.end, function () { that.removeLoading() }) :
|
343
|
+
that.removeLoading();
|
338
344
|
|
339
345
|
} else if (callback) {
|
340
346
|
callback(this.isLoading);
|
@@ -348,13 +354,13 @@
|
|
348
354
|
// computes and caches the zindexes
|
349
355
|
var getzIndex = (function () {
|
350
356
|
var zIndexFactor,
|
351
|
-
|
357
|
+
baseIndex = {};
|
352
358
|
|
353
359
|
return function (type, pos) {
|
354
360
|
|
355
361
|
if (typeof zIndexFactor === 'undefined'){
|
356
362
|
var $baseModal = $('<div class="modal hide" />').appendTo('body'),
|
357
|
-
|
363
|
+
$baseBackdrop = $('<div class="modal-backdrop hide" />').appendTo('body');
|
358
364
|
|
359
365
|
baseIndex['modal'] = +$baseModal.css('z-index');
|
360
366
|
baseIndex['backdrop'] = +$baseBackdrop.css('z-index');
|
@@ -388,9 +394,9 @@
|
|
388
394
|
$.fn.modalmanager = function (option, args) {
|
389
395
|
return this.each(function () {
|
390
396
|
var $this = $(this),
|
391
|
-
|
397
|
+
data = $this.data('modalmanager');
|
392
398
|
|
393
|
-
if (!data) $this.data('modalmanager', (data = new ModalManager(this, option)))
|
399
|
+
if (!data) $this.data('modalmanager', (data = new ModalManager(this, option)));
|
394
400
|
if (typeof option === 'string') data[option].apply(data, [].concat(args))
|
395
401
|
})
|
396
402
|
};
|
@@ -1,11 +1,11 @@
|
|
1
1
|
/*!
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
2
|
+
* Bootstrap Modal
|
3
|
+
*
|
4
|
+
* Copyright Jordan Schroter
|
5
|
+
* Licensed under the Apache License v2.0
|
6
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
*
|
8
|
+
*/
|
9
9
|
|
10
10
|
.modal-open {
|
11
11
|
overflow: hidden;
|
@@ -48,9 +48,9 @@
|
|
48
48
|
.modal.fade {
|
49
49
|
top: -100%;
|
50
50
|
-webkit-transition: opacity 0.3s linear, top 0.3s ease-out, bottom 0.3s ease-out, margin-top 0.3s ease-out;
|
51
|
-
|
52
|
-
|
53
|
-
|
51
|
+
-moz-transition: opacity 0.3s linear, top 0.3s ease-out, bottom 0.3s ease-out, margin-top 0.3s ease-out;
|
52
|
+
-o-transition: opacity 0.3s linear, top 0.3s ease-out, bottom 0.3s ease-out, margin-top 0.3s ease-out;
|
53
|
+
transition: opacity 0.3s linear, top 0.3s ease-out, bottom 0.3s ease-out, margin-top 0.3s ease-out;
|
54
54
|
}
|
55
55
|
|
56
56
|
.modal.fade.in {
|
@@ -82,7 +82,7 @@
|
|
82
82
|
z-index: 940;
|
83
83
|
}
|
84
84
|
|
85
|
-
.modal-backdrop,
|
85
|
+
.modal-backdrop,
|
86
86
|
.modal-backdrop.fade.in {
|
87
87
|
opacity: 0.7;
|
88
88
|
filter: alpha(opacity=70);
|
@@ -134,14 +134,14 @@
|
|
134
134
|
margin: 0 !important;
|
135
135
|
padding: 0 !important;
|
136
136
|
}
|
137
|
-
|
138
|
-
.modal.fade.in,
|
137
|
+
|
138
|
+
.modal.fade.in,
|
139
139
|
.modal.container.fade.in,
|
140
140
|
.modal.modal-overflow.fade.in {
|
141
141
|
top: 1%;
|
142
142
|
bottom: auto;
|
143
143
|
}
|
144
|
-
|
144
|
+
|
145
145
|
.modal-body,
|
146
146
|
.modal-overflow .modal-body {
|
147
147
|
position: static;
|
@@ -150,7 +150,7 @@
|
|
150
150
|
max-height: none !important;
|
151
151
|
overflow: visible !important;
|
152
152
|
}
|
153
|
-
|
153
|
+
|
154
154
|
.modal-footer,
|
155
155
|
.modal-overflow .modal-footer {
|
156
156
|
position: static;
|
@@ -172,13 +172,13 @@ Copyright (c) 2012 Dan Eden*/
|
|
172
172
|
|
173
173
|
.animated {
|
174
174
|
-webkit-animation-duration: 1s;
|
175
|
-
|
176
|
-
|
177
|
-
|
175
|
+
-moz-animation-duration: 1s;
|
176
|
+
-o-animation-duration: 1s;
|
177
|
+
animation-duration: 1s;
|
178
178
|
-webkit-animation-fill-mode: both;
|
179
|
-
|
180
|
-
|
181
|
-
|
179
|
+
-moz-animation-fill-mode: both;
|
180
|
+
-o-animation-fill-mode: both;
|
181
|
+
animation-fill-mode: both;
|
182
182
|
}
|
183
183
|
|
184
184
|
@-webkit-keyframes shake {
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootstrap_modal_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -94,7 +94,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
94
94
|
version: '0'
|
95
95
|
segments:
|
96
96
|
- 0
|
97
|
-
hash:
|
97
|
+
hash: 1172664824914757023
|
98
98
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
99
99
|
none: false
|
100
100
|
requirements:
|
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
103
|
version: '0'
|
104
104
|
segments:
|
105
105
|
- 0
|
106
|
-
hash:
|
106
|
+
hash: 1172664824914757023
|
107
107
|
requirements: []
|
108
108
|
rubyforge_project:
|
109
109
|
rubygems_version: 1.8.23
|