diff options
| author | DJ Patel <mdi@tinyerp.com> | 2014-04-17 12:15:01 +0530 |
|---|---|---|
| committer | DJ Patel <mdi@tinyerp.com> | 2014-04-17 12:15:01 +0530 |
| commit | 483fe85c2b3e659bfdb3d2e483e8bbaab3fcf4e4 (patch) | |
| tree | a7e46439e5cf609578130abe6a6d9c041734841d /addons/gamification/static | |
| parent | 7d5b66c526fc2137d1f65cb881ebe2409e2b2234 (diff) | |
| parent | dd47f684f0d0d5f8844d8893d3bbc9eee2a48c46 (diff) | |
[Merge] Merged with main branch.
bzr revid: mdi@tinyerp.com-20140417064501-cf2rp86sukob7v1a
Diffstat (limited to 'addons/gamification/static')
| -rw-r--r-- | addons/gamification/static/img/badge_hidden-image.png | bin | 12994 -> 63364 bytes | |||
| -rw-r--r-- | addons/gamification/static/src/js/gamification.js | 22 |
2 files changed, 7 insertions, 15 deletions
diff --git a/addons/gamification/static/img/badge_hidden-image.png b/addons/gamification/static/img/badge_hidden-image.png Binary files differindex 2b9040d5764..1c5cf7b6f5d 100644 --- a/addons/gamification/static/img/badge_hidden-image.png +++ b/addons/gamification/static/img/badge_hidden-image.png 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(); |
