diff options
| author | Martin Trigaux <mat@openerp.com> | 2013-10-02 17:05:07 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@openerp.com> | 2013-10-02 17:05:07 +0200 |
| commit | ba64b6e3e6e65f5c6720af301fafe3322a7aff5d (patch) | |
| tree | b6937a8dec2bc92be2c06077febe2db061c30ac8 /addons/gamification/static/src/js/gamification.js | |
| parent | 20b13f39f9d21d1ec0e678143b76037885fd8c27 (diff) | |
[FIX] gamification: use gauge merged in web and instead of own version
bzr revid: mat@openerp.com-20131002150507-ea76au2frffvfd0r
Diffstat (limited to 'addons/gamification/static/src/js/gamification.js')
| -rw-r--r-- | addons/gamification/static/src/js/gamification.js | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/addons/gamification/static/src/js/gamification.js b/addons/gamification/static/src/js/gamification.js index 8c9aff58775..ccd5204b2ba 100644 --- a/addons/gamification/static/src/js/gamification.js +++ b/addons/gamification/static/src/js/gamification.js @@ -139,36 +139,5 @@ openerp.gamification = function(instance) { } } }); - - instance.gamification.GoalWidget = instance.web_kanban.AbstractField.extend({ - className: "oe_goal_gauge", - start: function() { - var self = this; - var max = 100; - if (this.options.max_field) { - max = self.getParent().record[this.options.max_field].raw_value; - } - var label = ""; - if (this.options.label_field) { - label = self.getParent().record[this.options.label_field].raw_value; - } - this.g = new JustGage({ - parentNode: self.$el[0], - value: self.get("value"), - min: 0, - max: max, - relativeGaugeSize: true, - humanFriendly: true, - label: label, - levelColors: [ - "#ff0000", - "#f9c802", - "#a9d70b" - ] - }); - }, - }); - instance.web_kanban.fields_registry.add("goal", "instance.gamification.GoalWidget"); - }; |
