summaryrefslogtreecommitdiff
path: root/addons/gamification/static/src/js/gamification.js
diff options
context:
space:
mode:
authorMartin Trigaux <mat@openerp.com>2013-04-22 15:33:55 +0200
committerMartin Trigaux <mat@openerp.com>2013-04-22 15:33:55 +0200
commit8b400f7e883a0bcee2cd29c7539f786a084b40f5 (patch)
tree5420ddaf76aea6acb6885c2febdb0b8d12fbb691 /addons/gamification/static/src/js/gamification.js
parent38f205ef32a1acd3d5712d203c5f18d2d0805c95 (diff)
[IMP] remove many2many display and clean ups
bzr revid: mat@openerp.com-20130422133355-ffhglxrkdia2hz4j
Diffstat (limited to 'addons/gamification/static/src/js/gamification.js')
-rw-r--r--addons/gamification/static/src/js/gamification.js25
1 files changed, 0 insertions, 25 deletions
diff --git a/addons/gamification/static/src/js/gamification.js b/addons/gamification/static/src/js/gamification.js
index 41b6125a4c9..edfc304f83f 100644
--- a/addons/gamification/static/src/js/gamification.js
+++ b/addons/gamification/static/src/js/gamification.js
@@ -79,8 +79,6 @@ openerp.gamification = function(instance) {
if(self.goals_info.info.length > 0){
self.render_template_replace(self.$el.filter(".oe_gamification_goal"),'gamification.goal_list_to_do');
self.render_money_fields(self.goals_info.info[0].currency);
- // self.render_progress_bars();
- self.render_piechars();
self.render_user_avatars();
} else {
self.$el.filter(".oe_gamification_goal").hide();
@@ -117,29 +115,6 @@ openerp.gamification = function(instance) {
money_field.replace($(this));
});
},
- render_progress_bars: function() {
- var self = this;
-
- dfm = new instance.web.form.DefaultFieldManager(self);
- // Generate a FieldMonetary for each .oe_goal_field_monetary
- self.$(".oe_goal_progress").each(function() {
- progress_field = new instance.web.form.FieldProgressBar(dfm, {
- attrs: {
- modifiers: '{"readonly": true}'
- }
- });
- progress_field.set('value', $(this).attr('value'));
- progress_field.replace($(this));
- });
- },
- render_piechars: function() {
- var self = this;
- self.$(".oe_goal_sparkline_piechart").each(function() {
- var completeness = parseInt( $(this).attr('data-completeness'), 10);
- var values = [completeness, 100-completeness];
- $(this).sparkline(values, {type: 'pie', offset: 180, sliceColors: ['#0B610B','#F78181']});
- });
- },
render_user_avatars: function() {
var self = this;
self.$(".oe_user_avatar").each(function() {