summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorVincent Schippefilt <vsc@odoo.com>2018-04-17 14:04:54 +0200
committerVincent Schippefilt <vsc@odoo.com>2018-04-17 16:51:43 +0200
commite7de4c0e5f0b046c3061d246cd09b1d0df1c4815 (patch)
treee59cc0815c3f1a3886501333c808629e521cfe12 /addons/web/static/src
parentddecc5079f7407966a0ab6bf5a39520d62013e00 (diff)
[FIX] web: display shortcuts in community
before this fix, hitting the ALT key did not show the shortcuts on the buttons after this fix, the events of the web_client are extending those of abstract_web_clients where the keyboard navigation is hooked up, so the shortcuts are visible
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/js/chrome/web_client.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/static/src/js/chrome/web_client.js b/addons/web/static/src/js/chrome/web_client.js
index e0ce1f2c9f2..225599e0f7e 100644
--- a/addons/web/static/src/js/chrome/web_client.js
+++ b/addons/web/static/src/js/chrome/web_client.js
@@ -12,7 +12,7 @@ var SystrayMenu = require('web.SystrayMenu');
var UserMenu = require('web.UserMenu');
return AbstractWebClient.extend({
- events: {
+ events: _.extend({}, AbstractWebClient.prototype.events, {
'click .oe_logo_edit_admin': 'logo_edit',
'click .oe_logo img': function(ev) {
ev.preventDefault();
@@ -20,7 +20,7 @@ return AbstractWebClient.extend({
framework.redirect("/web" + (config.debug ? "?debug" : ""));
});
},
- },
+ }),
show_application: function() {
var self = this;