Skip to content

Commit 1fe4cd0

Browse files
authored
ui: fix global filters ui tickbox reappearing (#6966)
1 parent 12e02e6 commit 1fe4cd0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

data/web/js/site/admin.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,16 @@ jQuery(function($){
5454
$.get("/inc/ajax/show_rspamd_global_filters.php");
5555
$("#confirm_show_rspamd_global_filters").hide();
5656
$("#rspamd_global_filters").removeClass("d-none");
57+
localStorage.setItem('rspamd_global_filters_confirmed', 'true');
5758
});
59+
60+
$(document).ready(function() {
61+
if (localStorage.getItem('rspamd_global_filters_confirmed') === 'true') {
62+
$("#confirm_show_rspamd_global_filters").hide();
63+
$("#rspamd_global_filters").removeClass("d-none");
64+
}
65+
});
66+
5867
$("#super_delete").click(function() { return confirm(lang.queue_ays); });
5968

6069
$(".refresh_table").on('click', function(e) {

0 commit comments

Comments
 (0)