58aeee0393
Monotone-Revision: 8c2a059d02106d28fe1332f9ecd1d7d5b75cfaeb Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-11-06T17:13:19 Monotone-Branch: ca.inverse.sogo
24 lines
568 B
JavaScript
24 lines
568 B
JavaScript
function savePreferences(sender) {
|
|
$("mainForm").submit();
|
|
|
|
return false;
|
|
}
|
|
|
|
function initPreferences() {
|
|
var identitiesBtn = $("manageIdentitiesBtn");
|
|
Event.observe(identitiesBtn, "click",
|
|
popupIdentitiesWindow.bindAsEventListener(identitiesBtn));
|
|
}
|
|
|
|
function popupIdentitiesWindow(event) {
|
|
var urlstr = UserFolderURL + "identities";
|
|
var w = window.open(urlstr, "identities",
|
|
"width=430,height=250,resizable=0,scrollbars=0,location=0");
|
|
w.opener = window;
|
|
w.focus();
|
|
|
|
preventDefault(event);
|
|
}
|
|
|
|
addEvent(window, 'load', initPreferences);
|