diff options
| author | Martin Trigaux <mat@openerp.com> | 2013-04-23 15:03:51 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@openerp.com> | 2013-04-23 15:03:51 +0200 |
| commit | 1419b2fa974e4fbad7294f87be03ab01a9417122 (patch) | |
| tree | 88ac65610d27fb39f8ffeed0bef9f83727315099 /addons/gamification/static/src/js | |
| parent | abc8e81c7030913872c0741b8e8922e929453889 (diff) | |
[IMP] users follow goal plan
bzr revid: mat@openerp.com-20130423130351-pq3tepnmx2u74au5
Diffstat (limited to 'addons/gamification/static/src/js')
| -rw-r--r-- | addons/gamification/static/src/js/gamification.js | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/addons/gamification/static/src/js/gamification.js b/addons/gamification/static/src/js/gamification.js index 6965020e73d..21f7a7ef2a8 100644 --- a/addons/gamification/static/src/js/gamification.js +++ b/addons/gamification/static/src/js/gamification.js @@ -12,14 +12,7 @@ openerp.gamification = function(instance) { this.challenge_suggestions = {}; }, events: { - 'click a.oe_update_goal': function(event) { - var self = this; - var goal_id = parseInt(event.currentTarget.id, 10); - var goal_updated = new instance.web.Model('gamification.goal').call('update', [[goal_id]]); - $.when(goal_updated).done(function() { - self.get_goal_todo_info(); - }); - }, + // update a plan and related goals 'click a.oe_update_plan': function(event) { var self = this; var plan_id = parseInt(event.currentTarget.id, 10); @@ -28,6 +21,7 @@ openerp.gamification = function(instance) { self.get_goal_todo_info(); }); }, + // action to modify a goal 'click a.oe_goal_action': function(event) { var self = this; var goal_id = parseInt(event.currentTarget.id, 10); @@ -41,6 +35,7 @@ openerp.gamification = function(instance) { }); }); }, + // get more info about a challenge request 'click a.oe_challenge_reply': function(event) { var self = this; var plan_id = parseInt(event.currentTarget.id, 10); |
