UI - Fix - Edit Watch 'Show advanced options' should fire at page load to show you whats possible

This commit is contained in:
dgtlmoon
2023-11-30 19:20:30 +01:00
parent 7fe0ef7099
commit 156d403552
3 changed files with 20 additions and 27 deletions

View File

@@ -1,18 +1,4 @@
$(document).ready(function () {
// Lazy Hide/Show elements mechanism
$('[data-visible-for]').hide();
$(':radio').on('keyup keypress blur change click', function (e){
$('[data-visible-for]').hide();
var n = $(this).attr('name') + "=" + $(this).val();
if (n === 'fetch_backend=system') {
n = "fetch_backend=" + default_system_fetch_backend;
}
$(`[data-visible-for~="${n}"]`).show();
});
$(':radio:checked').change();
$('#notification-setting-reset-to-default').click(function (e) {
$('#notification_title').val('');
$('#notification_body').val('');