[Rspamd] Fix map permissions for www

[Web] Allow to manage global maps in UI (WIP)
This commit is contained in:
andryyy
2019-10-29 08:39:57 +01:00
parent 2b477e338f
commit b52ee0a706
14 changed files with 441 additions and 173 deletions

View File

@@ -133,16 +133,15 @@ $(document).ready(function() {
$(e.currentTarget).find('#sieveDataText').html('<pre style="font-size:14px;line-height:1.1">' + sieveScript + '</pre>');
});
// Disable submit button on script change
$('#script_data').on('keyup', function() {
$('.textarea-code').on('keyup', function() {
$('#add_filter_btns > #add_sieve_script').attr({"disabled": true});
$('#validation_msg').html('-');
});
// Validate script data
$("#validate_sieve").click(function( event ) {
event.preventDefault();
var script = $('#script_data').val();
$.ajax({
dataType: 'jsonp',
dataType: 'json',
url: "/inc/ajax/sieve_validation.php",
type: "get",
data: { script: script },