mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2025-12-12 02:55:43 +00:00
UI - Live filters preview - Better handling of watch preferences
This commit is contained in:
@@ -23,7 +23,7 @@ function request_textpreview_update() {
|
|||||||
$('textarea:visible, input:visible').each(function () {
|
$('textarea:visible, input:visible').each(function () {
|
||||||
const $element = $(this); // Cache the jQuery object for the current element
|
const $element = $(this); // Cache the jQuery object for the current element
|
||||||
const name = $element.attr('name'); // Get the name attribute of the element
|
const name = $element.attr('name'); // Get the name attribute of the element
|
||||||
data[name] = $element.is(':checkbox') ? ($element.is(':checked') ? $element.val() : undefined) : $element.val();
|
data[name] = $element.is(':checkbox') ? ($element.is(':checked') ? $element.val() : false) : $element.val();
|
||||||
});
|
});
|
||||||
|
|
||||||
$.abortiveSingularAjax({
|
$.abortiveSingularAjax({
|
||||||
|
|||||||
Reference in New Issue
Block a user