diff options
| author | chm@openerp.com <> | 2014-03-26 17:07:01 +0100 |
|---|---|---|
| committer | chm@openerp.com <> | 2014-03-26 17:07:01 +0100 |
| commit | 9bb510938f9b755470869d6c82f4fa2c8231fca1 (patch) | |
| tree | 5d544ce91fa74ad18297e0f5a911c448ccddc357 /addons/website/static/src/js/website.editor.js | |
| parent | a7dc05bf6e14fdaf2657e4c3e8c0600e663cc62f (diff) | |
[WIP] website: media editor for image
bzr revid: chm@openerp.com-20140326160701-6wf21suhkv4rimyw
Diffstat (limited to 'addons/website/static/src/js/website.editor.js')
| -rw-r--r-- | addons/website/static/src/js/website.editor.js | 16 |
1 files 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(); + }, }); /** |
