[Web] Do not use hard-coded params in imapsync jobs
[Web] Allow custom parameters in imapsync
This commit is contained in:
@@ -233,7 +233,7 @@ jQuery(function($){
|
||||
ft_paging.goto(parseInt(current_page[name]))
|
||||
}
|
||||
}
|
||||
function table_mailbox_paging(ft, name) {
|
||||
function paging_mailbox_after(ft, name) {
|
||||
var ft_paging = ft.use(FooTable.Paging)
|
||||
current_page[name] = ft_paging.current;
|
||||
localStorage.setItem('current_page', JSON.stringify(current_page));
|
||||
@@ -306,7 +306,7 @@ jQuery(function($){
|
||||
table_mailbox_ready(ft, 'domain_table');
|
||||
},
|
||||
"after.ft.paging": function(e, ft){
|
||||
table_mailbox_paging(ft, 'domain_table');
|
||||
paging_mailbox_after(ft, 'domain_table');
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -392,7 +392,7 @@ jQuery(function($){
|
||||
table_mailbox_ready(ft, 'mailbox_table');
|
||||
},
|
||||
"after.ft.paging": function(e, ft){
|
||||
table_mailbox_paging(ft, 'mailbox_table');
|
||||
paging_mailbox_after(ft, 'mailbox_table');
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -457,7 +457,7 @@ jQuery(function($){
|
||||
table_mailbox_ready(ft, 'resource_table');
|
||||
},
|
||||
"after.ft.paging": function(e, ft){
|
||||
table_mailbox_paging(ft, 'resource_table');
|
||||
paging_mailbox_after(ft, 'resource_table');
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -519,7 +519,7 @@ jQuery(function($){
|
||||
table_mailbox_ready(ft, 'bcc_table');
|
||||
},
|
||||
"after.ft.paging": function(e, ft){
|
||||
table_mailbox_paging(ft, 'bcc_table');
|
||||
paging_mailbox_after(ft, 'bcc_table');
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -576,7 +576,7 @@ jQuery(function($){
|
||||
table_mailbox_ready(ft, 'recipient_map_table');
|
||||
},
|
||||
"after.ft.paging": function(e, ft){
|
||||
table_mailbox_paging(ft, 'recipient_map_table');
|
||||
paging_mailbox_after(ft, 'recipient_map_table');
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -645,7 +645,7 @@ jQuery(function($){
|
||||
table_mailbox_ready(ft, 'alias_table');
|
||||
},
|
||||
"after.ft.paging": function(e, ft){
|
||||
table_mailbox_paging(ft, 'alias_table');
|
||||
paging_mailbox_after(ft, 'alias_table');
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -699,7 +699,7 @@ jQuery(function($){
|
||||
table_mailbox_ready(ft, 'aliasdomain_table');
|
||||
},
|
||||
"after.ft.paging": function(e, ft){
|
||||
table_mailbox_paging(ft, 'aliasdomain_table');
|
||||
paging_mailbox_after(ft, 'aliasdomain_table');
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -711,10 +711,10 @@ jQuery(function($){
|
||||
{"name":"chkbox","title":"","style":{"maxWidth":"60px","width":"60px","text-align":"center"},"filterable": false,"sortable": false,"type":"html"},
|
||||
{"sorted": true,"name":"id","title":"ID","style":{"maxWidth":"60px","width":"60px","text-align":"center"}},
|
||||
{"name":"user2","title":lang.owner},
|
||||
{"name":"server_w_port","title":"Server","breakpoints":"xs"},
|
||||
{"name":"server_w_port","title":"Server","breakpoints":"xs","style":{"word-break":"break-all"}},
|
||||
{"name":"exclude","title":lang.excludes,"breakpoints":"all"},
|
||||
{"name":"mins_interval","title":lang.mins_interval,"breakpoints":"all"},
|
||||
{"name":"last_run","title":lang.last_run,"breakpoints":"all"},
|
||||
{"name":"last_run","title":lang.last_run,"breakpoints":"sm"},
|
||||
{"name":"log","title":"Log"},
|
||||
{"name":"active","filterable": false,"style":{"maxWidth":"70px","width":"70px"},"title":lang.active},
|
||||
{"name":"is_running","filterable": false,"style":{"maxWidth":"120px","width":"100px"},"title":lang.status},
|
||||
@@ -774,7 +774,7 @@ jQuery(function($){
|
||||
table_mailbox_ready(ft, 'sync_job_table');
|
||||
},
|
||||
"after.ft.paging": function(e, ft){
|
||||
table_mailbox_paging(ft, 'sync_job_table');
|
||||
paging_mailbox_after(ft, 'sync_job_table');
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -837,7 +837,7 @@ jQuery(function($){
|
||||
table_mailbox_ready(ft, 'filter_table');
|
||||
},
|
||||
"after.ft.paging": function(e, ft){
|
||||
table_mailbox_paging(ft, 'filter_table');
|
||||
paging_mailbox_after(ft, 'filter_table');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user