jquery-colorbox-rails 0.0.7 → 0.0.8
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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/Rakefile +1 -0
- data/lib/jquery-colorbox-rails/version.rb +2 -2
- data/vendor/assets/javascripts/jquery.colorbox-et.js +15 -0
- data/vendor/assets/javascripts/jquery.colorbox.js +24 -13
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b1cbb113169ded1c863bd449b1a257e4c2c43c9
|
4
|
+
data.tar.gz: a88d24971a9dc0a5c90ac402ef318e55958bd252
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ecd0516eef25ae9101e3ef1d35f0740bbc5ed8ce154497c218eb921f85b92a84f6b46c29be037230dd784c00061a89defe47b07e374a59794c6bd0033e569f8
|
7
|
+
data.tar.gz: 0f16084911f78e4992fbd2e4b3cb5e13878e8aa0b76100027db22e267dd11e39dbeb7ba9a45cddcf62bda0bdfbef69d7a8f8e90bffc0d5e5c98cd4fc499e3000
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
jquery-colorbox-rails integrates [jquery.colorbox](https://github.com/jackmoore/colorbox) with rails 3.1+ asset pipeline.
|
4
4
|
|
5
|
-
Integrated colorbox version: <b id="colorbox-version">1.4.
|
5
|
+
Integrated colorbox version: <b id="colorbox-version">1.4.26</b>
|
6
6
|
|
7
7
|
### Installation
|
8
8
|
|
data/Rakefile
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
module JqueryColorboxRails
|
2
|
-
VERSION = "0.0.
|
3
|
-
end
|
2
|
+
VERSION = "0.0.8"
|
3
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/*
|
2
|
+
jQuery Colorbox language configuration
|
3
|
+
language: Estonian (et)
|
4
|
+
translated by: keevitaja
|
5
|
+
*/
|
6
|
+
jQuery.extend(jQuery.colorbox.settings, {
|
7
|
+
current: "{current}/{total}",
|
8
|
+
previous: "eelmine",
|
9
|
+
next: "järgmine",
|
10
|
+
close: "sulge",
|
11
|
+
xhrError: "Sisu ei õnnestunud laadida.",
|
12
|
+
imgError: "Pilti ei õnnestunud laadida.",
|
13
|
+
slideshowStart: "Käivita slaidid",
|
14
|
+
slideshowStop: "Peata slaidid"
|
15
|
+
});
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
Colorbox v1.4.
|
2
|
+
Colorbox v1.4.26 - 2013-06-30
|
3
3
|
jQuery lightbox and modal window plugin
|
4
4
|
(c) 2013 Jack Moore - http://www.jacklmoore.com/colorbox
|
5
5
|
license: http://www.opensource.org/licenses/mit-license.php
|
@@ -130,6 +130,7 @@
|
|
130
130
|
div = "div",
|
131
131
|
className,
|
132
132
|
requests = 0,
|
133
|
+
previousCSS = {},
|
133
134
|
init;
|
134
135
|
|
135
136
|
// ****************
|
@@ -607,29 +608,41 @@
|
|
607
608
|
}
|
608
609
|
|
609
610
|
$box.css({top: offset.top, left: offset.left, visibility:'visible'});
|
610
|
-
|
611
|
-
// setting the speed to 0 to reduce the delay between same-sized content.
|
612
|
-
speed = ($box.width() === settings.w + loadedWidth && $box.height() === settings.h + loadedHeight) ? 0 : speed || 0;
|
613
611
|
|
614
612
|
// this gives the wrapper plenty of breathing room so it's floated contents can move around smoothly,
|
615
613
|
// but it has to be shrank down around the size of div#colorbox when it's done. If not,
|
616
614
|
// it can invoke an obscure IE bug when using iframes.
|
617
615
|
$wrap[0].style.width = $wrap[0].style.height = "9999px";
|
618
616
|
|
619
|
-
function modalDimensions(
|
620
|
-
$topBorder[0].style.width = $bottomBorder[0].style.width = $content[0].style.width = (parseInt(
|
621
|
-
$content[0].style.height = $leftBorder[0].style.height = $rightBorder[0].style.height = (parseInt(
|
617
|
+
function modalDimensions() {
|
618
|
+
$topBorder[0].style.width = $bottomBorder[0].style.width = $content[0].style.width = (parseInt($box[0].style.width,10) - interfaceWidth)+'px';
|
619
|
+
$content[0].style.height = $leftBorder[0].style.height = $rightBorder[0].style.height = (parseInt($box[0].style.height,10) - interfaceHeight)+'px';
|
622
620
|
}
|
623
621
|
|
624
622
|
css = {width: settings.w + loadedWidth + interfaceWidth, height: settings.h + loadedHeight + interfaceHeight, top: top, left: left};
|
625
623
|
|
626
|
-
|
624
|
+
// setting the speed to 0 if the content hasn't changed size or position
|
625
|
+
if (speed) {
|
626
|
+
var tempSpeed = 0;
|
627
|
+
$.each(css, function(i){
|
628
|
+
if (css[i] !== previousCSS[i]) {
|
629
|
+
tempSpeed = speed;
|
630
|
+
return;
|
631
|
+
}
|
632
|
+
});
|
633
|
+
speed = tempSpeed;
|
634
|
+
}
|
635
|
+
|
636
|
+
previousCSS = css;
|
637
|
+
|
638
|
+
if (!speed) {
|
627
639
|
$box.css(css);
|
628
640
|
}
|
641
|
+
|
629
642
|
$box.dequeue().animate(css, {
|
630
|
-
duration: speed,
|
643
|
+
duration: speed || 0,
|
631
644
|
complete: function () {
|
632
|
-
modalDimensions(
|
645
|
+
modalDimensions();
|
633
646
|
|
634
647
|
active = false;
|
635
648
|
|
@@ -647,9 +660,7 @@
|
|
647
660
|
loadedCallback();
|
648
661
|
}
|
649
662
|
},
|
650
|
-
step:
|
651
|
-
modalDimensions(this);
|
652
|
-
}
|
663
|
+
step: modalDimensions
|
653
664
|
});
|
654
665
|
};
|
655
666
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jquery-colorbox-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Krzysztof Knapik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -54,6 +54,7 @@ files:
|
|
54
54
|
- vendor/assets/javascripts/jquery.colorbox-da.js
|
55
55
|
- vendor/assets/javascripts/jquery.colorbox-de.js
|
56
56
|
- vendor/assets/javascripts/jquery.colorbox-es.js
|
57
|
+
- vendor/assets/javascripts/jquery.colorbox-et.js
|
57
58
|
- vendor/assets/javascripts/jquery.colorbox-fa.js
|
58
59
|
- vendor/assets/javascripts/jquery.colorbox-fi.js
|
59
60
|
- vendor/assets/javascripts/jquery.colorbox-fr.js
|