Merge lp:~openerp-dev/openerp-web/trunk-customizetooltips-kanban-rga into lp:openerp-web

Proposed by Ravi Gadhia (OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openerp-web/trunk-customizetooltips-kanban-rga
Merge into: lp:openerp-web
Diff against target: 90 lines (+30/-7)
3 files modified
addons/web/static/src/css/base.css (+13/-0)
addons/web/static/src/css/base.sass (+8/-0)
addons/web_kanban/static/src/js/kanban.js (+9/-7)
To merge this branch: bzr merge lp:~openerp-dev/openerp-web/trunk-customizetooltips-kanban-rga
Reviewer Review Type Date Requested Status
OpenERP R&D Web Team Pending
Review via email: mp+191942@code.launchpad.net
To post a comment you must log in.
3828. By Mahendra Barad(OpenERP)

[Merge]Merge with trunk

3829. By Mahendra Barad(OpenERP)

[Merge]Merge with trunk

3830. By RGA(OpenERP)

Merge with trunk

3831. By RGA(OpenERP)

[MERGE] code refector

3832. By Mahendra Barad(OpenERP)

[Merge]merge with trunk

3833. By RGA(OpenERP)

[IMP] remove adition field addons get_tooltips should return all required field value

3834. By RGA(OpenERP)

[IMP] unescape html when list view row render

3835. By Mahendra Barad(OpenERP)

[REV]revert last revision

3836. By Mahendra Barad(OpenERP)

[Merge]merge with trunk

3837. By Mahendra Barad(OpenERP)

[IMP]improved css

3838. By Mahendra Barad(OpenERP)

[Merge]merge with trunk

3839. By Mahendra Barad(OpenERP)

[Merge]Merge with trunk

3840. By Mahendra Barad(OpenERP)

[Merge]merge with trunk

3841. By Mahendra Barad(OpenERP)

[Merge]Merge with trunk

3842. By Mahendra Barad(OpenERP)

[MErge]Merge with trunk

3843. By Mahendra Barad(OpenERP)

[Merge]Merge with trunk

3844. By Mahendra Barad(OpenERP)

[Merge] with trunk

3845. By Mahendra Barad(OpenERP)

[Merge]with trunk

3846. By Mahendra Barad(OpenERP)

[Merge]with trunk

3847. By Mahendra Barad(OpenERP)

[IMP]improve the code

3848. By Chirag Dodiya(OpenERP)

[MRG]Merge with lp:openerp-web

3849. By Mahendra Barad(OpenERP)

[Merge]with trunk

3850. By Mahendra Barad(OpenERP)

[Merge]with trunk

3851. By Mahendra Barad(OpenERP)

[Merge]with trunk

3852. By Mahendra Barad(OpenERP)

[Merge]with trunk

3853. By Mahendra Barad(OpenERP)

[Merge]with trunk

3854. By Mahendra Barad(OpenERP)

[IMP]resolve conflict

3855. By Mahendra Barad(OpenERP)

[Merge]with trunk

Unmerged revisions

3855. By Mahendra Barad(OpenERP)

[Merge]with trunk

3854. By Mahendra Barad(OpenERP)

[IMP]resolve conflict

3853. By Mahendra Barad(OpenERP)

[Merge]with trunk

3852. By Mahendra Barad(OpenERP)

[Merge]with trunk

3851. By Mahendra Barad(OpenERP)

[Merge]with trunk

3850. By Mahendra Barad(OpenERP)

[Merge]with trunk

3849. By Mahendra Barad(OpenERP)

[Merge]with trunk

3848. By Chirag Dodiya(OpenERP)

[MRG]Merge with lp:openerp-web

3847. By Mahendra Barad(OpenERP)

[IMP]improve the code

3846. By Mahendra Barad(OpenERP)

[Merge]with trunk

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'addons/web/static/src/css/base.css'
2--- addons/web/static/src/css/base.css 2014-05-02 12:33:55 +0000
3+++ addons/web/static/src/css/base.css 2014-05-06 09:05:53 +0000
4@@ -3378,3 +3378,16 @@
5 background-color: black;
6 opacity: 0.6;
7 }
8+.fa-star {
9+ font-size: 15px;
10+ padding-top: 9px;
11+}
12+
13+.fa-star-tooltip {
14+ padding-top: 1px;
15+}
16+
17+.oe_star_on {
18+ color: gold;
19+}
20+
21
22=== modified file 'addons/web/static/src/css/base.sass'
23--- addons/web/static/src/css/base.sass 2014-05-02 12:33:55 +0000
24+++ addons/web/static/src/css/base.sass 2014-05-06 09:05:53 +0000
25@@ -2681,6 +2681,14 @@
26 overflow: hidden !important
27 // }}}
28
29+.fa-star
30+ font-size: 15px
31+ padding-top: 9px
32+.fa-star-tooltip
33+ padding-top: 1px
34+.oe_star_on
35+ color: #FFD700
36+// End hack }}}
37 // End of customize
38
39 // Customize bootstrap3 for tooltip
40
41=== modified file 'addons/web_kanban/static/src/js/kanban.js'
42--- addons/web_kanban/static/src/js/kanban.js 2014-04-23 07:38:40 +0000
43+++ addons/web_kanban/static/src/js/kanban.js 2014-05-06 09:05:53 +0000
44@@ -562,6 +562,7 @@
45 this.dataset = dataset;
46 this.dataset_offset = 0;
47 this.aggregates = {};
48+ this.legend = {};
49 this.value = this.title = null;
50 if (this.group) {
51 this.value = group.get('value');
52@@ -646,7 +647,10 @@
53 }
54 this.$el.data('widget', this);
55 this.$records.data('widget', this);
56- this.$has_been_started.resolve();
57+ var def_tooltip = this.fetch_tooltip();
58+ $.when(def_tooltip).done(function (){
59+ self.$has_been_started.resolve();
60+ });
61 var add_btn = this.$el.find('.oe_kanban_add');
62 add_btn.tooltip({delay: { show: 500, hide:1000 }});
63 this.$records.find(".oe_kanban_column_cards").click(function (ev) {
64@@ -657,8 +661,6 @@
65 }
66 });
67 this.is_started = true;
68- var def_tooltip = this.fetch_tooltip();
69- return $.when(def_tooltip);
70 },
71 fetch_tooltip: function() {
72 if (! this.group)
73@@ -682,13 +684,13 @@
74 var options = instance.web.py_eval(field_desc.attrs.options || '{}')
75 if (! options.tooltip_on_group_by)
76 return;
77-
78 var self = this;
79 if (this.value) {
80 return (new instance.web.Model(field.relation)).query([options.tooltip_on_group_by])
81- .filter([["id", "=", this.value]]).first().then(function(res) {
82- self.tooltip = res[options.tooltip_on_group_by];
83- self.$(".oe_kanban_group_title_text").attr("title", self.tooltip || self.title || "").tooltip();
84+ .filter([["id", "=", this.value]]).first().then(function(res) {
85+ self.legend = res[options.tooltip_on_group_by];
86+ var title = self.legend.tooltip || self.title || ""
87+ self.$(".oe_kanban_group_title_text").attr("title", title).tooltip({html: true,className: 'oe_tooltip oe_tooltip_message'});
88 });
89 }
90 },