New JS attribute: data-auto-leave-validation (#7785)

Instead of a repeating pattern like: `<input type="text" value="something" data-leave-validation="something">`, you can now put a `data-auto-leave-validation="1"` attribute on a `<form>` 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 <alexandre@alapetite.fr>
Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
This commit is contained in:
authored and GitHub committed 2025-08-08 17:39:38 +02:00
1 parent a3854c2f59
commit d9197d7e32
50 files changed
+224 -284

No files matched your search

+1
View File
@@ -145,6 +145,7 @@ return array(
'category_empty' => 'Prázdná kategorie',
'confirm_action' => 'Opravdu chcete provést tuto akci? Toto nelze zrušit!',
'confirm_action_feed_cat' => 'Opravdu chcete provést tuto akci? Přijdete o související oblíbené položky a uživatelské dotazy. Toto nelze zrušit!',
'confirm_exit_slider' => 'Are you sure you want to discard unsaved settings?', // TODO
'feedback' => array(
'body_new_articles' => 'Ve FreshRSS je %%d nových článků k přečtení.',
'body_unread_articles' => '(nepřečtené: %%d)',