diff options
| author | Martin Trigaux <mat@openerp.com> | 2013-04-12 10:54:52 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@openerp.com> | 2013-04-12 10:54:52 +0200 |
| commit | 252365095a18b71ac0912ca2bc3f5262ffdd87b8 (patch) | |
| tree | e7068f83d354327844d2c2ea0007bb8bc9603998 /addons/gamification/static/src | |
| parent | 28761467fc3c13f45f655b39b58cb233a7a1c1ea (diff) | |
[IMP] better badge views and checks
bzr revid: mat@openerp.com-20130412085452-mnecqo80cgmo2ecs
Diffstat (limited to 'addons/gamification/static/src')
| -rw-r--r-- | addons/gamification/static/src/css/goal.css | 10 | ||||
| -rw-r--r-- | addons/gamification/static/src/js/gamification.js | 2 |
2 files changed, 8 insertions, 4 deletions
diff --git a/addons/gamification/static/src/css/goal.css b/addons/gamification/static/src/css/goal.css index 82a0d60b903..cb8054f33b4 100644 --- a/addons/gamification/static/src/css/goal.css +++ b/addons/gamification/static/src/css/goal.css @@ -1,9 +1,12 @@ /* Kanban views */ -.openerp .oe_kanban_view .oe_kanban_card.oe_kanban_goal, -.openerp .oe_kanban_view .oe_kanban_card.oe_kanban_badge { +.openerp .oe_kanban_view .oe_kanban_card.oe_kanban_goal { width: 220px; min-height: 200px; } +.openerp .oe_kanban_view .oe_kanban_card.oe_kanban_badge { + width: 250px; + min-height: 150px; +} .oe_kanban_badge_avatars { margin-top: 8px; } @@ -21,7 +24,8 @@ margin: auto; margin-bottom: -20px; } -.oe_kanban_goal .oe_goal_state_block,p { +.oe_kanban_goal .oe_goal_state_block, +.oe_kanban_goal p { text-align: center; } .oe_kanban_goal .oe_goal_state_block .oe_goal_state { diff --git a/addons/gamification/static/src/js/gamification.js b/addons/gamification/static/src/js/gamification.js index 44af26550a0..a856d057172 100644 --- a/addons/gamification/static/src/js/gamification.js +++ b/addons/gamification/static/src/js/gamification.js @@ -125,7 +125,7 @@ openerp.gamification = function(instance) { self.$el.find('.oe_goal_gauge').attr('id', unique_id); var g = new JustGage({ id: unique_id, - node: self.$el.find('.oe_goal_gauge').empty().get(0), + node: self.$('.oe_goal_gauge').empty().get(0), value: self.record.current.raw_value, min: 0, max: self.record.target_goal.raw_value, |
