diff options
| author | Martin Geubelle <mge@odoo.com> | 2017-09-08 13:44:38 +0200 |
|---|---|---|
| committer | Martin Geubelle <mge@odoo.com> | 2017-09-08 16:35:45 +0200 |
| commit | 3ae9a6b5376dafe8b96fbef00014d871cf3f4d4b (patch) | |
| tree | da7c4ae53b755b4aaf9b98c7c5de9ea61d45e7a7 /addons/web/static/src/js | |
| parent | 14cb9af0d672e544484d6dc7b3432722217f4e10 (diff) | |
[FIX] web: Kanban: allow to resequence a record twice
Before this rev., it was not possible to move a record (in the same column)
at the top and then move another record above it.
There is special class `o_updating` added on record being edited to avoid
moving them. This class is normally removed afterwards when re-rendering the
record.
When resequencing, the record is re-rendered so the class won't be removed ;
this is why it shouldn't be added in the first place (same behaviour as saas-15).
Diffstat (limited to 'addons/web/static/src/js')
| -rw-r--r-- | addons/web/static/src/js/views/kanban/kanban_column.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/views/kanban/kanban_column.js b/addons/web/static/src/js/views/kanban/kanban_column.js index e996a2e309d..269e37e7082 100644 --- a/addons/web/static/src/js/views/kanban/kanban_column.js +++ b/addons/web/static/src/js/views/kanban/kanban_column.js @@ -109,7 +109,6 @@ var KanbanColumn = Widget.extend({ var record = ui.item.data('record'); var index = self.records.indexOf(record); record.$el.removeAttr('style'); // jqueryui sortable add display:block inline - ui.item.addClass('o_updating'); if (index >= 0) { if ($.contains(self.$el[0], record.$el[0])) { // resequencing records @@ -117,6 +116,7 @@ var KanbanColumn = Widget.extend({ } } else { // adding record to this column + ui.item.addClass('o_updating'); self.trigger_up('kanban_column_add_record', {record: record, ids: self._getIDs()}); } } |
