--- a/cms/app-client/app/controllers/application.js Fri Jan 15 15:48:42 2016 +0100
+++ b/cms/app-client/app/controllers/application.js Fri Jan 15 15:49:42 2016 +0100
@@ -7,6 +7,8 @@
discours: null,
date: [],
thematique: null,
+ isShowingModal: false,
+ currentDetails: null,
currentItem: {title: "example", master: 'http://www.noiseaddicts.com/samples_1w72b820/3921.mp3'},
filteredSounds: Ember.computed('location', 'langue', 'discours', 'date', 'thematique', 'model', function() {
var location = this.get('location');
@@ -65,6 +67,10 @@
$(".result-item").toggleClass("details", false);
$("#"+item.id).toggleClass("details", true);
}
+ },
+ toggleModal: function(item){
+ this.set("isShowingModal", !this.isShowingModal);
+ this.set("currentDetails", item);
}
}
});