[Web] Allow to skip IP check for API
This commit is contained in:
@@ -359,6 +359,16 @@ jQuery(function($){
|
||||
draw_oauth2_clients();
|
||||
draw_transport_maps();
|
||||
draw_queue();
|
||||
// API IP check toggle
|
||||
$("#skip_ip_check").click(function( event ) {
|
||||
$("#skip_ip_check").not(this).prop('checked', false);
|
||||
if ($("#skip_ip_check:checked").length > 0) {
|
||||
$('#allow_from').prop('disabled', true);
|
||||
}
|
||||
else {
|
||||
$("#allow_from").removeAttr('disabled');
|
||||
}
|
||||
});
|
||||
// Relayhost
|
||||
$('#testRelayhostModal').on('show.bs.modal', function (e) {
|
||||
$('#test_relayhost_result').text("-");
|
||||
|
@@ -48,6 +48,13 @@ $(document).ready(function() {
|
||||
$(this.$domain).closest("select").selectpicker();
|
||||
}
|
||||
});
|
||||
// todo
|
||||
$('[data-page-size]').on('click', function(e){
|
||||
e.preventDefault();
|
||||
var newSize = $(this).data('page-size');
|
||||
var nextTable = $(this).nextAll('.table-responsive').find('table');
|
||||
FooTable.get(nextTable).pageSize(newSize);
|
||||
});
|
||||
// Clone mailbox mass actions
|
||||
$("div").find("[data-actions-header='true'").each(function() {
|
||||
$(this).html($(this).nextAll('.mass-actions-mailbox:first').html());
|
||||
|
Reference in New Issue
Block a user