From d124389fa314e57cb27d27ed4fe242322c597c6f Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Thu, 12 Sep 2013 12:37:52 +0200 Subject: [PATCH] [IMP] tabified image picker dialog bzr revid: xmo@openerp.com-20130912103752-sg9jmba0b061f7x9 --- addons/website/static/src/css/editor.css | 4 ++ addons/website/static/src/css/editor.sass | 3 + .../website/static/src/js/website.editor.js | 1 - .../website/static/src/xml/website.editor.xml | 57 ++++++++++--------- 4 files changed, 37 insertions(+), 28 deletions(-) diff --git a/addons/website/static/src/css/editor.css b/addons/website/static/src/css/editor.css index 3b3c7a2afab..d2c3f9da9c9 100644 --- a/addons/website/static/src/css/editor.css +++ b/addons/website/static/src/css/editor.css @@ -95,6 +95,10 @@ table.editorbar-panel td.selected { background-color: #b1c9d9; } +.modal .image-preview { + margin-bottom: 0.5em; +} + /* ---- RTE ---- */ .oe_editable .btn { -webkit-user-select: auto; diff --git a/addons/website/static/src/css/editor.sass b/addons/website/static/src/css/editor.sass index 81e7e6c660a..7f9f646f054 100644 --- a/addons/website/static/src/css/editor.sass +++ b/addons/website/static/src/css/editor.sass @@ -83,6 +83,9 @@ table.editorbar-panel td.selected background-color: #b1c9d9 +.modal .image-preview + margin-bottom: 0.5em + /* ---- RTE ---- */ // bootstrap makes .btn elements unselectable -> RTE double-click can't know diff --git a/addons/website/static/src/js/website.editor.js b/addons/website/static/src/js/website.editor.js index a4160e1fffe..c3880385f09 100644 --- a/addons/website/static/src/js/website.editor.js +++ b/addons/website/static/src/js/website.editor.js @@ -547,7 +547,6 @@ website.editor.ImageDialog = website.editor.Dialog.extend({ template: 'website.editor.dialog.image', events: _.extend({}, website.editor.Dialog.prototype.events, { - 'change .url-source': function (e) { this.changed($(e.target)); }, 'click button.filepicker': function () { this.$('input[type=file]').click(); }, diff --git a/addons/website/static/src/xml/website.editor.xml b/addons/website/static/src/xml/website.editor.xml index 6483413ed05..e3a49b26af7 100644 --- a/addons/website/static/src/xml/website.editor.xml +++ b/addons/website/static/src/xml/website.editor.xml @@ -75,38 +75,41 @@ Image: -
-
-
- -

Image URL

- -
-
-

— or —

- - -
-

— or —

-
-

Pick an existing attachment

-
-
- - -
+
+
+
+ +
+
+ + +
+
+
+
+
+ +
+
+ + +