Fix Gallery GIF animation
This commit is contained in:
parent
2f9e7a06d7
commit
19631dee68
@ -8910,12 +8910,18 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
open: function(e) {
|
open: function(e) {
|
||||||
|
var img;
|
||||||
|
|
||||||
if (e) {
|
if (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
Gallery.current.dataset.id = this.dataset.id;
|
img = $.el('img', {
|
||||||
Gallery.url.href = Gallery.current.src = this.href;
|
src: Gallery.url.href = this.href,
|
||||||
Gallery.url.download = Gallery.current.title = this.title;
|
title: Gallery.url.download = this.title
|
||||||
|
});
|
||||||
|
img.dataset.id = this.dataset.id;
|
||||||
|
$.replace(Gallery.current, img);
|
||||||
|
Gallery.current = img;
|
||||||
return Gallery.url.parentElement.scrollTop = 0;
|
return Gallery.url.parentElement.scrollTop = 0;
|
||||||
},
|
},
|
||||||
prev: function() {
|
prev: function() {
|
||||||
|
|||||||
@ -8898,12 +8898,18 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
open: function(e) {
|
open: function(e) {
|
||||||
|
var img;
|
||||||
|
|
||||||
if (e) {
|
if (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
Gallery.current.dataset.id = this.dataset.id;
|
img = $.el('img', {
|
||||||
Gallery.url.href = Gallery.current.src = this.href;
|
src: Gallery.url.href = this.href,
|
||||||
Gallery.url.download = Gallery.current.title = this.title;
|
title: Gallery.url.download = this.title
|
||||||
|
});
|
||||||
|
img.dataset.id = this.dataset.id;
|
||||||
|
$.replace(Gallery.current, img);
|
||||||
|
Gallery.current = img;
|
||||||
return Gallery.url.parentElement.scrollTop = 0;
|
return Gallery.url.parentElement.scrollTop = 0;
|
||||||
},
|
},
|
||||||
prev: function() {
|
prev: function() {
|
||||||
|
|||||||
@ -99,9 +99,14 @@ Gallery =
|
|||||||
open: (e) ->
|
open: (e) ->
|
||||||
if e
|
if e
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
Gallery.current.dataset.id = @dataset.id
|
|
||||||
Gallery.url.href = Gallery.current.src = @href
|
img = $.el 'img',
|
||||||
Gallery.url.download = Gallery.current.title = @title
|
src: Gallery.url.href = @href
|
||||||
|
title: Gallery.url.download = @title
|
||||||
|
|
||||||
|
img.dataset.id = @dataset.id
|
||||||
|
$.replace Gallery.current, img
|
||||||
|
Gallery.current = img
|
||||||
Gallery.url.parentElement.scrollTop = 0
|
Gallery.url.parentElement.scrollTop = 0
|
||||||
prev: ->
|
prev: ->
|
||||||
Gallery.cb.open.call Gallery.images[+Gallery.current.dataset.id - 1]
|
Gallery.cb.open.call Gallery.images[+Gallery.current.dataset.id - 1]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user