diff options
| author | Amit Vora <avo@tinyerp.com> | 2014-04-14 12:48:01 +0530 |
|---|---|---|
| committer | Amit Vora <avo@tinyerp.com> | 2014-04-14 12:48:01 +0530 |
| commit | bf3d4a7d943de6f0765533dae04de5046e0822fa (patch) | |
| tree | 062f17846f931a3a19e8d02128eeb7c946dafe69 /addons/gamification/static/src/js/gamification.js | |
| parent | cfbd8ae9f80b32088171afe45844dcadb0c0f5a6 (diff) | |
| parent | e82fbf7d911355c3a9acef38f83040761258dd5d (diff) | |
[MRG] merge with main branch
bzr revid: avo@tinyerp.com-20140414071801-3eaa6iqryfrolxbt
Diffstat (limited to 'addons/gamification/static/src/js/gamification.js')
| -rw-r--r-- | addons/gamification/static/src/js/gamification.js | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/addons/gamification/static/src/js/gamification.js b/addons/gamification/static/src/js/gamification.js index 2a8db5f369d..242f67d8759 100644 --- a/addons/gamification/static/src/js/gamification.js +++ b/addons/gamification/static/src/js/gamification.js @@ -49,21 +49,6 @@ openerp.gamification = function(instance) { self.get_goal_todo_info(); }); }); - }, - 'click .oe_goal h4': function(event) { - var self = this; - this.kkeys = []; - $(document).on('keydown.klistener', function(event) { - if ("37,38,39,40,65,66".indexOf(event.keyCode) < 0) { - $(document).off('keydown.klistener'); - } else { - self.kkeys.push(event.keyCode); - if (self.kkeys.toString().indexOf("38,38,40,40,37,39,37,39,66,65") >= 0) { - new instance.web.Model('gamification.badge').call('check_progress', []); - $(document).off('keydown.klistener'); - } - } - }); } }, start: function() { @@ -126,6 +111,13 @@ openerp.gamification = function(instance) { } }); + instance.web.WebClient.include({ + to_kitten: function() { + this._super(); + new instance.web.Model('gamification.badge').call('check_progress', []); + } + }); + instance.mail.Widget.include({ start: function() { this._super(); |
