diff options
| author | Martin Trigaux <mat@openerp.com> | 2013-04-16 14:45:58 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@openerp.com> | 2013-04-16 14:45:58 +0200 |
| commit | 0b0c24a6364c98604d1b9d06462274e87a79d0bd (patch) | |
| tree | c88a1edd8899589a4700cd2406fbac1ab285e1ea /addons/hr_gamification/static/src | |
| parent | 8d23c604d91b0180f0dca25b3a907aa642d12c5a (diff) | |
[REF] moving to only hr_gamification module
bzr revid: mat@openerp.com-20130416124558-p40tkw8mgr4e7v04
Diffstat (limited to 'addons/hr_gamification/static/src')
| -rw-r--r-- | addons/hr_gamification/static/src/js/gamification.js (renamed from addons/hr_gamification/static/src/js/badges.js) | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/addons/hr_gamification/static/src/js/badges.js b/addons/hr_gamification/static/src/js/gamification.js index 7506c65f144..a9126464a10 100644 --- a/addons/hr_gamification/static/src/js/badges.js +++ b/addons/hr_gamification/static/src/js/gamification.js @@ -1,13 +1,7 @@ openerp.hr_gamification = function(instance) { instance.web_kanban.KanbanRecord.include({ on_card_clicked: function() { - if (this.view.dataset.model === 'gamification.badge') { - if (this.record.stat_count.raw_value > 0) { - this.$('.oe_kanban_badge_avatars a').first().click(); - } else { - return false; - } - } else if (this.view.dataset.model === 'gamification.badge.user') { + if (this.view.dataset.model === 'gamification.badge.user') { var action = { type: 'ir.actions.act_window', res_model: 'gamification.badge', |
