0,0 → 1,23 |
function onLoadOptions() { |
var prefs = new MoveToFolderPrefs(); |
|
var toFolderPopup = document.getElementById('toFolderPopup').tree; |
toFolderPopup.database.AddDataSource( |
Components.classes["@mozilla.org/rdf/datasource;1?name=msgaccountmanager"].createInstance()); |
toFolderPopup.database.AddDataSource( |
Components.classes["@mozilla.org/rdf/datasource;1?name=mailnewsfolders"].getService()); |
toFolderPopup.setAttribute("ref", "msgaccounts:/"); |
|
SetFolderPicker(prefs.getToFolderURI(), "toFolder"); |
} |
|
function onSaveOptions() { |
var prefs = new MoveToFolderPrefs(); |
|
prefs.setToFolderURI(document.getElementById("toFolder").getAttribute("uri")); |
} |
|
function onSelectFolder(menulist, folderName) { |
SetFolderPicker(menulist.getAttribute("uri"), folderName); |
} |
|