';
if (!empty($msgs)) {
$res .= implode(',', array_map(function($v) {
if (preg_match("/ERR/", $v)) {
diff --git a/modules/core/site.css b/modules/core/site.css
index 6382755c68..35d3b10caa 100644
--- a/modules/core/site.css
+++ b/modules/core/site.css
@@ -920,6 +920,9 @@ div.unseen,
.next th {
white-space: normal !important;
}
+.sys_messages {
+ z-index: 1100 !important;
+}
/* mobile */
.mobile {
@@ -1029,9 +1032,6 @@ div.unseen,
top: 1px;
left: 70px !important;
}
-.mobile .sys_messages {
- z-index: 1000 !important;
-}
@media (orientation: landscape) {
.mobile .msg_controls {
top: 12px;
diff --git a/modules/core/site.js b/modules/core/site.js
index ba5b54dc0e..62ff767f91 100644
--- a/modules/core/site.js
+++ b/modules/core/site.js
@@ -381,7 +381,6 @@ function Hm_Modal(options) {
}
btn.addEventListener('click', callback);
- btn.addEventListener('click', this.hide);
this.modalFooter.append(btn);
};
diff --git a/modules/sievefilters/site.js b/modules/sievefilters/site.js
index c67d164e2a..72bbd8fbbf 100644
--- a/modules/sievefilters/site.js
+++ b/modules/sievefilters/site.js
@@ -310,8 +310,7 @@ $(function () {
**************************************************************************************/
var edit_script_modal = new Hm_Modal({
size: 'xl',
- modalId: 'myEditScriptModal',
- btnSize: 'lg'
+ modalId: 'myEditScript'
});
// set content
@@ -340,7 +339,7 @@ $(function () {
edit_filter_modal.addFooterBtn('Save', 'btn-primary ms-auto', async function () {
let result = save_filter(current_account);
if (result) {
- edit_filter_modal.close();
+ edit_filter_modal.hide();
}
});
@@ -348,7 +347,7 @@ $(function () {
edit_filter_modal.addFooterBtn('Convert to code', 'btn-warning', async function () {
let result = save_filter(current_account, true);
if (result) {
- edit_filter_modal.close();
+ edit_filter_modal.hide();
}
});
@@ -908,6 +907,8 @@ $(function () {
current_account = $(this).attr('imap_account');
$('.modal_sieve_filter_name').val($(this).attr('script_name_parsed'));
$('.modal_sieve_filter_priority').val($(this).attr('priority'));
+ $('.sieve_list_conditions_modal').html('');
+ $('.filter_actions_modal_table').html('');
Hm_Ajax.request(
[ {'name': 'hm_ajax_hook', 'value': 'ajax_sieve_edit_filter'},
{'name': 'imap_account', 'value': $(this).attr('imap_account')},
@@ -935,6 +936,8 @@ $(function () {
$("[name^=sieve_selected_extra_action_value]").last().val(action.extra_option_value);
if ($("[name^=sieve_selected_action_value]").last().is('input')) {
$("[name^=sieve_selected_action_value]").last().val(action.value);
+ } else if ($("[name^=sieve_selected_action_value]").last().is('textarea')) {
+ $("[name^=sieve_selected_action_value]").last().text(action.value);
}
});
}
diff --git a/tests/phpunit/modules/core/modules.php b/tests/phpunit/modules/core/modules.php
index ef1c88e135..476ca39ca3 100644
--- a/tests/phpunit/modules/core/modules.php
+++ b/tests/phpunit/modules/core/modules.php
@@ -885,7 +885,7 @@ public function test_msgs() {
$test = new Output_Test('msgs', 'core');
$test->handler_response = array('router_login_state' => false);
$res = $test->run();
- $this->assertEquals(array('
'), $res->output_response);
+ $this->assertEquals(array('
'), $res->output_response);
}
/**
* @preserveGlobalState disabled