Skip to content

Commit

Permalink
[IMP] better error message when kanban crash
Browse files Browse the repository at this point in the history
  • Loading branch information
fpodoo committed Dec 21, 2012
1 parent e07533c commit 1e4ed72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addons/web_kanban/static/src/js/kanban.js
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ instance.web_kanban.KanbanView = instance.web.View.extend({
new_group.do_save_sequences();
}).fail(function(error, evt) {
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
});
}
Expand All @@ -434,8 +434,8 @@ instance.web_kanban.KanbanView = instance.web.View.extend({
} else if (262*unfolded<self.$el.width()) {
group.$el.children(':first').css('width', "250px");
} else {
// -12 because of padding 6 between cards
// -1 because of the border of the latest dummy column
// -12 because of padding 6 between cards
// -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');
}
}
Expand Down

0 comments on commit 1e4ed72

Please sign in to comment.