[IMP] Display color number in kanban's color picker in debug mode
bzr revid: fme@openerp.com-20111124210600-z7h54ns6hj6nbtk2
This commit is contained in:
parent
efb7a7b2d9
commit
5d0d04a85f
|
@ -1076,7 +1076,8 @@ openerp.web._t = new openerp.web.TranslationDataBase().build_translation_functio
|
|||
openerp.web.qweb = new QWeb2.Engine();
|
||||
openerp.web.qweb.debug = (window.location.search.indexOf('?debug') !== -1);
|
||||
openerp.web.qweb.default_dict = {
|
||||
'_' : _
|
||||
'_' : _,
|
||||
'_t' : openerp.web._t
|
||||
}
|
||||
openerp.web.qweb.format_text_node = function(s) {
|
||||
// Note that 'this' is the Qweb Node of the text
|
||||
|
|
|
@ -159,10 +159,19 @@
|
|||
width: 30px;
|
||||
height: 30px;
|
||||
border: 1px solid black;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
}
|
||||
.oe_kanban_color_picker a:hover {
|
||||
border-color: white;
|
||||
}
|
||||
.oe_kanban_color_picker span {
|
||||
border: none;
|
||||
font-size: 120%;
|
||||
font-weight: bold;
|
||||
color: black;
|
||||
line-height: 30px;
|
||||
}
|
||||
.openerp .oe_kanban_left {
|
||||
float: left;
|
||||
}
|
||||
|
|
|
@ -26,10 +26,7 @@ openerp.web_kanban.KanbanView = openerp.web.View.extend({
|
|||
this.group_operators = ['avg', 'max', 'min', 'sum', 'count'];
|
||||
this.qweb = new QWeb2.Engine();
|
||||
this.qweb.debug = openerp.connection.debug;
|
||||
this.qweb.default_dict = {
|
||||
'_' : _,
|
||||
'_t' : _t
|
||||
}
|
||||
this.qweb.default_dict = _.clone(QWeb.default_dict);
|
||||
this.has_been_loaded = $.Deferred();
|
||||
this.search_domain = this.search_context = this.search_group_by = null;
|
||||
this.currently_dragging = {};
|
||||
|
|
|
@ -48,7 +48,9 @@
|
|||
<tr>
|
||||
<t t-foreach="colors" t-as="color">
|
||||
<td t-att-bgcolor="color">
|
||||
<a href="#" t-att-data-color="color_index"/>
|
||||
<a href="#" t-att-data-color="color_index">
|
||||
<span t-if="__debug__"><t t-esc="color_index"/></span>
|
||||
</a>
|
||||
</td>
|
||||
<t t-if="((color_index + 1) % Math.round(colors.length / columns)) == 0"></tr><tr></t>
|
||||
</t>
|
||||
|
|
Loading…
Reference in New Issue