From d9197d7e32a97f29829ffd4cf4371b1853e51fa2 Mon Sep 17 00:00:00 2001 From: Inverle Date: Fri, 8 Aug 2025 17:39:38 +0200 Subject: New JS attribute: `data-auto-leave-validation` (#7785) Instead of a repeating pattern like: ``, you can now put a `data-auto-leave-validation="1"` attribute on a `
` for example, and it will automatically set the `data-leave-validation` attributes inside the form elements. `data_auto_leave_validation(parent)` from `extra.js` is called on slider open and page load. --------- Co-authored-by: Alexandre Alapetite Co-authored-by: Frans de Jonge --- app/views/configure/archiving.phtml | 29 +++++++++++------------------ 1 file changed, 11 insertions(+), 18 deletions(-) (limited to 'app/views/configure/archiving.phtml') diff --git a/app/views/configure/archiving.phtml b/app/views/configure/archiving.phtml index 10f8774cd..2b4152a7e 100644 --- a/app/views/configure/archiving.phtml +++ b/app/views/configure/archiving.phtml @@ -7,13 +7,13 @@

- +
- archiving['keep_max']) ? '' : ' checked="checked"' ?> - data-leave-validation="archiving['keep_max']) ? 0 : 1 ?>"/> + empty(FreshRSS_Context::userConf()->archiving['keep_max']) ? '' : ' checked="checked"' ?> /> archiving['keep_max']) ? 200 : FreshRSS_Context::userConf()->archiving['keep_max']; ?> - +
@@ -55,12 +54,10 @@
@@ -88,8 +84,7 @@
@@ -99,8 +94,7 @@
@@ -110,8 +104,7 @@
-- cgit v1.2.3