magnific-popup-rails 0.0.1 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbbad4e8f9e51d536d3821cafcf978ebf3417a60
|
4
|
+
data.tar.gz: 54c4d1b21b1f17c0a27cd2aa9ecd6f786412fbda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25b37b9f77023e714ee9b34ead27421c46bd9dae26014138014c71a52ecacc75342598bbcf115d210109905b26872c25f9a4eed8b73a154be8940c33ef2cb277
|
7
|
+
data.tar.gz: 4a76ac27f904c0bcd08b59e0834dda8cff80ff35568fe38071d986038ffa0d8af34e13bf56d1a22bed5448151489ea5f64175f9467c94f00e3154ec3676e2b65
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! Magnific Popup - v0.8.
|
1
|
+
/*! Magnific Popup - v0.8.2 - 2013-05-05
|
2
2
|
* http://dimsemenov.com/plugins/magnific-popup/
|
3
3
|
* Copyright (c) 2013 Dmitry Semenov; */
|
4
4
|
;(function($) {
|
@@ -193,11 +193,11 @@ MagnificPopup.prototype = {
|
|
193
193
|
|
194
194
|
mfp.container = _getEl('container', mfp.wrap);
|
195
195
|
}
|
196
|
+
|
197
|
+
mfp.contentContainer = _getEl('content');
|
196
198
|
if(mfp.st.preloader) {
|
197
199
|
mfp.preloader = _getEl('preloader', mfp.container, mfp.st.tLoading);
|
198
200
|
}
|
199
|
-
mfp.contentContainer = _getEl('content', mfp.container);
|
200
|
-
|
201
201
|
|
202
202
|
|
203
203
|
// Initializing modules
|
@@ -273,7 +273,7 @@ MagnificPopup.prototype = {
|
|
273
273
|
|
274
274
|
var bodyStyles = {};
|
275
275
|
|
276
|
-
if( mfp.fixedContentPos ) {
|
276
|
+
if( mfp.fixedContentPos && mfp.st.overflowY !== 'scroll' ) {
|
277
277
|
var s = mfp._getScrollbarSize();
|
278
278
|
if(s) {
|
279
279
|
bodyStyles.paddingRight = s;
|
@@ -433,6 +433,9 @@ MagnificPopup.prototype = {
|
|
433
433
|
updateItemHTML: function() {
|
434
434
|
var item = mfp.items[mfp.index];
|
435
435
|
|
436
|
+
// Detach and perform modifications
|
437
|
+
mfp.contentContainer.detach();
|
438
|
+
|
436
439
|
if(!item.parsed) {
|
437
440
|
item = mfp.parseEl( mfp.index );
|
438
441
|
}
|
@@ -454,7 +457,7 @@ MagnificPopup.prototype = {
|
|
454
457
|
if(_prevContentType && _prevContentType !== item.type) {
|
455
458
|
mfp.container.removeClass('mfp-'+_prevContentType+'-holder');
|
456
459
|
}
|
457
|
-
|
460
|
+
|
458
461
|
var newContent = mfp['get' + type.charAt(0).toUpperCase() + type.slice(1)](item, mfp.currTemplate[type]);
|
459
462
|
mfp.appendContent(newContent, type);
|
460
463
|
|
@@ -462,6 +465,9 @@ MagnificPopup.prototype = {
|
|
462
465
|
|
463
466
|
_mfpTrigger(CHANGE_EVENT, item);
|
464
467
|
_prevContentType = item.type;
|
468
|
+
|
469
|
+
// Append container back after its content changed
|
470
|
+
mfp.container.prepend(mfp.contentContainer);
|
465
471
|
},
|
466
472
|
|
467
473
|
|
@@ -556,9 +562,12 @@ MagnificPopup.prototype = {
|
|
556
562
|
}
|
557
563
|
}
|
558
564
|
}
|
559
|
-
|
565
|
+
|
560
566
|
e.preventDefault();
|
561
567
|
options.el = $(this);
|
568
|
+
if(options.delegate) {
|
569
|
+
options.items = el.find(options.delegate);
|
570
|
+
}
|
562
571
|
mfp.open(options);
|
563
572
|
}
|
564
573
|
|
@@ -575,7 +584,6 @@ MagnificPopup.prototype = {
|
|
575
584
|
} else {
|
576
585
|
options.isObj = false;
|
577
586
|
if(options.delegate) {
|
578
|
-
options.items = el.find(options.delegate);
|
579
587
|
el.off(eName).on(eName, options.delegate , eHandler);
|
580
588
|
} else {
|
581
589
|
options.items = el;
|
@@ -48,7 +48,8 @@
|
|
48
48
|
display: inline-block;
|
49
49
|
vertical-align: middle;
|
50
50
|
margin: 0 auto;
|
51
|
-
text-align: left;
|
51
|
+
text-align: left;
|
52
|
+
z-index: 505; }
|
52
53
|
|
53
54
|
.mfp-inline-holder .mfp-content,
|
54
55
|
.mfp-ajax-holder .mfp-content {
|
@@ -85,7 +86,7 @@
|
|
85
86
|
display: none; }
|
86
87
|
|
87
88
|
.mfp-hide {
|
88
|
-
display: none; }
|
89
|
+
display: none !important; }
|
89
90
|
|
90
91
|
.mfp-preloader {
|
91
92
|
color: #cccccc;
|
@@ -95,7 +96,8 @@
|
|
95
96
|
text-align: center;
|
96
97
|
margin-top: -0.8em;
|
97
98
|
left: 8px;
|
98
|
-
right: 8px;
|
99
|
+
right: 8px;
|
100
|
+
z-index: 504; }
|
99
101
|
|
100
102
|
.mfp-preloader a {
|
101
103
|
color: #cccccc; }
|
@@ -117,7 +119,8 @@ button.mfp-arrow {
|
|
117
119
|
border: 0;
|
118
120
|
-webkit-appearance: none;
|
119
121
|
display: block;
|
120
|
-
padding: 0;
|
122
|
+
padding: 0;
|
123
|
+
z-index: 506; }
|
121
124
|
|
122
125
|
button::-moz-focus-inner {
|
123
126
|
padding: 0;
|
@@ -386,4 +389,4 @@ img.mfp-img {
|
|
386
389
|
.mfp-ie7 .mfp-close {
|
387
390
|
top: 0;
|
388
391
|
right: 0;
|
389
|
-
padding-top: 0; }
|
392
|
+
padding-top: 0; }
|