From 9bb510938f9b755470869d6c82f4fa2c8231fca1 Mon Sep 17 00:00:00 2001 From: "chm@openerp.com" <> Date: Wed, 26 Mar 2014 17:07:01 +0100 Subject: [PATCH] [WIP] website: media editor for image bzr revid: chm@openerp.com-20140326160701-6wf21suhkv4rimyw --- addons/website/static/src/js/website.editor.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/addons/website/static/src/js/website.editor.js b/addons/website/static/src/js/website.editor.js index e7e7a44e31e..ad6f2f67157 100644 --- a/addons/website/static/src/js/website.editor.js +++ b/addons/website/static/src/js/website.editor.js @@ -1333,9 +1333,16 @@ this._super(); this.editor = editor; }, + save: function () { + }, + cancel: function () { + }, + close: function () { + }, }); website.editor.MediaDialog = website.editor.Dialog.extend({ template: 'website.editor.dialog.media', + init: function (editor, media) { this.media = media; this.editor = editor; @@ -1344,13 +1351,18 @@ start: function (editor, media) { this.imageDialog = new website.editor.RTEImageDialog(this.editor, this.media); this.imageDialog.appendTo(this.$("#editor-media-image")); - console.log(this.imageDialog.$el[0]); this.iconDialog = new website.editor.FontIconsDialog(this.editor, this.media); this.iconDialog.appendTo(this.$("#editor-media-icon")); this.videoDialog = null; //this.videoDialog.appendTo(this.$("#editor-media-video")); return this._super(); - } + }, + save: function () { + this.imageDialog.save(); + this.iconDialog.save(); + // this.videoDialog.save(); + return this._super(); + }, }); /**