Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

play on clicking the main image

  • Loading branch information...
commit 9532bdb04049ca8264cff7b54dd5dc8e657c7030 1 parent 395cb41
Roald de Vries authored
Showing with 3 additions and 6 deletions.
  1. +3 −6 js/index.js
View
9 js/index.js
@@ -263,19 +263,16 @@
data: fotoramaData,
height: 610,
preload: 5,
- onShowImg: this.startPlaying,
- onClick: function() {
- return console.log('onClick', arguments);
- },
+ onClick: this.startPlaying,
click: false
};
return this.$el.fotorama(fotoramaOptions);
};
- FotoramaView.prototype.startPlaying = function(fotoramaItem) {
+ FotoramaView.prototype.startPlaying = function(fotoramaItem, x) {
var model, year;
model = this.collection.at(fotoramaItem.index);
- console.log('onShowImage', fotoramaItem, model);
+ console.log('onShowImage', fotoramaItem, model, x);
year = model.get('year');
return startMusicByYearRange(year - 25, year + 25);
};
Please sign in to comment.
Something went wrong with that request. Please try again.