diff options
| author | Fabien Meghazi <fme@openerp.com> | 2013-09-24 12:23:05 +0200 |
|---|---|---|
| committer | Fabien Meghazi <fme@openerp.com> | 2013-09-24 12:23:05 +0200 |
| commit | bcd3f471ad16f4a9a2ebe7c75e12d3cc1eaf6e73 (patch) | |
| tree | c474cc44b912c805c22156cebab9fc1ca35d0f44 | |
| parent | f46550fa27c0f5d00cf24ab430d5ce8f8e95ee9a (diff) | |
[IMP] persistence of dialog opt out
bzr revid: fme@openerp.com-20130924102305-dxyxq56imz1xeul8
| -rw-r--r-- | addons/website/static/src/js/website.translator.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/website/static/src/js/website.translator.js b/addons/website/static/src/js/website.translator.js index a4a5344aa85..d1701db5b2f 100644 --- a/addons/website/static/src/js/website.translator.js +++ b/addons/website/static/src/js/website.translator.js @@ -3,6 +3,7 @@ var website = openerp.website; website.templates.push('/website/static/src/xml/website.translator.xml'); + var nodialog = 'website_translator_nodialog'; website.EditorBar.include({ start: function () { @@ -17,10 +18,11 @@ }, edit: function () { var self = this; - if (!localStorage['website_translator_nodialog']) { + if (!localStorage[nodialog]) { var dialog = new website.TranslatorDialog(); dialog.appendTo($(document.body)); dialog.on('activate', this, function () { + localStorage[nodialog] = dialog.$('input[name=do_not_show]').prop('checked') || ''; dialog.$el.modal('hide'); this.translate(); }); |
