[IMP] better error message when kanban crash
bzr revid: fp@tinyerp.com-20121221193029-at1o607wd0blf6cd
This commit is contained in:
parent
e07533cba7
commit
1e4ed7232f
|
@ -415,7 +415,7 @@ instance.web_kanban.KanbanView = instance.web.View.extend({
|
||||||
new_group.do_save_sequences();
|
new_group.do_save_sequences();
|
||||||
}).fail(function(error, evt) {
|
}).fail(function(error, evt) {
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
alert(_t("An error has occured while moving the record to this group."));
|
alert(_t("An error has occured while moving the record to this group: ") + data.fault_code);
|
||||||
self.do_reload(); // TODO: use draggable + sortable in order to cancel the dragging when the rcp fails
|
self.do_reload(); // TODO: use draggable + sortable in order to cancel the dragging when the rcp fails
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -434,8 +434,8 @@ instance.web_kanban.KanbanView = instance.web.View.extend({
|
||||||
} else if (262*unfolded<self.$el.width()) {
|
} else if (262*unfolded<self.$el.width()) {
|
||||||
group.$el.children(':first').css('width', "250px");
|
group.$el.children(':first').css('width', "250px");
|
||||||
} else {
|
} else {
|
||||||
// -12 because of padding 6 between cards
|
// -12 because of padding 6 between cards
|
||||||
// -1 because of the border of the latest dummy column
|
// -1 because of the border of the latest dummy column
|
||||||
group.$el.children(':first').css('width', Math.floor((self.$el.width()-1)/unfolded)-12 + 'px');
|
group.$el.children(':first').css('width', Math.floor((self.$el.width()-1)/unfolded)-12 + 'px');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue