mirror of
https://github.com/fergalmoran/dss.git
synced 2026-03-25 23:16:35 +00:00
Altered mixedit
This commit is contained in:
@@ -19,16 +19,15 @@ define ['app.lib/editableView', 'moment', 'utils', 'libs/backbone/backbone.sypho
|
||||
@state = 0
|
||||
|
||||
onDomRefresh: ->
|
||||
if not @model.id
|
||||
$("#fileupload", @el).fileupload
|
||||
downloadTemplateId: undefined
|
||||
url: "/_upload/"
|
||||
start: ->
|
||||
$("#mix-details", @el).show()
|
||||
done: =>
|
||||
@state++;
|
||||
$("#div-upload-mix", @el).hide()
|
||||
@checkRedirect()
|
||||
$("#fileupload", @el).fileupload
|
||||
downloadTemplateId: undefined
|
||||
url: "/_upload/"
|
||||
start: ->
|
||||
$("#mix-details", @el).show()
|
||||
done: =>
|
||||
@state++;
|
||||
$("#div-upload-mix", @el).hide()
|
||||
@checkRedirect()
|
||||
|
||||
onRender: ->
|
||||
console.log("MixEditView: onRender")
|
||||
|
||||
@@ -37,20 +37,18 @@
|
||||
|
||||
MixEditView.prototype.onDomRefresh = function() {
|
||||
var _this = this;
|
||||
if (!this.model.id) {
|
||||
return $("#fileupload", this.el).fileupload({
|
||||
downloadTemplateId: void 0,
|
||||
url: "/_upload/",
|
||||
start: function() {
|
||||
return $("#mix-details", this.el).show();
|
||||
},
|
||||
done: function() {
|
||||
_this.state++;
|
||||
$("#div-upload-mix", _this.el).hide();
|
||||
return _this.checkRedirect();
|
||||
}
|
||||
});
|
||||
}
|
||||
return $("#fileupload", this.el).fileupload({
|
||||
downloadTemplateId: void 0,
|
||||
url: "/_upload/",
|
||||
start: function() {
|
||||
return $("#mix-details", this.el).show();
|
||||
},
|
||||
done: function() {
|
||||
_this.state++;
|
||||
$("#div-upload-mix", _this.el).hide();
|
||||
return _this.checkRedirect();
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
MixEditView.prototype.onRender = function() {
|
||||
|
||||
Reference in New Issue
Block a user