diff options
| author | jpr-odoo <jpr@openerp.com> | 2017-02-08 12:12:22 +0530 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2017-02-10 15:19:04 +0100 |
| commit | d1a8d54aca2e386d804162d1dcfe2c213ae339ec (patch) | |
| tree | fee65d0618ca3aaebb1ab6130f318ac23195a2f3 /addons/website/static/src/js | |
| parent | 33b09d0d5eab1ce0f62f017811949fc8038d72da (diff) | |
[IMP] website: Make company logo editable from frontend
Purpose
=======
Clicking the company logo takes to the backend's company settings. Users get lost and don't know how to go back to the website.
Specs
=====
It should be a picture selection wizard. If possible the default picture should be the company logo if already set.
Diffstat (limited to 'addons/website/static/src/js')
| -rw-r--r-- | addons/website/static/src/js/website.snippets.editor.js | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/addons/website/static/src/js/website.snippets.editor.js b/addons/website/static/src/js/website.snippets.editor.js index 94bb408b9ac..5ea11dc63c4 100644 --- a/addons/website/static/src/js/website.snippets.editor.js +++ b/addons/website/static/src/js/website.snippets.editor.js @@ -70,22 +70,6 @@ options.registry.company_data = options.Class.extend({ }); } }, - - on_focus: function () { - this._super.apply(this, arguments); - - var proto = options.registry.company_data.prototype; - - Dialog.confirm(null, _t("Do you want to edit the company data ?"), { - confirm_callback: function () { - editor.editor_bar.save_without_reload().then(function () { - proto.__link_deferred.then(function (link) { - window.location.href = link; - }); - }); - }, - }); - }, }); options.registry.slider = options.Class.extend({ |
