Don't set loop attribute of non-video.

This commit is contained in:
ccd0 2015-01-23 23:02:13 -08:00
parent 6ae8ef0536
commit fe188e12b3
3 changed files with 7 additions and 3 deletions

View File

@ -11392,7 +11392,9 @@
}
Gallery.cleanupTimer();
current = Gallery.nodes.current;
current.loop = current.nodeName === 'VIDEO';
if (current.nodeName === 'VIDEO') {
current.loop = true;
}
$.rmClass(Gallery.nodes.buttons, 'gal-playing');
return Gallery.slideshow = false;
},

View File

@ -11428,7 +11428,9 @@
}
Gallery.cleanupTimer();
current = Gallery.nodes.current;
current.loop = current.nodeName === 'VIDEO';
if (current.nodeName === 'VIDEO') {
current.loop = true;
}
$.rmClass(Gallery.nodes.buttons, 'gal-playing');
return Gallery.slideshow = false;
},

View File

@ -269,7 +269,7 @@ Gallery =
return unless Gallery.slideshow
Gallery.cleanupTimer()
{current} = Gallery.nodes
current.loop = current.nodeName is 'VIDEO'
current.loop = true if current.nodeName is 'VIDEO'
$.rmClass Gallery.nodes.buttons, 'gal-playing'
Gallery.slideshow = false