From b8b9e6ef57160b7ec2375696bc08e81c0b1e3ebc Mon Sep 17 00:00:00 2001 From: andryyy Date: Sun, 28 Oct 2018 12:46:08 +0100 Subject: [PATCH] [Web] Fix sieve validation, fixes #1960 --- data/web/js/mailbox.js | 4 ++-- data/web/modals/mailbox.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data/web/js/mailbox.js b/data/web/js/mailbox.js index 3671fa40..1f2b4bd2 100644 --- a/data/web/js/mailbox.js +++ b/data/web/js/mailbox.js @@ -145,7 +145,7 @@ $(document).ready(function() { $("#script_data").numberedtextarea({allowTabChar: true}); // Disable submit button on script change $('#script_data').on('keyup', function() { - $('#add_filter_btns > #add_item').attr({"disabled": true}); + $('#add_filter_btns > #add_sieve_script').attr({"disabled": true}); $('#validation_msg').html('-'); }); // Validate script data @@ -161,7 +161,7 @@ $(document).ready(function() { var response = (data.responseText); response_obj = JSON.parse(response); if (response_obj.type == "success") { - $('#add_filter_btns > #add_item').attr({"disabled": false}); + $('#add_filter_btns > #add_sieve_script').attr({"disabled": false}); } mailcow_alert_box(response_obj.msg, response_obj.type); }, diff --git a/data/web/modals/mailbox.php b/data/web/modals/mailbox.php index 107df71a..7327959b 100644 --- a/data/web/modals/mailbox.php +++ b/data/web/modals/mailbox.php @@ -572,7 +572,7 @@ if (!isset($_SESSION['mailcow_cc_role'])) {
- +