Fixes for bug 70348 - autoconfig feature

r = bnesse, sr=alecf and a=dbaron
This commit is contained in:
mitesh%netscape.com 2006-07-29 05:37:20 +00:00
Родитель 0092a2f373
Коммит fb2b04ba40
1 изменённых файлов: 10 добавлений и 13 удалений

Просмотреть файл

@ -61,19 +61,16 @@ function setOfflineUI(offline)
//Checking for a preference "network.online", if it's locked, disabling
// network icon and menu item
try {
var prefService = Components.classes["@mozilla.org/preferences-service;1"];
prefService = prefService.getService();
prefService = prefService.QueryInterface(Components.interfaces.nsIPrefService);
var prefBranch = prefService.getBranch(null);
var offlineLocked = prefBranch.prefIsLocked("network.online");
if (offlineLocked ) {
broadcaster.setAttribute("disabled","true");
}
} catch(e) {
var prefService = Components.classes["@mozilla.org/preferences-service;1"];
prefService = prefService.getService();
prefService = prefService.QueryInterface(Components.interfaces.nsIPrefService);
var prefBranch = prefService.getBranch(null);
var offlineLocked = prefBranch.prefIsLocked("network.online");
if (offlineLocked ) {
broadcaster.setAttribute("disabled","true");
}
var bundle = srGetStrBundle("chrome://communicator/locale/utilityOverlay.properties");