if (textMailAccounts.length > 0)
mailAccounts = textMailAccounts.evalJSON(true);
else
- mailAccounts = new Array;
+ mailAccounts = new Array();
}
var currentMessages = new Array();
&& http.status == 200) {
var hasQuotas = false;
- if (http.responseText.length > 0) {
var quotas = http.responseText.evalJSON(true);
for (var i in quotas) {
hasQuotas = true;
if (http.readyState == 4
&& http.status == 200) {
checkAjaxRequestsState();
- var newAccount = buildMailboxes(http.callbackData,
- http.responseText);
- accounts[http.callbackData] = newAccount;
- mailboxTree.addMailAccount(newAccount);
- mailboxTree.pendingRequests--;
- activeAjaxRequests--;
- if (!mailboxTree.pendingRequests) {
- updateMailboxTreeInPage();
- updateMailboxMenus();
- checkAjaxRequestsState();
+ if (http.responseText.length > 0) {
+ var newAccount = buildMailboxes(http.callbackData,
+ http.responseText);
+ accounts[http.callbackData] = newAccount;
+ mailboxTree.addMailAccount(newAccount);
+ mailboxTree.pendingRequests--;
+ activeAjaxRequests--;
+ if (!mailboxTree.pendingRequests) {
+ updateMailboxTreeInPage();
+ updateMailboxMenus();
+ checkAjaxRequestsState();
+ }
}
}
var counter = 0;
var currentRow = $('row_' + counter);
while (currentRow && !stop) {
- var currentValue = $(currentRow.childNodesWithTag("span")[1]).childNodesWithTag("input")[0].value;
+ var currentValue = $(currentRow.childNodesWithTag("td")[1]).childNodesWithTag("input")[0].value;
if (currentValue == neededOptionValue) {
stop = true;
insertContact($("addr_" + counter), contactName, contactEmail);
if (!stop) {
fancyAddRow(false, "");
- $("row_" + counter).childNodesWithTag("span")[0].childNodesWithTag("select")[0].value
+ $($("row_" + counter).childNodesWithTag("td")[0]).childNodesWithTag("select")[0].value
= neededOptionValue;
insertContact($("addr_" + counter), contactName, contactEmail);
+ onWindowResize(null);
}
}
}