diff options
| author | Xavier Morel <xmo@openerp.com> | 2012-01-13 17:28:49 +0100 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2012-01-13 17:28:49 +0100 |
| commit | 6595a05ee0f21cfd9e66f0ae5d52cfb6cd48add5 (patch) | |
| tree | a4023620f9e6b063caf5e3b6644c9b32b4c85244 /addons/web/static/src/js/chrome.js | |
| parent | 6132cfc44f87d591e66fbc7802fefeaebb10ccc5 (diff) | |
[ADD] link to debug mode in about window
bzr revid: xmo@openerp.com-20120113162849-tv0mirnxn6va111b
Diffstat (limited to 'addons/web/static/src/js/chrome.js')
| -rw-r--r-- | addons/web/static/src/js/chrome.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js index 32a70d587a7..39bc0181e16 100644 --- a/addons/web/static/src/js/chrome.js +++ b/addons/web/static/src/js/chrome.js @@ -689,6 +689,11 @@ openerp.web.Header = openerp.web.Widget.extend(/** @lends openerp.web.Header# * var self = this; self.rpc("/web/webclient/version_info", {}).then(function(res) { var $help = $(QWeb.render("About-Page", {version_info: res})); + $help.find('a.oe_activate_debug_mode').click(function (e) { + e.preventDefault(); + window.location = $.param.querystring( + window.location.href, 'debug'); + }); $help.dialog({autoOpen: true, modal: true, width: 960, title: _t("About")}); }); |
