Fixed call to Object.toJSON for Prototype JS 1.7.

Monotone-Parent: cf0e281b1ddabaa9d9d2254c68173616e13215d0
Monotone-Revision: 49b01807f1c5d14232f8021564406a02f9736a62

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2010-11-29T14:26:10
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2010-11-29 14:26:10 +00:00
parent 3e9a276b15
commit 804e3a3c6f
2 changed files with 4 additions and 4 deletions

View File

@@ -45,7 +45,7 @@ function savePreferences(sender) {
if (isSieveScriptsEnabled) {
var jsonFilters = prototypeIfyFilters();
$("sieveFilters").setValue(jsonFilters.toJSON());
$("sieveFilters").setValue(Object.toJSON(jsonFilters));
}
saveMailAccounts();
@@ -753,7 +753,7 @@ function saveMailAccounts() {
compactMailAccounts();
var mailAccountsJSON = $("mailAccountsJSON");
mailAccountsJSON.value = mailAccounts.toJSON();
mailAccountsJSON.value = Object.toJSON(mailAccounts);
}
function compactMailAccounts() {
@@ -930,7 +930,7 @@ function serializeContactsCategories() {
values.push(td.allTextContent());
}
$("contactsCategoriesValue").value = values.toJSON();
$("contactsCategoriesValue").value = Object.toJSON(values);
}
/* / contact categories */