Views.Image = Views.Base.extend({ classType: "Views.Image", tagName: "div", listenEvents: function() { //See Views.Base listenDefaultEvents() this.on("oninitialize", this.onInitialize); }, triggerEventsOn: function() { //See Views.Base launchDefaultActionsOn() }, triggerAddModelToCollectionOn: function() { var that = this; if (this.options.edautocomplete.isvalid) { this.on("onautocompleteitemselected", function() { this.trigger("onaddmodeltoCollection"); }); } else { this.$el.on("change", function(event) { that.trigger("onaddmodeltocollection"); }); } }, onInitialize: function() { if (this.options.src.indexOf(".fl")>-1 || this.options.src.indexOf("icons/") > -1) { this.options.src = edApplication().path + this.options.src; } else { if (this.options.src.indexOf(edApplication().getImagePath()) == -1) { this.options.src = edApplication().getImagePath() + this.options.src; } } this.options.src.replace(/\\\\/g,'\\'); } /*onAsyncLoading: function(data) { this.options.src = edApplication().path + data; this.render(); },*/ /** * * Fouiller ici !!!!! * * */ }); Views.ImageList = Views.BaseList.extend({ classType: "Views.ImageList" });