diff options
| author | Fabien Meghazi <fme@openerp.com> | 2014-09-08 15:54:38 +0200 |
|---|---|---|
| committer | Fabien Meghazi <fme@openerp.com> | 2014-09-16 19:55:00 +0200 |
| commit | 0d890ab76e69406dd9bfeeea6802eee14588c591 (patch) | |
| tree | 155da924715cce4931feac7f3ae22fbb4fad3d0f /addons/website/static/src/js | |
| parent | 89362bd6cd3daab7acdd2e1416f594fcf7b3ea59 (diff) | |
[ADD] Compress uploaded image by default
Added an opt-out option available from the button's dropdown
Diffstat (limited to 'addons/website/static/src/js')
| -rw-r--r-- | addons/website/static/src/js/website.editor.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/website/static/src/js/website.editor.js b/addons/website/static/src/js/website.editor.js index ab6abed522b..50c939a0803 100644 --- a/addons/website/static/src/js/website.editor.js +++ b/addons/website/static/src/js/website.editor.js @@ -1387,6 +1387,10 @@ 'click button.filepicker': function () { this.$('input[type=file]').click(); }, + 'click .js_disable_optimization': function () { + this.$('input[name="disable_optimization"]').val('1'); + this.$('button.filepicker').click(); + }, 'change input[type=file]': 'file_selection', 'submit form': 'form_submit', 'change input.url': "change_input", |
