@@ -186,7 +186,7 @@
|
||||
<li ><a type="delete">Delete</a></li>
|
||||
<li>
|
||||
<ul class="color-chooser">
|
||||
<li><a id="steelblue"><span class="steelblue square"></span></a></li>
|
||||
<li><a t-att-id="record.id.value"><span class="steelblue square"></span></a></li>
|
||||
<li><a id="firebrick"><span class="firebrick square"></span></a></li>
|
||||
<li><a id="khaki"><span class="khaki square"></span></a></li>
|
||||
<li><a id="thistle"><span class="thistle square"></span></a></li>
|
||||
|
||||
@@ -142,7 +142,7 @@ a.oe_project_kanban_action {
|
||||
|
||||
|
||||
.steelblue {
|
||||
background: steelblue; }
|
||||
background: #4682B4; }
|
||||
|
||||
.firebrick {
|
||||
background: firebrick; }
|
||||
|
||||
@@ -38,16 +38,14 @@ openerp.project = function(openerp) {
|
||||
});
|
||||
$('#list').replaceWith(my_list);
|
||||
|
||||
|
||||
$('.steelblue').click(function(){
|
||||
console.log("curreeeeeeenttttttttttt",this.$element.find('.steelblue'))
|
||||
$('#'+ self.id).click(function(){
|
||||
console.log("curreeeehsfkiash")
|
||||
//$(this).closest('.oe_project_kanban_vignette').css('background-color', 'steelblue');
|
||||
$action = $(this).closest('.oe_project_kanban_vignette').addClass(self.kanban_color(2));
|
||||
//var data = {};
|
||||
//data[$action.data('name')] = $(this).data('color');
|
||||
//self.view.dataset.write(2, {'color':2}, {}, function() {
|
||||
// //self.record[$action.data('name')] = $(this).data('color');
|
||||
// self.do_reload();
|
||||
//});
|
||||
self.view.dataset.write(self.id, {color:2},self.do_reload());
|
||||
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user