lazybox 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/lazybox/version.rb +1 -1
- data/vendor/assets/javascripts/lazybox.js +2 -2
- metadata +3 -3
data/lib/lazybox/version.rb
CHANGED
@@ -34,8 +34,8 @@
|
|
34
34
|
if (href.match(imagesRegexp)){
|
35
35
|
var img = new Image()
|
36
36
|
img.onload = function(element){
|
37
|
-
$.lazybox.show('<img class="lazy_img" src="' + img.src + '" />', options)
|
38
|
-
nextLink = a.siblings('a[rel*=lazybox]:first')
|
37
|
+
$.lazybox.show('<img class="lazy_img" src="' + img.src + '" />', options);
|
38
|
+
(a.is(':last-child')) ? nextLink = a.siblings('a[rel*=lazybox]:first') : nextLink = a.next('a[rel*=lazybox]:first')
|
39
39
|
if (!nextLink.length == 0) $('#lazybox img').bind('click', function(){ $('#lazybox').fadeOut(function(){ nextLink.click() }) })
|
40
40
|
}
|
41
41
|
img.src = href
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lazybox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 6
|
10
|
+
version: 0.1.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Alex Galushka
|