* load pref ximfmail settings\r
*/ \r
function onInit(aPageId, aServerId){\r
+ \r
+ if(gXimfmailIdentity == null){\r
+ // no account id (local folder)\r
+ $("#checkListTheme").attr("checked", "false");\r
+ UseXimfmail();\r
+ $("#checkListTheme").attr("disabled", "true"); \r
+ return; \r
+ }\r
+ $("#checkListTheme").removeAttr("disabled");\r
+ \r
//get XIMF instances of profile for account\r
CreateXimfmailCatalog();\r
var listInstances = document.getElementById("listThemPopup"); \r
* save all changes on this page\r
*/\r
function onSave(){\r
+ if(gXimfmailIdentity == null)return;\r
// save ximfmail selection to preferences\r
SetXimfmailPref(gXimfmailIdentity.key, "ximfmail_theme_ref", $("#listTheme").attr("value"));\r
SetXimfmailPref(gXimfmailIdentity.key, "ximfmail_theme_name", $("#listTheme").attr("label"));\r