Browse Source

publish muk_web_preview - 12.0

pull/68/head
MuK IT GmbH 6 years ago
parent
commit
76b26eda91
  1. 2
      muk_web_preview/__manifest__.py
  2. 3
      muk_web_preview/static/src/js/preview/content.js
  3. 2
      muk_web_preview/static/src/js/widgets/dialog.js
  4. 5
      muk_web_preview/static/src/js/widgets/manager.js

2
muk_web_preview/__manifest__.py

@ -20,7 +20,7 @@
{ {
"name": "MuK Preview", "name": "MuK Preview",
"summary": """File Preview Dialog""", "summary": """File Preview Dialog""",
"version": "12.0.2.3.11",
"version": "12.0.2.3.12",
"category": "Extra Tools", "category": "Extra Tools",
"license": "AGPL-3", "license": "AGPL-3",
"website": "http://www.mukit.at", "website": "http://www.mukit.at",

3
muk_web_preview/static/src/js/preview/content.js

@ -51,9 +51,6 @@ var AbstractPreviewContent = Widget.extend({
renderPreviewContent: function() { renderPreviewContent: function() {
return $.when(); return $.when();
}, },
adaptResize: function() {
return;
},
printable: false, printable: false,
downloadable: false, downloadable: false,
contentActions: function() { contentActions: function() {

2
muk_web_preview/static/src/js/widgets/dialog.js

@ -58,11 +58,9 @@ var PreviewDialog = PreviewManager.extend({
}, },
_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();
}, },
}); });

5
muk_web_preview/static/src/js/widgets/manager.js

@ -200,11 +200,6 @@ var PreviewManager = Widget.extend({
} }
this.activePreview = undefined; this.activePreview = undefined;
}, },
_notifyPreviewResize: function () {
if (this.activePreview) {
this.activePreview.adaptResize();
}
},
_onPreviousClick: function(event) { _onPreviousClick: function(event) {
if (this.index > 0) { if (this.index > 0) {
this.index = this.index - 1; this.index = this.index - 1;

Loading…
Cancel
Save