Nicolas Lempereur
2d753ab5ec
[FIX] web: handle widget order and custom sequence
...
An editable list can be drag-and-drop sorted by:
- displaying a sequence field,
- displaying a field with the `handle` widget
At first it was only working if the list was not specifically ordered,
but with 26bf35260 it also worked if the list was ordered on `sequence`
or `sequence ASC`.
This commit changes this so it works:
- if the list is not ordered (same as the original intention),
- if the list is ordered by the sequence field (widget `handle` or sequence)
This allows to have a custom model (on which we can't define _order) to be
ordered on a custom field.
This also remove a far-fetched oddity such as having the view ordered by
sequence but having a custom sequence field before `sequence`.
opw-704612
2017-01-18 14:30:57 +01:00
..
2017-01-17 18:04:57 +01:00
2016-11-20 02:58:43 +01:00
2016-12-16 15:55:13 +01:00
2017-01-17 09:53:58 +01:00
2017-01-08 00:29:28 +01:00
2016-12-11 02:58:13 +01:00
2016-12-01 13:52:01 +01:00
2017-01-10 16:53:27 +01:00
2016-08-19 13:54:31 +02:00
2016-12-08 13:55:40 +01:00
2017-01-15 00:28:55 +01:00
2016-12-01 13:52:01 +01:00
2017-01-01 00:30:05 +01:00
2017-01-15 00:28:55 +01:00
2017-01-08 00:29:28 +01:00
2017-01-08 02:56:42 +01:00
2016-11-20 02:58:43 +01:00
2016-12-01 13:52:01 +01:00
2016-12-04 02:57:30 +01:00
2017-01-08 00:29:28 +01:00
2017-01-01 00:30:05 +01:00
2017-01-10 12:07:44 +01:00
2017-01-08 00:29:28 +01:00
2016-12-04 02:57:30 +01:00
2017-01-08 00:29:28 +01:00
2016-12-11 00:33:19 +01:00
2017-01-15 00:28:55 +01:00
2017-01-04 18:41:22 +01:00
2017-01-15 02:55:40 +01:00
2016-12-04 02:57:30 +01:00
2017-01-08 00:29:28 +01:00
2017-01-17 18:04:57 +01:00
2017-01-17 18:04:57 +01:00
2017-01-15 00:28:55 +01:00
2017-01-15 00:28:55 +01:00
2017-01-15 00:28:55 +01:00
2016-12-01 13:52:01 +01:00
2017-01-17 18:04:57 +01:00
2017-01-15 02:55:40 +01:00
2017-01-01 02:58:08 +01:00
2017-01-15 02:55:40 +01:00
2016-12-01 13:52:01 +01:00
2017-01-04 14:54:07 +01:00
2017-01-15 02:55:40 +01:00
2016-12-25 00:30:02 +01:00
2016-12-04 00:32:08 +01:00
2017-01-08 00:29:28 +01:00
2017-01-01 02:58:08 +01:00
2016-12-11 02:58:13 +01:00
2017-01-17 18:04:57 +01:00
2017-01-01 02:58:08 +01:00
2017-01-01 02:58:08 +01:00
2017-01-15 00:28:55 +01:00
2017-01-01 02:58:08 +01:00
2017-01-15 02:55:40 +01:00
2017-01-02 12:49:55 +01:00
2017-01-02 12:49:55 +01:00
2016-12-11 00:33:19 +01:00
2017-01-01 02:58:08 +01:00
2017-01-01 02:58:08 +01:00
2016-08-26 15:19:04 +02:00
2017-01-01 02:58:08 +01:00
2016-11-17 13:11:04 +01:00
2016-12-04 00:32:08 +01:00
2016-11-17 14:37:19 +01:00
2016-11-17 13:11:04 +01:00
2016-11-17 13:11:04 +01:00
2017-01-15 02:55:40 +01:00
2016-12-01 13:52:01 +01:00
2016-11-20 00:39:36 +01:00
2016-12-01 13:52:01 +01:00
2016-12-01 13:52:01 +01:00
2016-08-03 15:07:24 +02:00
2017-01-17 14:17:56 +01:00
2017-01-01 02:58:08 +01:00
2017-01-15 02:55:40 +01:00
2016-12-01 13:52:01 +01:00
2016-12-01 13:52:01 +01:00
2017-01-01 02:58:08 +01:00
2017-01-02 12:49:55 +01:00
2016-12-01 13:52:01 +01:00
2016-12-01 13:52:01 +01:00
2016-12-04 02:57:30 +01:00
2016-11-20 02:58:43 +01:00
2016-10-03 11:14:47 +02:00
2016-10-03 11:14:47 +02:00
2016-12-01 13:52:01 +01:00
2016-11-20 02:58:43 +01:00
2017-01-06 17:37:33 +01:00
2016-10-03 11:14:47 +02:00
2016-12-01 13:52:01 +01:00
2016-12-01 13:52:01 +01:00
2016-08-19 13:54:31 +02:00
2016-12-01 13:52:01 +01:00
2016-11-20 02:58:43 +01:00
2016-11-20 02:58:43 +01:00
2016-12-01 13:52:01 +01:00
2016-10-03 11:14:47 +02:00
2017-01-08 00:29:28 +01:00
2017-01-08 00:29:28 +01:00
2016-11-20 02:58:43 +01:00
2016-12-01 13:52:01 +01:00
2016-12-01 13:52:01 +01:00
2016-12-01 13:52:01 +01:00
2017-01-08 00:29:28 +01:00
2016-12-01 13:52:01 +01:00
2016-12-01 13:52:01 +01:00
2017-01-02 12:49:55 +01:00
2016-08-03 10:57:54 +02:00
2016-12-01 13:52:01 +01:00
2017-01-01 02:58:08 +01:00
2016-11-20 02:58:43 +01:00
2016-11-20 00:39:36 +01:00
2016-12-01 13:52:01 +01:00
2016-12-01 13:52:01 +01:00
2016-12-01 13:52:01 +01:00
2016-12-09 15:09:36 +01:00
2016-11-20 02:58:43 +01:00
2016-12-01 13:52:01 +01:00
2016-11-20 00:39:36 +01:00
2016-12-01 13:52:01 +01:00
2016-12-01 13:52:01 +01:00
2016-11-20 00:39:36 +01:00
2016-12-01 13:52:01 +01:00
2017-01-01 00:30:05 +01:00
2017-01-15 02:55:40 +01:00
2017-01-17 18:04:57 +01:00
2016-08-19 13:54:31 +02:00
2017-01-01 02:58:08 +01:00
2016-12-25 00:30:02 +01:00
2017-01-16 11:20:30 +01:00
2016-12-25 00:30:02 +01:00
2017-01-15 02:55:40 +01:00
2016-12-01 13:52:01 +01:00
2017-01-01 02:58:08 +01:00
2017-01-01 02:58:08 +01:00
2017-01-08 00:29:28 +01:00
2016-12-04 02:57:30 +01:00
2017-01-04 18:41:22 +01:00
2017-01-01 00:30:05 +01:00
2017-01-08 02:56:42 +01:00
2017-01-08 00:29:28 +01:00
2016-12-11 00:33:19 +01:00
2017-01-08 00:29:28 +01:00
2017-01-15 00:28:55 +01:00
2017-01-02 12:49:55 +01:00
2016-08-19 13:54:31 +02:00
2016-12-11 00:33:19 +01:00
2016-11-24 12:33:55 +01:00
2017-01-08 00:29:28 +01:00
2017-01-15 02:55:40 +01:00
2017-01-16 12:30:53 +01:00
2016-08-19 13:54:31 +02:00
2016-12-25 00:30:02 +01:00
2016-08-19 13:54:31 +02:00
2016-12-11 00:33:19 +01:00
2017-01-01 02:58:08 +01:00
2017-01-08 00:29:28 +01:00
2016-12-01 13:52:01 +01:00
2017-01-01 02:58:08 +01:00
2017-01-01 02:58:08 +01:00
2016-12-01 13:52:01 +01:00
2017-01-15 02:55:40 +01:00
2016-12-25 00:30:02 +01:00
2016-12-11 02:58:13 +01:00
2016-12-11 00:33:19 +01:00
2017-01-01 00:30:05 +01:00
2016-12-04 00:32:08 +01:00
2016-12-11 00:33:19 +01:00
2017-01-17 18:04:57 +01:00
2017-01-18 14:30:42 +01:00
2016-12-25 00:30:02 +01:00
2017-01-17 18:04:57 +01:00
2017-01-04 14:54:07 +01:00
2017-01-15 00:28:55 +01:00
2017-01-15 00:28:55 +01:00
2017-01-15 00:28:55 +01:00
2017-01-15 02:55:40 +01:00
2017-01-15 02:55:40 +01:00
2017-01-15 02:55:40 +01:00
2016-12-11 02:58:13 +01:00
2017-01-17 18:04:57 +01:00
2016-12-25 00:30:02 +01:00
2016-12-01 13:52:01 +01:00
2016-12-01 13:52:01 +01:00
2016-12-01 13:52:01 +01:00
2016-12-04 02:57:30 +01:00
2017-01-01 00:30:05 +01:00
2017-01-04 18:41:22 +01:00
2016-12-25 00:30:02 +01:00
2017-01-18 11:45:25 +01:00
2017-01-15 00:28:55 +01:00
2016-12-04 00:32:08 +01:00
2017-01-15 00:28:55 +01:00
2017-01-15 02:55:40 +01:00
2017-01-01 00:30:05 +01:00
2016-12-25 00:30:02 +01:00
2017-01-08 00:29:28 +01:00
2016-12-01 13:52:01 +01:00
2016-12-04 00:32:08 +01:00
2016-12-01 13:52:01 +01:00
2016-12-25 00:30:02 +01:00
2016-12-25 02:57:37 +01:00
2017-01-18 14:30:57 +01:00
2016-08-19 13:54:31 +02:00
2017-01-16 10:17:29 +01:00
2016-12-01 13:52:01 +01:00
2017-01-17 18:04:57 +01:00
2016-12-11 00:33:19 +01:00
2016-12-11 00:33:19 +01:00
2017-01-15 00:28:55 +01:00
2017-01-08 00:29:28 +01:00
2017-01-01 00:30:05 +01:00
2017-01-17 18:04:57 +01:00
2017-01-15 00:28:55 +01:00
2017-01-01 00:30:05 +01:00
2017-01-01 02:58:08 +01:00
2017-01-01 02:58:08 +01:00
2017-01-01 02:58:08 +01:00
2017-01-08 00:29:28 +01:00
2017-01-15 00:28:55 +01:00
2017-01-08 00:29:28 +01:00
2016-12-25 00:30:02 +01:00
2017-01-15 02:55:40 +01:00
2017-01-01 00:30:05 +01:00
2017-01-08 00:29:28 +01:00
2016-12-25 00:30:02 +01:00
2016-12-11 02:58:13 +01:00
2017-01-08 00:29:28 +01:00
2016-08-19 13:54:31 +02:00
2017-01-01 00:30:05 +01:00
2017-01-01 00:30:05 +01:00
2017-01-08 00:29:28 +01:00
2017-01-08 00:29:28 +01:00
2017-01-08 00:29:28 +01:00
2017-01-01 02:58:08 +01:00
2016-12-11 02:58:13 +01:00
2017-01-01 02:58:08 +01:00
2017-01-01 00:30:05 +01:00
2017-01-15 00:28:55 +01:00
2017-01-08 00:29:28 +01:00
2016-12-01 13:52:01 +01:00
2017-01-15 02:55:40 +01:00
2017-01-01 00:30:05 +01:00
2017-01-17 18:04:57 +01:00
2017-01-15 02:55:40 +01:00
2016-12-11 00:33:19 +01:00
2017-01-15 02:55:40 +01:00
2017-01-17 18:45:24 +01:00
2017-01-17 18:04:57 +01:00
2016-12-25 00:30:02 +01:00