!import
(0 calls, 0 incl. v-uS, 0 excl. v-uS)
1 //@line 36 "/home/visbrero/mnt/roisin/rev_control/hg/mozilla/mail/extensions/newsblog/content/am-newsblog.js"
2
3 var gIncomingServer;
4
onInit
(0 calls, 0 incl. v-uS, 0 excl. v-uS)
5 function onInit()
6 {
7 // set our custom quickMode attribute
8 document.getElementById('useQuickMode').checked = gIncomingServer.getBoolAttribute("quickMode");
9 }
10
onPreInit
(0 calls, 0 incl. v-uS, 0 excl. v-uS)
11 function onPreInit(account, accountValues)
12 {
13 gIncomingServer = account.incomingServer;
14 }
15
onSave
(0 calls, 0 incl. v-uS, 0 excl. v-uS)
16 function onSave()
17 {
18 gIncomingServer.setBoolAttribute("quickMode", document.getElementById('useQuickMode').checked);
19 }
20
manageSubscriptions
(0 calls, 0 incl. v-uS, 0 excl. v-uS)
21 function manageSubscriptions()
22 {
23 // XXX: This code should be shared with the JS in toolbar-icon.xul
24 const kWindowMediatorContractID = "@mozilla.org/appshell/window-mediator;1";
25 const kWindowMediatorIID = Components.interfaces.nsIWindowMediator;
26 const kWindowMediator = Components.classes[kWindowMediatorContractID].getService(kWindowMediatorIID);
27 var lastSubscriptionWindow = kWindowMediator.getMostRecentWindow("Mail:News-BlogSubscriptions");
28
29 if (lastSubscriptionWindow)
30 lastSubscriptionWindow.focus();
31 else
32 window.openDialog("chrome://messenger-newsblog/content/feed-subscriptions.xul", "",
33 "centerscreen,chrome,dialog=no,resizable", { server: gIncomingServer});
34 }