jquery-colorbox-rails 0.0.6 → 0.0.7

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: cf389bcc84c1493f4d4611f136afd4c768431141
4
- data.tar.gz: 35e03f39d57c1f17785e95937e2a12815f81d839
3
+ metadata.gz: 79930c768e466651d77e00307e60609c41fddd75
4
+ data.tar.gz: aaf3cfe530c55ed42500a114b911ac98f40496d9
5
5
  SHA512:
6
- metadata.gz: 33e1ffcff5b8ed7972c751d3e082f6eb8793ee11b34e457ea72e4cab92858bf4239d8458b2f6f117b7e91418098d94b6d25655a27dba1a8dec5231654a88cb29
7
- data.tar.gz: 12de950b030055409804c09a5d16f84c52737868d4fb6f22d1720d76cee4323bb3a72b4b0ec43ba1353ff6bf3551e0d5c7b1e7cebd350015aa9a1bcea3295d3a
6
+ metadata.gz: 02cf81354ce9f02d19416bf258ed0ed6372acd3cb0bdcd6b0fed85f289a4844e65d978a704292011e2da8f2f54b71447e2b63f675230c072de7b95f0714d634d
7
+ data.tar.gz: 7cb7f7d4e676cf3dd491081efaa09cc33f36467ce6da7d7bf9f4ccf9f433b38f56a75656ab0eaf0f976e3da24749de6e07f5d471757b8041ec4b66d21fb34daf
data/README.md CHANGED
@@ -2,6 +2,8 @@
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.24</b>
6
+
5
7
  ### Installation
6
8
 
7
9
  Add
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ task :update do
12
12
  end
13
13
 
14
14
  puts 'Updating source files...'
15
- `git submodule update`
15
+ `git submodule foreach git pull`
16
16
 
17
17
  puts 'Copying source js files...'
18
18
 
@@ -43,6 +43,13 @@ task :update do
43
43
  end
44
44
  puts "...ok"
45
45
  end
46
+
47
+ puts 'Updating version...'
48
+ version = File.read('colorbox/jquery.colorbox.js').match(/Colorbox v(\d{1,2}\.\d{1,2}\.\d{1,2})/)[1]
49
+ readme = File.read('README.md')
50
+ puts "Current version is: #{version}"
51
+ new_content = readme.gsub(/(?<=<b id="colorbox-version">)[\d\.]+(?=<\/b>)/, version)
52
+ File.open('README.md','w') { |f| f.write(new_content) }
46
53
  end
47
54
 
48
55
  task :build do
@@ -1,3 +1,3 @@
1
1
  module JqueryColorboxRails
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -0,0 +1,16 @@
1
+ /*
2
+ jQuery Colorbox language configuration
3
+ language: Bulgarian (bg)
4
+ translated by: Marian M.Bida
5
+ site: webmax.bg
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,5 +1,5 @@
1
1
  /*!
2
- Colorbox v1.4.22 - 2013-06-19
2
+ Colorbox v1.4.24 - 2013-06-24
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
@@ -64,6 +64,7 @@
64
64
  onComplete: false,
65
65
  onCleanup: false,
66
66
  onClosed: false,
67
+
67
68
  overlayClose: true,
68
69
  escKey: true,
69
70
  arrowKey: true,
@@ -72,7 +73,8 @@
72
73
  left: false,
73
74
  right: false,
74
75
  fixed: false,
75
- data: undefined
76
+ data: undefined,
77
+ closeButton: true
76
78
  },
77
79
 
78
80
  // Abstracting the HTML and event identifiers for easy rebranding
@@ -338,7 +340,11 @@
338
340
  }
339
341
  className = settings.className;
340
342
 
341
- $close.html(settings.close).show();
343
+ if (settings.closeButton) {
344
+ $close.html(settings.close).appendTo($content);
345
+ } else {
346
+ $close.appendTo('<div/>');
347
+ }
342
348
 
343
349
  if (!open) {
344
350
  open = active = true; // Prevents the page-change action from queuing up if the visitor holds down the left or right keys.
@@ -407,7 +413,7 @@
407
413
  tabindex: '-1'
408
414
  }).hide();
409
415
  $overlay = $tag(div, "Overlay").hide();
410
- $loadingOverlay = $tag(div, "LoadingOverlay").add($tag(div, "LoadingGraphic"));
416
+ $loadingOverlay = $([$tag(div, "LoadingOverlay")[0],$tag(div, "LoadingGraphic")[0]]);
411
417
  $wrap = $tag(div, "Wrapper");
412
418
  $content = $tag(div, "Content").append(
413
419
  $title = $tag(div, "Title"),
@@ -415,9 +421,10 @@
415
421
  $prev = $('<button type="button"/>').attr({id:prefix+'Previous'}),
416
422
  $next = $('<button type="button"/>').attr({id:prefix+'Next'}),
417
423
  $slideshow = $tag('button', "Slideshow"),
418
- $loadingOverlay,
419
- $close = $('<button type="button"/>').attr({id:prefix+'Close'})
424
+ $loadingOverlay
420
425
  );
426
+
427
+ $close = $('<button type="button"/>').attr({id:prefix+'Close'});
421
428
 
422
429
  $wrap.append( // The 3x3 Grid that makes up Colorbox
423
430
  $tag(div).append(
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.6
4
+ version: 0.0.7
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-06-21 00:00:00.000000000 Z
11
+ date: 2013-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -49,6 +49,7 @@ files:
49
49
  - vendor/assets/images/colorbox/example5/loading.gif
50
50
  - vendor/assets/images/colorbox/example5/loading_background.png
51
51
  - vendor/assets/javascripts/jquery.colorbox-ar.js
52
+ - vendor/assets/javascripts/jquery.colorbox-bg.js
52
53
  - vendor/assets/javascripts/jquery.colorbox-cs.js
53
54
  - vendor/assets/javascripts/jquery.colorbox-da.js
54
55
  - vendor/assets/javascripts/jquery.colorbox-de.js