Permalink
Browse files

videoplay class

  • Loading branch information...
davidhellsing committed Oct 18, 2013
1 parent 62c662e commit 1525db36cc38e99e93ad8259a28a1273c2ef947f
Showing with 6 additions and 4 deletions.
  1. +2 −0 src/galleria.js
  2. +4 −4 src/themes/classic/galleria.classic.js
View
@@ -4781,6 +4781,8 @@ this.prependChild( 'info', 'myElement' );
.siblings( '.active' )
.removeClass( 'active' );
+ self.$('container').removeClass( 'videoplay' );
+
var complete = function() {
self._layers[index].innerHTML = self.getData().layer || '';
@@ -9,7 +9,7 @@
(function($) {
-/*global jQuery, Galleria */
+/*global window, jQuery, Galleria */
Galleria.addTheme({
name: 'classic',
@@ -74,7 +74,7 @@ Galleria.addTheme({
} else {
$(e.thumbTarget).css('opacity', this.getIndex() ? 1 : 0.6).click( function() {
$(this).css( 'opacity', 1 ).parent().siblings().children().css('opacity', 0.6);
- })
+ });
}
});
@@ -86,9 +86,9 @@ Galleria.addTheme({
if (!e.cached) {
this.$('loader').show().fadeTo(200, 0.4);
}
- setTimeout(function() {
+ window.setTimeout(function() {
activate(e);
- }, touch ? 300 : 0)
+ }, touch ? 300 : 0);
this.$('info').toggle( this.hasInfo() );
});

0 comments on commit 1525db3

Please sign in to comment.