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'])) {