mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-22 03:45:25 +00:00
Used POST for the batch delete call instead of parameters
This might have bust the 1024 limit. With post, no problem.
This commit is contained in:
@@ -492,12 +492,13 @@ function onToolbarDeleteSelectedContactsConfirm(dialogId) {
|
||||
disposeDialog();
|
||||
var contactsList = $('contactsList');
|
||||
var rowIds = contactsList.getSelectedRowsId();
|
||||
var urlstr = (URLForFolderID(Contact.currentAddressBook)
|
||||
+ "/batchDelete?ids=" + rowIds.join("/"));
|
||||
var urlstr = (URLForFolderID(Contact.currentAddressBook) + "/batchDelete");
|
||||
for (var i = 0; i < rowIds.length; i++) {
|
||||
delete cachedContacts[Contact.currentAddressBook + "/" + rowIds[i]];
|
||||
}
|
||||
triggerAjaxRequest(urlstr, onContactDeleteEventCallback, rowIds);
|
||||
triggerAjaxRequest(urlstr, onContactDeleteEventCallback, rowIds,
|
||||
('ids=' + rowIds.join("/")),
|
||||
{ "Content-type": "application/x-www-form-urlencoded" });
|
||||
}
|
||||
|
||||
function onContactDeleteEventCallback(http) {
|
||||
|
||||
Reference in New Issue
Block a user