|
@ -49,21 +49,20 @@ var PreviewDialog = PreviewManager.extend({ |
|
|
this.$el.remove(); |
|
|
this.$el.remove(); |
|
|
return this._super.apply(this, arguments); |
|
|
return this._super.apply(this, arguments); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
_renderPreview: function (element) { |
|
|
_renderPreview: function (element) { |
|
|
this._super.apply(this, arguments); |
|
|
this._super.apply(this, arguments); |
|
|
this.$('.modal-title').text(this.activeFile.filename || "Preview"); |
|
|
this.$('.modal-title').text(this.activeFile.filename || "Preview"); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_onDestroy: function () { |
|
|
_onDestroy: function () { |
|
|
this.destroy(); |
|
|
this.destroy(); |
|
|
}, |
|
|
}, |
|
|
_onMaximizeClick: function(event) { |
|
|
_onMaximizeClick: function(event) { |
|
|
this.$('.mk_preview_dialog').addClass("mk_preview_maximize"); |
|
|
this.$('.mk_preview_dialog').addClass("mk_preview_maximize"); |
|
|
|
|
|
this._notifyPreviewResize(); |
|
|
}, |
|
|
}, |
|
|
_onMinimizeClick: function(event) { |
|
|
_onMinimizeClick: function(event) { |
|
|
this.$('.mk_preview_dialog').removeClass("mk_preview_maximize"); |
|
|
this.$('.mk_preview_dialog').removeClass("mk_preview_maximize"); |
|
|
|
|
|
this._notifyPreviewResize(); |
|
|
}, |
|
|
}, |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|