|
|
|
|
|
|
|
|
components: { |
|
|
components: { |
|
|
filtering: FooTable.groupFilter |
|
|
filtering: FooTable.groupFilter |
|
|
} |
|
|
} |
|
|
}, function tableHook() { |
|
|
|
|
|
$('#symbolsTable :button').on('click', function() { |
|
|
|
|
|
var value = $(this).data('save'); |
|
|
|
|
|
if (!value) return |
|
|
|
|
|
saveSymbols(rspamd, "./savesymbols", "symbolsTable", value == 'cluster'); |
|
|
|
|
|
}); |
|
|
|
|
|
}); |
|
|
}); |
|
|
if (rspamd.read_only) { |
|
|
if (rspamd.read_only) { |
|
|
$( ".mb-disabled" ).attr('disabled', true); |
|
|
$( ".mb-disabled" ).attr('disabled', true); |
|
|
|
|
|
|
|
|
rspamd.alertMessage('alert-modal alert-error', data.statusText); |
|
|
rspamd.alertMessage('alert-modal alert-error', data.statusText); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
$(document).on("click", "#symbolsTable :button", function(event){ |
|
|
|
|
|
var value = $(this).data('save'); |
|
|
|
|
|
if (!value) return |
|
|
|
|
|
saveSymbols(rspamd, "./savesymbols", "symbolsTable", value == 'cluster'); |
|
|
|
|
|
}); |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
interface.setup = function(rspamd, tables) { |
|
|
interface.setup = function(rspamd, tables) { |