Benoit Socias
009f259b0b
[FIX] web_editor: make moving images within wall wrap around
...
When using the previous button in an image wall, the image wraps around
but skips the last position.
When using the next button in an image wall, the image does not wrap
around.
This commit fixes this inconsistency by using the same behavior as the
one in 15.0 since [1]: wrap through all positions in both directions.
Steps to reproduce:
- Drop an "Images Wall" snippet.
- Add 6 images.
- Select an image.
- Click repeatedly on "Move to previous".
=> The image wraps around all positions except the last one.
- Click repeatedly on "Move to next".
=> The image does not move anymore once it reached the last position.
[1]: https://github.com/odoo/odoo/commit/3931f0a67f904daea6c891a3a80aa984760a7682
task-2990053
X-original-commit: 054f480376e8d08d1582cedd6caec6455be828e2
Part-of: odoo/odoo#125758
2023-07-18 16:58:55 +02:00
..
2023-07-18 14:30:13 +02:00
2023-07-13 19:28:04 +02:00
2023-07-12 09:15:09 +02:00
2023-07-13 19:28:04 +02:00
2023-07-15 04:01:09 +02:00
2023-07-07 15:27:50 +02:00
2023-07-05 09:01:10 +02:00
2023-07-04 07:55:16 +02:00
2023-07-18 11:42:26 +02:00
2023-07-10 16:59:11 +02:00
2023-07-18 11:42:26 +02:00
2023-07-13 19:28:32 +02:00
2023-07-18 11:42:26 +02:00
2023-07-18 11:42:26 +02:00
2023-07-17 18:13:15 +02:00
2023-07-18 13:07:41 +02:00
2023-07-10 16:59:11 +02:00
2023-07-15 13:06:02 +02:00
2023-06-29 11:59:46 +02:00
2023-07-12 12:38:48 +02:00
2023-07-18 11:42:37 +02:00
2023-07-03 21:55:48 +02:00
2023-07-11 22:33:47 +02:00
2023-07-06 15:03:42 +02:00
2023-07-18 11:42:26 +02:00
2023-07-17 12:06:18 +02:00
2023-07-18 10:20:02 +02:00
2023-07-17 19:26:03 +02:00
2023-07-12 11:19:59 +02:00
2023-07-15 04:01:01 +02:00
2023-07-05 14:21:28 +02:00
2023-07-15 12:00:17 +02:00
2023-07-05 14:21:28 +02:00
2023-07-05 14:21:28 +02:00
2023-07-11 12:00:40 +02:00
2023-07-18 11:42:26 +02:00
2023-07-13 14:47:44 +02:00
2023-07-15 12:00:42 +02:00
2023-07-15 12:00:42 +02:00
2023-07-18 11:42:26 +02:00
2023-07-15 10:54:46 +02:00
2023-07-15 10:54:46 +02:00
2023-07-18 14:30:16 +02:00
2023-07-13 19:28:04 +02:00
2023-07-13 16:52:46 +02:00
2023-07-07 15:27:56 +02:00
2023-07-07 10:52:36 +02:00
2023-06-30 00:20:45 +02:00
2023-07-17 23:08:41 +02:00
2023-07-12 21:45:44 +02:00
2023-07-10 15:32:26 +02:00
2023-07-10 15:32:26 +02:00
2023-07-07 16:42:41 +02:00
2023-07-10 15:32:29 +02:00
2023-07-10 15:32:28 +02:00
2023-07-10 11:48:57 +02:00
2023-07-10 15:32:29 +02:00
2023-07-17 09:20:56 +02:00
2023-07-11 06:52:57 +02:00
2023-07-06 17:51:58 +02:00
2023-07-11 09:10:21 +02:00
2023-07-10 15:32:24 +02:00
2023-07-07 12:09:52 +02:00
2023-07-12 21:45:44 +02:00
2023-07-13 14:47:36 +02:00
2023-07-10 15:32:28 +02:00
2023-07-10 15:32:28 +02:00
2023-07-10 15:32:07 +02:00
2023-07-15 12:00:33 +02:00
2023-07-04 14:02:22 +02:00
2023-06-29 09:10:44 +02:00
2023-07-07 12:09:57 +02:00
2023-07-10 15:32:27 +02:00
2023-07-10 15:32:25 +02:00
2023-07-10 15:32:29 +02:00
2023-07-10 15:32:27 +02:00
2023-07-10 15:32:25 +02:00
2023-07-18 10:20:08 +02:00
2023-06-30 01:32:47 +02:00
2023-07-15 10:54:20 +02:00
2023-07-17 09:20:48 +02:00
2023-07-10 15:32:26 +02:00
2023-07-10 15:32:28 +02:00
2023-07-18 13:07:34 +02:00
2023-07-17 20:36:09 +02:00
2023-07-07 15:27:50 +02:00
2023-07-18 14:30:11 +02:00
2023-07-11 22:33:47 +02:00
2023-07-11 22:33:47 +02:00
2023-06-30 00:21:03 +02:00
2023-07-17 12:05:48 +02:00
2023-07-13 12:26:17 +02:00
2023-07-17 12:05:48 +02:00
2023-07-11 22:33:47 +02:00
2023-07-18 11:42:26 +02:00
2023-07-18 09:07:13 +02:00
2023-07-15 13:06:04 +02:00
2023-07-18 09:07:16 +02:00
2023-07-04 10:16:13 +02:00
2023-07-17 13:30:46 +02:00
2023-07-15 05:10:58 +02:00
2023-07-05 15:58:31 +02:00
2023-07-05 14:34:00 +02:00
2023-07-15 04:01:14 +02:00
2023-07-12 12:38:47 +02:00
2023-07-18 10:19:50 +02:00
2023-07-13 14:47:41 +02:00
2023-07-13 14:47:41 +02:00
2023-07-12 07:40:24 +02:00
2023-07-18 13:07:34 +02:00
2023-07-11 22:33:47 +02:00
2023-07-05 14:33:58 +02:00
2023-07-18 09:07:06 +02:00
2023-07-05 15:58:26 +02:00
2023-07-13 19:28:01 +02:00
2023-07-18 11:42:47 +02:00
2023-07-18 14:30:03 +02:00
2023-07-18 13:07:41 +02:00
2023-07-12 16:52:44 +02:00
2023-07-15 10:54:57 +02:00
2023-07-13 19:28:21 +02:00
2023-06-28 17:41:53 +02:00
2023-07-17 18:13:30 +02:00
2023-07-13 19:28:21 +02:00
2023-06-30 20:13:43 +02:00
2023-06-29 22:38:49 +02:00
2023-07-17 18:13:45 +02:00
2023-07-07 15:27:50 +02:00
2023-07-18 13:07:34 +02:00
2023-07-10 21:25:48 +02:00
2023-07-18 09:07:13 +02:00
2023-07-18 14:30:03 +02:00
2023-07-13 16:53:09 +02:00
2023-07-12 21:45:44 +02:00
2023-07-18 09:07:11 +02:00
2023-07-15 13:05:56 +02:00
2023-07-13 18:18:06 +02:00
2023-07-13 14:47:41 +02:00
2023-07-05 17:34:10 +02:00
2023-07-05 10:12:48 +02:00
2023-07-17 19:26:03 +02:00
2023-07-17 19:26:08 +02:00
2023-07-03 12:20:58 +02:00
2023-07-15 13:05:53 +02:00
2023-07-06 23:44:32 +02:00
2023-07-05 11:37:16 +02:00
2023-07-18 13:07:41 +02:00
2023-07-11 22:33:47 +02:00
2023-07-15 05:10:45 +02:00
2023-07-17 12:05:48 +02:00
2023-07-18 13:07:41 +02:00
2023-07-18 16:58:55 +02:00
2023-07-11 09:10:07 +02:00
2023-07-18 16:58:44 +02:00
2023-07-11 22:33:47 +02:00
2023-07-17 12:06:18 +02:00
2023-07-18 11:42:26 +02:00
2023-07-11 22:33:47 +02:00
2023-07-13 19:27:52 +02:00
2023-07-11 22:33:47 +02:00
2023-07-11 22:33:47 +02:00
2023-07-11 22:33:47 +02:00
2023-07-15 04:01:12 +02:00
2023-07-13 19:27:52 +02:00
2023-07-18 16:58:45 +02:00
2023-07-11 22:33:47 +02:00
2023-07-17 12:06:09 +02:00
2023-07-18 16:58:43 +02:00
2023-07-17 10:40:32 +02:00
2023-07-11 22:33:47 +02:00
2023-07-13 19:27:55 +02:00
2023-07-18 16:58:43 +02:00
2023-07-18 14:30:08 +02:00
2023-07-11 22:33:47 +02:00
2023-07-13 19:27:55 +02:00
2023-06-29 09:10:54 +02:00
2023-07-13 19:27:55 +02:00
2023-06-30 00:21:19 +02:00
2023-06-30 00:21:19 +02:00
2023-07-18 11:42:39 +02:00
2023-07-18 16:58:43 +02:00
2023-06-30 01:32:52 +02:00
2023-07-11 22:33:47 +02:00