jquery-colorbox-rails 0.1.9 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/Rakefile +3 -3
- data/lib/jquery-colorbox-rails/version.rb +1 -1
- data/vendor/assets/javascripts/jquery.colorbox-bn.js +16 -0
- data/vendor/assets/javascripts/jquery.colorbox.js +6 -6
- 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: 484cb0ef7f429370f04bcd20561c012388808bb1
|
4
|
+
data.tar.gz: f6b5f11f58b5cafa5383cc0870be76f348bb1947
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30e3638df1a26d0afc555eed81559cd35a31b3be68b4d939365b7aac4968e7a6d391b06d6f371b2e1d50f462baf7a1a9db32cee25700f4b7b2b9c2f829eaf5ba
|
7
|
+
data.tar.gz: e2402ac13b7dd8e2b912f6cf7169c0a1cb3e740699dc17f96f4000f04327949b7bd948744f8d59e901dadf1fec6eec1c55ca877a0b171ce01ffa5bdf26e9e686
|
data/README.md
CHANGED
data/Rakefile
CHANGED
@@ -37,7 +37,7 @@ task :update do
|
|
37
37
|
|
38
38
|
css_content = File.read File.join(example, 'colorbox.css')
|
39
39
|
css_content.gsub!(/url\(\s?images\/([^\)]+)\)/) do |_|
|
40
|
-
"image-url('#{File.join('colorbox', example_name, $1)}')"
|
40
|
+
"image-url('#{File.join('colorbox', example_name, $1)}')"
|
41
41
|
end
|
42
42
|
File.open(File.join(css_dir, "jquery.colorbox-#{example_name}.css.scss"), 'w') do |f|
|
43
43
|
f.write(css_content)
|
@@ -46,7 +46,7 @@ task :update do
|
|
46
46
|
end
|
47
47
|
|
48
48
|
puts 'Updating version...'
|
49
|
-
version = File.read('colorbox/jquery.colorbox.js').match(/Colorbox
|
49
|
+
version = File.read('colorbox/jquery.colorbox.js').match(/Colorbox (\d{1,2}\.\d{1,2}\.\d{1,2})/)[1]
|
50
50
|
readme = File.read('README.md')
|
51
51
|
puts "Current version is: #{version}"
|
52
52
|
new_content = readme.gsub(/(?<=<b id="colorbox-version">)[\d\.]+(?=<\/b>)/, version)
|
@@ -62,4 +62,4 @@ task :build do
|
|
62
62
|
else
|
63
63
|
raise "Gem was not built!"
|
64
64
|
end
|
65
|
-
end
|
65
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
/*
|
2
|
+
jQuery Colorbox language configuration
|
3
|
+
language: Bengali (bn)
|
4
|
+
translated by: Arkaprava Majumder
|
5
|
+
http://github.com/arkaindas
|
6
|
+
*/
|
7
|
+
jQuery.extend(jQuery.colorbox.settings, {
|
8
|
+
current: "ছবি {current} এর {total}",
|
9
|
+
previous: "আগে",
|
10
|
+
next: "পরে",
|
11
|
+
close: "বন্ধ",
|
12
|
+
xhrError: "এই কন্টেন্ট লোড করা যায়নি.",
|
13
|
+
imgError: "এই ছবিটি লোড করা যায়নি.",
|
14
|
+
slideshowStart: "স্লাইডশো শুরু",
|
15
|
+
slideshowStop: "স্লাইডশো বন্ধ"
|
16
|
+
});
|
@@ -1,8 +1,7 @@
|
|
1
1
|
/*!
|
2
|
-
Colorbox
|
3
|
-
|
4
|
-
|
5
|
-
license: http://www.opensource.org/licenses/mit-license.php
|
2
|
+
Colorbox 1.5.14
|
3
|
+
license: MIT
|
4
|
+
http://www.jacklmoore.com/colorbox
|
6
5
|
*/
|
7
6
|
(function ($, document, window) {
|
8
7
|
var
|
@@ -435,7 +434,7 @@
|
|
435
434
|
// Colorbox's markup needs to be added to the DOM prior to being called
|
436
435
|
// so that the browser will go ahead and load the CSS background images.
|
437
436
|
function appendHTML() {
|
438
|
-
if (!$box
|
437
|
+
if (!$box) {
|
439
438
|
init = false;
|
440
439
|
$window = $(window);
|
441
440
|
$box = $tag(div).attr({
|
@@ -479,7 +478,8 @@
|
|
479
478
|
$loadingBay = $tag(div, false, 'position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;');
|
480
479
|
|
481
480
|
$groupControls = $next.add($prev).add($current).add($slideshow);
|
482
|
-
|
481
|
+
}
|
482
|
+
if (document.body && !$box.parent().length) {
|
483
483
|
$(document.body).append($overlay, $box.append($wrap, $loadingBay));
|
484
484
|
}
|
485
485
|
}
|
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.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Krzysztof Knapik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -63,6 +63,7 @@ files:
|
|
63
63
|
- vendor/assets/images/colorbox/example5/loading_background.png
|
64
64
|
- vendor/assets/javascripts/jquery.colorbox-ar.js
|
65
65
|
- vendor/assets/javascripts/jquery.colorbox-bg.js
|
66
|
+
- vendor/assets/javascripts/jquery.colorbox-bn.js
|
66
67
|
- vendor/assets/javascripts/jquery.colorbox-ca.js
|
67
68
|
- vendor/assets/javascripts/jquery.colorbox-cs.js
|
68
69
|
- vendor/assets/javascripts/jquery.colorbox-da.js
|