jquery-colorbox-rails 0.1.1 → 0.1.2
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: ec0a42c006abb04a3f7746052c851614ddadeb22
|
4
|
+
data.tar.gz: 2b932859a704ec52984fe126c851673afb2bae0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d42d8cff5d8409d13ee9919c76e0f6686f5dbc0f632a075544c120462cb5c5fc7f834e66805ed8dca50924b754d48f9a8c7b43d8582b2704336efe2ac23391cb
|
7
|
+
data.tar.gz: a47e320e59ae40eb765fc07f5e56561b64946668b087ea200f02099232d8bb4f0dcaf1d5303514c78361b3889facff05883baa2a798969352ad23996b1d4d92c
|
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.28</b>
|
6
6
|
|
7
7
|
### Installation
|
8
8
|
|
@@ -0,0 +1,16 @@
|
|
1
|
+
/*
|
2
|
+
jQuery Colorbox language configuration
|
3
|
+
language: Hebrew (he)
|
4
|
+
translated by: DavidCo
|
5
|
+
site: DavidCo.me
|
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
|
+
});
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/*
|
2
|
+
jQuery Colorbox language configuration
|
3
|
+
language: Slovenian (si)
|
4
|
+
translated by: Boštjan Pišler (pisler.si)
|
5
|
+
*/
|
6
|
+
jQuery.extend(jQuery.colorbox.settings, {
|
7
|
+
current: "Slika {current} od {total}",
|
8
|
+
previous: "Prejšnja",
|
9
|
+
next: "Naslednja",
|
10
|
+
close: "Zapri",
|
11
|
+
xhrError: "Vsebine ni bilo mogoče naložiti.",
|
12
|
+
imgError: "Slike ni bilo mogoče naložiti.",
|
13
|
+
slideshowStart: "Zaženi prezentacijo",
|
14
|
+
slideshowStop: "Zaustavi prezentacijo"
|
15
|
+
});
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
Colorbox v1.4.
|
2
|
+
Colorbox v1.4.28 - 2013-09-04
|
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
|
@@ -231,69 +231,85 @@
|
|
231
231
|
}
|
232
232
|
|
233
233
|
// Slideshow functionality
|
234
|
-
|
234
|
+
var slideshow = (function(){
|
235
235
|
var
|
236
|
-
timeOut,
|
237
236
|
className = prefix + "Slideshow_",
|
238
237
|
click = "click." + prefix,
|
239
|
-
|
240
|
-
|
241
|
-
start,
|
242
|
-
stop;
|
243
|
-
|
244
|
-
if (settings.slideshow && $related[1]) {
|
245
|
-
clear = function () {
|
246
|
-
clearTimeout(timeOut);
|
247
|
-
};
|
238
|
+
ssActive = false,
|
239
|
+
timeOut;
|
248
240
|
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
}
|
253
|
-
};
|
241
|
+
function clear () {
|
242
|
+
clearTimeout(timeOut);
|
243
|
+
}
|
254
244
|
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
245
|
+
function set() {
|
246
|
+
if (settings.loop || $related[index + 1]) {
|
247
|
+
clear();
|
248
|
+
timeOut = setTimeout(publicMethod.next, settings.slideshowSpeed);
|
249
|
+
}
|
250
|
+
}
|
260
251
|
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
252
|
+
function start() {
|
253
|
+
$slideshow
|
254
|
+
.html(settings.slideshowStop)
|
255
|
+
.unbind(click)
|
256
|
+
.one(click, stop);
|
265
257
|
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
clear();
|
271
|
-
|
272
|
-
$events
|
273
|
-
.unbind(event_complete, set)
|
274
|
-
.unbind(event_load, clear)
|
275
|
-
.unbind(event_cleanup, stop);
|
276
|
-
|
277
|
-
$slideshow
|
278
|
-
.html(settings.slideshowStart)
|
279
|
-
.unbind(click)
|
280
|
-
.one(click, function () {
|
281
|
-
publicMethod.next();
|
282
|
-
start();
|
283
|
-
});
|
258
|
+
$events
|
259
|
+
.bind(event_complete, set)
|
260
|
+
.bind(event_load, clear)
|
261
|
+
.bind(event_cleanup, stop);
|
284
262
|
|
285
|
-
|
286
|
-
|
263
|
+
$box.removeClass(className + "off").addClass(className + "on");
|
264
|
+
}
|
265
|
+
|
266
|
+
function stop() {
|
267
|
+
clear();
|
287
268
|
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
stop
|
292
|
-
|
293
|
-
|
294
|
-
|
269
|
+
$events
|
270
|
+
.unbind(event_complete, set)
|
271
|
+
.unbind(event_load, clear)
|
272
|
+
.unbind(event_cleanup, stop);
|
273
|
+
|
274
|
+
$slideshow
|
275
|
+
.html(settings.slideshowStart)
|
276
|
+
.unbind(click)
|
277
|
+
.one(click, function () {
|
278
|
+
publicMethod.next();
|
279
|
+
start();
|
280
|
+
});
|
281
|
+
|
282
|
+
$box.removeClass(className + "on").addClass(className + "off");
|
295
283
|
}
|
296
|
-
|
284
|
+
|
285
|
+
return function() {
|
286
|
+
if (ssActive) {
|
287
|
+
if (settings.slideshow) {
|
288
|
+
return;
|
289
|
+
} else {
|
290
|
+
ssActive = false;
|
291
|
+
$slideshow.hide();
|
292
|
+
clear();
|
293
|
+
$events
|
294
|
+
.unbind(event_complete, set)
|
295
|
+
.unbind(event_load, clear)
|
296
|
+
.unbind(event_cleanup, stop);
|
297
|
+
$box.removeClass(className + "off " + className + "on");
|
298
|
+
}
|
299
|
+
} else if (settings.slideshow && $related[1]) {
|
300
|
+
ssActive = true;
|
301
|
+
|
302
|
+
if (settings.slideshowAuto) {
|
303
|
+
start();
|
304
|
+
} else {
|
305
|
+
stop();
|
306
|
+
}
|
307
|
+
|
308
|
+
$slideshow.show();
|
309
|
+
}
|
310
|
+
};
|
311
|
+
}());
|
312
|
+
|
297
313
|
|
298
314
|
function launch(target) {
|
299
315
|
if (!closing) {
|
@@ -367,15 +383,12 @@
|
|
367
383
|
settings.h = setSize(settings.initialHeight, 'y');
|
368
384
|
publicMethod.position();
|
369
385
|
|
370
|
-
slideshow();
|
371
|
-
|
372
386
|
trigger(event_open, settings.onOpen);
|
373
387
|
|
374
388
|
$groupControls.add($title).hide();
|
375
389
|
|
376
390
|
$box.focus();
|
377
391
|
|
378
|
-
|
379
392
|
if (settings.trapFocus) {
|
380
393
|
// Confine focus to the modal
|
381
394
|
// Uses event capturing that is not supported in IE8-
|
@@ -772,9 +785,7 @@
|
|
772
785
|
$next[(settings.loop || index < total - 1) ? "show" : "hide"]().html(settings.next);
|
773
786
|
$prev[(settings.loop || index) ? "show" : "hide"]().html(settings.previous);
|
774
787
|
|
775
|
-
|
776
|
-
$slideshow.show();
|
777
|
-
}
|
788
|
+
slideshow();
|
778
789
|
|
779
790
|
// Preloads images within a rel group
|
780
791
|
if (settings.preloading) {
|
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.1.
|
4
|
+
version: 0.1.2
|
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-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -58,6 +58,7 @@ files:
|
|
58
58
|
- vendor/assets/javascripts/jquery.colorbox-fa.js
|
59
59
|
- vendor/assets/javascripts/jquery.colorbox-fi.js
|
60
60
|
- vendor/assets/javascripts/jquery.colorbox-fr.js
|
61
|
+
- vendor/assets/javascripts/jquery.colorbox-he.js
|
61
62
|
- vendor/assets/javascripts/jquery.colorbox-hr.js
|
62
63
|
- vendor/assets/javascripts/jquery.colorbox-hu.js
|
63
64
|
- vendor/assets/javascripts/jquery.colorbox-id.js
|
@@ -71,6 +72,7 @@ files:
|
|
71
72
|
- vendor/assets/javascripts/jquery.colorbox-pt-br.js
|
72
73
|
- vendor/assets/javascripts/jquery.colorbox-ro.js
|
73
74
|
- vendor/assets/javascripts/jquery.colorbox-ru.js
|
75
|
+
- vendor/assets/javascripts/jquery.colorbox-si.js
|
74
76
|
- vendor/assets/javascripts/jquery.colorbox-sk.js
|
75
77
|
- vendor/assets/javascripts/jquery.colorbox-sv.js
|
76
78
|
- vendor/assets/javascripts/jquery.colorbox-tr.js
|