rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
{ if (appCore != null) { appCore.SetDocumentCharset(aCharset); window.content.location.reload(); } else { dump("BrowserAppCore has not been created!\n"); }
{ if (appCore != null) { appCore.SetDocumentCharset(aCharset); window.content.location.reload();
function BrowserSetDefaultCharacterSet(aCharset) { if (appCore != null) { appCore.SetDocumentCharset(aCharset); window.content.location.reload(); } else { dump("BrowserAppCore has not been created!\n"); } }
}
function BrowserSetDefaultCharacterSet(aCharset) { if (appCore != null) { appCore.SetDocumentCharset(aCharset); window.content.location.reload(); } else { dump("BrowserAppCore has not been created!\n"); } }
dump("Setting forward menu item enabled\n");
function BrowserSetForward() { var forwardBElem = document.getElementById("canGoForward"); if (!forwardBElem) { dump("Couldn't obtain handle to forward Broarcast element\n"); return; } var canForward = forwardBElem.getAttribute("disabled"); var fb = document.getElementById("forward-button"); ...
try { if (makeURL(uriToLoad).schemeIs("chrome")) { dump("*** Preventing external load of chrome: URI into browser window\n"); dump(" Use -chrome <uri> instead\n"); window.close(); return; } } catch(e) {}
function BrowserStartup(){ gBrowser = document.getElementById("content"); window.tryToClose = WindowIsClosing; var uriToLoad = null; // Check for window.arguments[0]. If present, use that for uriToLoad. if ("arguments" in window && window.arguments.length >= 1 && window.arguments[0]) uriToLoad = window.argument...
getWebNavigation().stop();
getWebNavigation().stop(nsIWebNavigation.STOP_ALL);
function BrowserStop(){ getWebNavigation().stop();}
getWebNavigation().stop();
const stopFlags = nsIWebNavigation.STOP_ALL; getWebNavigation().stop(stopFlags);
function BrowserStop(){ try { getWebNavigation().stop(); } catch(ex) { }}
var stopBElem = document.getElementById("canStop"); if (!stopBElem) { dump("Couldn't obtain handle to stop Broadcast element\n"); return; } var canStop = stopBElem.getAttribute("disabled"); var sb = document.getElementById("stop-button"); if (!sb) { dump("Could not obtain handle to stop button\n"); return; }
if(!stopButton) stopButton = document.getElementById("stop-button");
function BrowserStop() { // Get a handle to the "canStop" broadcast id var stopBElem = document.getElementById("canStop"); if (!stopBElem) { dump("Couldn't obtain handle to stop Broadcast element\n"); return; } var canStop = stopBElem.getAttribute("disabled"); var sb = document.ge...
if ((sb.getAttribute("disabled")) == "true") { return; }
if ((stopButton.getAttribute("disabled")) == "true") return;
function BrowserStop() { // Get a handle to the "canStop" broadcast id var stopBElem = document.getElementById("canStop"); if (!stopBElem) { dump("Couldn't obtain handle to stop Broadcast element\n"); return; } var canStop = stopBElem.getAttribute("disabled"); var sb = document.ge...
sb.setAttribute("disabled", "true"); var sm = document.getElementById("menuitem-stop"); if (!sm) { dump("Couldn't obtain menu item Stop\n"); } else { sm.setAttribute("disabled", "true"); }
function BrowserStop() { // Get a handle to the "canStop" broadcast id var stopBElem = document.getElementById("canStop"); if (!stopBElem) { dump("Couldn't obtain handle to stop Broadcast element\n"); return; } var canStop = stopBElem.getAttribute("disabled"); var sb = document.ge...
if (appCore != null) { dump("Going to Stop\n"); appCore.stop(); } else { dump("BrowserAppCore has not been created!\n"); }
appCore.stop();
function BrowserStop() { // Get a handle to the "canStop" broadcast id var stopBElem = document.getElementById("canStop"); if (!stopBElem) { dump("Couldn't obtain handle to stop Broadcast element\n"); return; } var canStop = stopBElem.getAttribute("disabled"); var sb = document.ge...
function BrowserStop() { var stopBElem = document.getElementById("canStop"); if (!stopBElem) { dump("Couldn't obtain handle to stop Broadcast element\n"); return; }
function BrowserStop() { var stopBElem = document.getElementById("canStop"); if (!stopBElem) return; var canStop = stopBElem.getAttribute("disabled");
function BrowserStop() { // Get a handle to the "canStop" broadcast id var stopBElem = document.getElementById("canStop"); if (!stopBElem) { dump("Couldn't obtain handle to stop Broadcast element\n"); return; } var canStop = stopBElem.getAttribute("disabled"); var sb = document.ge...
var canStop = stopBElem.getAttribute("disabled"); var sb = document.getElementById("stop-button"); if (!sb) { dump("Could not obtain handle to stop button\n"); return; }
var sb = document.getElementById("stop-button"); if (!sb) return; if ( sb.getAttribute("disabled") == "true") return; sb.setAttribute("disabled", "true");
function BrowserStop() { // Get a handle to the "canStop" broadcast id var stopBElem = document.getElementById("canStop"); if (!stopBElem) { dump("Couldn't obtain handle to stop Broadcast element\n"); return; } var canStop = stopBElem.getAttribute("disabled"); var sb = document.ge...
if ((sb.getAttribute("disabled")) == "true") { return; } sb.setAttribute("disabled", "true");
var sm = document.getElementById("menuitem-stop"); if( sm ) sm.setAttribute("disabled", "true");
function BrowserStop() { // Get a handle to the "canStop" broadcast id var stopBElem = document.getElementById("canStop"); if (!stopBElem) { dump("Couldn't obtain handle to stop Broadcast element\n"); return; } var canStop = stopBElem.getAttribute("disabled"); var sb = document.ge...
var sm = document.getElementById("menuitem-stop"); if (!sm) { dump("Couldn't obtain menu item Stop\n"); } else { sm.setAttribute("disabled", "true"); } if (appCore != null) { dump("Going to Stop\n"); appCore.stop(); } else { dump("BrowserAppCore has not been created!\n"); } }
if (appCore != null) appCore.stop(); }
function BrowserStop() { // Get a handle to the "canStop" broadcast id var stopBElem = document.getElementById("canStop"); if (!stopBElem) { dump("Couldn't obtain handle to stop Broadcast element\n"); return; } var canStop = stopBElem.getAttribute("disabled"); var sb = document.ge...
#ifdef XP_MACOSX if (!getBoolPref("ui.click_hold_context_menus", false)) SetClickAndHoldHandlers(); #endif
function BrowserToolboxCustomizeDone(aToolboxChanged){ // Update global UI elements that may have been added or removed if (aToolboxChanged) { gURLBar = document.getElementById("urlbar"); if (gURLBar) gURLBar.clickSelectsAll = gClickSelectsAll; gProxyButton = document.getElementById("page-proxy-button")...
#endif
function BrowserToolboxCustomizeDone(aToolboxChanged){ // Update global UI elements that may have been added or removed if (aToolboxChanged) { gURLBar = document.getElementById("urlbar"); gURLBarContainer = document.getElementById("urlbar-container"); if (gURLBar) gURLBar.clickSelectsAll = gClickSelects...
gURLBarContainer = document.getElementById("urlbar-container");
function BrowserToolboxCustomizeDone(aToolboxChanged){ // Update global UI elements that may have been added or removed if (aToolboxChanged) { gURLBar = document.getElementById("urlbar"); if (gURLBar) gURLBar.clickSelectsAll = gClickSelectsAll; gProxyButton = document.getElementById("page-proxy-button")...
document.getElementById("cmd_newNavigatorTab").removeAttribute("disabled"); getBrowser()._blockDblClick = false;
function BrowserToolboxCustomizeDone(aToolboxChanged){#ifdef TOOLBAR_CUSTOMIZATION_SHEET document.getElementById("customizeToolbarSheetBox").hidden = true; document.getElementById("cmd_newNavigatorTab").removeAttribute("disabled"); getBrowser()._blockDblClick = false;#endif // Update global UI elements that may hav...
if (gURLBar) gURLBar.clickSelectsAll = gClickSelectsAll;
function BrowserToolboxCustomizeDone(aToolboxChanged){ // Update global UI elements that may have been added or removed if (aToolboxChanged) { gURLBar = document.getElementById("urlbar"); gProxyButton = document.getElementById("page-proxy-button"); gProxyFavIcon = document.getElementById("page-proxy-favicon"...
function BrowserViewDownload() { document.getElementById("toolbar-download").collapsed=!document.getElementById("toolbar-download").collapsed; if(document.getElementById("toolbar-download").collapsed && document.getElementById("command_ViewDownload").getAttribute("checked")=="true") { document.getElementById("command_...
function BrowserViewDownload(cMode) { document.getElementById("toolbar-download").collapsed=!cMode;
function BrowserViewDownload() { document.getElementById("toolbar-download").collapsed=!document.getElementById("toolbar-download").collapsed; if(document.getElementById("toolbar-download").collapsed && document.getElementById("command_ViewDownload").getAttribute("checked")=="true") { document.getElementById("comman...
document.getElementById("browserleftbar").collapsed=!document.getElementById("browserleftbar").collapsed;
var wholeHomebarState = document.getElementById("browserleftbar").collapsed; document.getElementById("browserleftbar").collapsed = !wholeHomebarState; if(!wholeHomebarState) { document.getElementById("homebarcontainer").style.display="block"; }
function BrowserViewHomebar() { document.getElementById("browserleftbar").collapsed=!document.getElementById("browserleftbar").collapsed;}
{ dump("BrowserViewSource(); \n "); window.openDialog( "chrome: "_blank", "chrome,menubar,status,dialog=no,resizable", window.content.location, "view-source" ); }
{ window.openDialog( "chrome: "_blank", "chrome,menubar,status,dialog=no,resizable", window.content.location, "view-source" ); }
function BrowserViewSource() { dump("BrowserViewSource(); \n "); // Use a browser window to view source window.openDialog( "chrome://navigator/content/", "_blank", "chrome,menubar,status,dialog=no,resizable", window.content.location, ...
win = _content;
win = content;
function BrowserViewSourceOfDocument(aDocument){ var docCharset; var pageCookie; var webNav; // Get the document charset docCharset = "charset=" + aDocument.characterSet; // Get the nsIWebNavigation associated with the document try { var win; var ifRequestor; // Get the DOMWindow for the requested...
this.webNavigation.loadURI(aURL, nsIWebNavigation.LOAD_FLAGS_NONE);
this.webNavigation.loadURI(aURL, nsIWebNavigation.LOAD_FLAGS_NONE, null, null, null);
browseToURL: function(aURL) { this.webNavigation.loadURI(aURL, nsIWebNavigation.LOAD_FLAGS_NONE); },
{ BulletStyleLabel.value = label; if (BulletStyleLabel.hasChildNodes()) { BulletStyleLabel.removeChild(BulletStyleLabel.firstChild); } var textNode = document.createTextNode(label); BulletStyleLabel.appendChild(textNode); }
BulletStyleLabel.setAttribute("value",label);
function BuildBulletStyleList(){ ClearList(BulletStyleList); var label = ""; var selectedIndex = -1; //dump("List Type: "+ListType+" globalElement: "+globalElement+"\n"); if (ListType == "ul") { BulletStyleList.removeAttribute("disabled"); BulletStyleLabel.removeAttribute("disabled"); StartingNumberInput...
if (ListStyle == "ul")
dump("List Type: "+ListType+" globalElement: "+globalElement+"\n"); if (ListType == "ul")
function BuildBulletStyleList(){ // Put methods on the object if I can figure out its name! // (SELECT and HTMLSelect don't work!) //BulletStyleList.clear(); ClearList(BulletStyleList); var label = ""; var selectedIndex = -1; if (ListStyle == "ul") { BulletStyleList.removeAttribute("disabled"); BulletSt...
AppendStringToListByID(BulletStyleList,"OpenSquare");
AppendStringToListByID(BulletStyleList,"SolidSquare");
function BuildBulletStyleList(){ // Put methods on the object if I can figure out its name! // (SELECT and HTMLSelect don't work!) //BulletStyleList.clear(); ClearList(BulletStyleList); var label = ""; var selectedIndex = -1; if (ListStyle == "ul") { BulletStyleList.removeAttribute("disabled"); BulletSt...
ListStyleList.selectedIndex = 1; } else if (ListStyle == "ol")
ListTypeList.selectedIndex = 1; } else if (ListType == "ol")
function BuildBulletStyleList(){ // Put methods on the object if I can figure out its name! // (SELECT and HTMLSelect don't work!) //BulletStyleList.clear(); ClearList(BulletStyleList); var label = ""; var selectedIndex = -1; if (ListStyle == "ul") { BulletStyleList.removeAttribute("disabled"); BulletSt...
ListStyleList.selectedIndex = 2; } else {
ListTypeList.selectedIndex = 2; } else {
function BuildBulletStyleList(){ // Put methods on the object if I can figure out its name! // (SELECT and HTMLSelect don't work!) //BulletStyleList.clear(); ClearList(BulletStyleList); var label = ""; var selectedIndex = -1; if (ListStyle == "ul") { BulletStyleList.removeAttribute("disabled"); BulletSt...
if (ListStyle == "dl") ListStyleList.selectedIndex = 3;
if (ListType == "dl") ListTypeList.selectedIndex = 3;
function BuildBulletStyleList(){ // Put methods on the object if I can figure out its name! // (SELECT and HTMLSelect don't work!) //BulletStyleList.clear(); ClearList(BulletStyleList); var label = ""; var selectedIndex = -1; if (ListStyle == "ul") { BulletStyleList.removeAttribute("disabled"); BulletSt...
ListStyleList.selectedIndex = 0;
ListTypeList.selectedIndex = 0;
function BuildBulletStyleList(){ // Put methods on the object if I can figure out its name! // (SELECT and HTMLSelect don't work!) //BulletStyleList.clear(); ClearList(BulletStyleList); var label = ""; var selectedIndex = -1; if (ListStyle == "ul") { BulletStyleList.removeAttribute("disabled"); BulletSt...
}
function BuildBulletStyleList(){ // Put methods on the object if I can figure out its name! // (SELECT and HTMLSelect don't work!) //BulletStyleList.clear(); ClearList(BulletStyleList); var label = ""; var selectedIndex = -1; if (ListStyle == "ul") { BulletStyleList.removeAttribute("disabled"); BulletSt...
ClearList(BulletStyleList);
ClearMenulist(BulletStyleList);
function BuildBulletStyleList(){ ClearList(BulletStyleList); var label = ""; var selectedIndex = -1; //dump("List Type: "+ListType+" globalElement: "+globalElement+"\n"); if (ListType == "ul") { BulletStyleList.removeAttribute("disabled"); BulletStyleLabel.removeAttribute("disabled"); StartingNumberInput...
dump("List Type: "+ListType+" globalElement: "+globalElement+"\n");
function BuildBulletStyleList(){ ClearList(BulletStyleList); var label = ""; var selectedIndex = -1; //dump("List Type: "+ListType+" globalElement: "+globalElement+"\n"); if (ListType == "ul") { BulletStyleList.removeAttribute("disabled"); BulletStyleLabel.removeAttribute("disabled"); StartingNumberInput...
AppendStringToListByID(BulletStyleList,"SolidCircle"); AppendStringToListByID(BulletStyleList,"OpenCircle"); AppendStringToListByID(BulletStyleList,"SolidSquare");
AppendStringToMenulistById(BulletStyleList,"SolidCircle"); AppendStringToMenulistById(BulletStyleList,"OpenCircle"); AppendStringToMenulistById(BulletStyleList,"SolidSquare");
function BuildBulletStyleList(){ ClearList(BulletStyleList); var label = ""; var selectedIndex = -1; //dump("List Type: "+ListType+" globalElement: "+globalElement+"\n"); if (ListType == "ul") { BulletStyleList.removeAttribute("disabled"); BulletStyleLabel.removeAttribute("disabled"); StartingNumberInput...
AppendStringToListByID(BulletStyleList,"Style_1"); AppendStringToListByID(BulletStyleList,"Style_I"); AppendStringToListByID(BulletStyleList,"Style_i"); AppendStringToListByID(BulletStyleList,"Style_A"); AppendStringToListByID(BulletStyleList,"Style_a");
AppendStringToMenulistById(BulletStyleList,"Style_1"); AppendStringToMenulistById(BulletStyleList,"Style_I"); AppendStringToMenulistById(BulletStyleList,"Style_i"); AppendStringToMenulistById(BulletStyleList,"Style_A"); AppendStringToMenulistById(BulletStyleList,"Style_a");
function BuildBulletStyleList(){ ClearList(BulletStyleList); var label = ""; var selectedIndex = -1; //dump("List Type: "+ListType+" globalElement: "+globalElement+"\n"); if (ListType == "ul") { BulletStyleList.removeAttribute("disabled"); BulletStyleLabel.removeAttribute("disabled"); StartingNumberInput...
var bx = this.mTree.boxObject.QueryInterface(Components.interfaces.nsITreeBoxObject); setTimeout(function(a) { a.invalidate() }, 1, bx);
buildContent: function() { this.mTreeBody.builder.rebuild(); },
var bx = this.mTree.boxObject.QueryInterface(Components.interfaces.nsITreeBoxObject); setTimeout(function(a) { a.invalidate() }, 1, bx);
buildContent: function() { this.mTreeBody.builder.rebuild(); var bx = this.mTree.boxObject.QueryInterface(Components.interfaces.nsITreeBoxObject); setTimeout(function(a) { a.invalidate() }, 1, bx); },
var name = document.popupNode.getAttribute("name");
var selectedItem = gExtensionsView.selected; var name = selectedItem ? selectedItem.getAttribute("name") : "";
function buildContextMenu(aEvent){ if (aEvent.target.id != "extensionContextMenu") return false; var popup = document.getElementById("extensionContextMenu"); while (popup.hasChildNodes()) popup.removeChild(popup.firstChild); var isExtensions = gWindowState == "extensions"; var menus = isExtensions ? gExt...
if (useSmallIcons)
if (useSmallIcons.checked)
function buildDialog(){ var toolbar = window.opener.document.getElementById("nav-bar"); var useSmallIcons = document.getElementById("smallicons"); var iconSize = toolbar.getAttribute("iconsize"); useSmallIcons.checked = (iconSize == "small"); var modeList = document.getElementById("modelist"); var modeValue = too...
AddTreeItem ( name, value, "HTMLAList", HTMLAttrs );
if (name.indexOf("_moz") != 0) AddTreeItem ( name, value, "HTMLAList", HTMLAttrs );
function BuildHTMLAttributeTable(){ var nodeMap = element.attributes; if(nodeMap.length > 0) { for(i = 0; i < nodeMap.length; i++) { if ( !CheckAttributeNameSimilarity( nodeMap[i].nodeName, JSEAttrs ) || IsEventHandler( nodeMap[i].nodeName ) || TrimString( nodeMap[i].nodeName.toLowerCase(...
},
}
buildLinks: function() { // assert the handler resource var mimeSource = gRDF.GetResource(MIME_URI(this.mimeType)); var handlerProperty = gRDF.GetResource(NC_RDF("handlerProp")); var handlerResource = gRDF.GetResource(HANDLER_URI(this.mimeType)); gDS.Assert(mimeSource, handlerProperty, handlerResource...
var prettyPrintBox = document.getElementById("prettyPrintTree"); var tree = document.createElement("tree"); prettyPrintBox.appendChild(tree); var treeChildren = addChildrenToTree(tree,"Top Level"); var childOfFirstChild = addChildrenToTree(treeChildren, "Second Level:1"); var levelone2 = addChildrenToTree(treeChildren,...
var certDumpOutliner = Components.classes[nsASN1Outliner]. createInstance(nsIASN1Outliner); certDumpOutliner.loadASN1Structure(cert.ASN1Structure); document.getElementById('prettyDumpOutliner'). outlinerBoxObject.view = certDumpOutliner;
function BuildPrettyPrint(cert){ // For now, I'm just gonna build some dummy stuff // just to get the helper functions I need up and // running. var prettyPrintBox = document.getElementById("prettyPrintTree"); var tree = document.createElement("tree"); prettyPrintBox.appendChild(tree); var treeChildren = addChil...
try { historyCount = gPrefs.GetIntPref("editor.history.url_maximum"); } catch(e) {}
try { historyCount = gPrefs.getIntPref("editor.history.url_maximum"); } catch(e) {}
function BuildRecentMenu(savePrefs){ // Can't do anything if no prefs if (!gPrefs) return; var popup = document.getElementById("menupopup_RecentFiles"); if (!popup || !window.editorShell || !window.editorShell.editorDocument) return; // Delete existing menu while (popup.firstChild) popup.removeChild(po...
if (savePrefs) gPrefs.savePrefFile(null);
if (savePrefs) { var prefsService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefService); prefsService.savePrefFile(null); }
function BuildRecentMenu(savePrefs){ // Can't do anything if no prefs if (!gPrefs) return; var popup = document.getElementById("menupopup_RecentFiles"); if (!popup || !window.editorShell || !window.editorShell.editorDocument) return; // Delete existing menu while (popup.firstChild) popup.removeChild(po...
if (found) continue; var listitem = document.createElementNS("http: "listitem"); listitem.setAttribute("label", gPageReport[i]); gSiteBox.appendChild(listitem);
if (!found) gSiteBox.appendItem(gPageReport[i]);
function buildSiteBox(){ for (var i = 0; i < gPageReport.length; i++) { var found = false; for (var j = 0; j < gSiteBox.childNodes.length; j++) { if (gSiteBox.childNodes[j].label == gPageReport[i]) { found = true; break; } } if (found) continue; var listitem = document.createElem...
cell.setAttribute("value", "?" + val);
cell.setAttribute("label", "?" + val);
buildTemplate: function() { var cols = this.mColumns; var bindings = this.mBindings; var row = this.mTreeRow; var cell, binding, val, extras, attrs, key, className; if (this.mIsIconic) { binding = this.createBinding("_icon"); bindings.appendChild(binding); } for (var i = 0; i <...
cell.setAttribute("value", val);
cell.setAttribute("label", val);
buildTreeHead: function() { var cols = this.mColumns; var row = this.mTreeHeadRow; var cell, val; for (var i = 0; i < cols.length; i++) { cell = document.createElementNS(kXULNSURI, "treecell"); cell.setAttribute("class", "treecell-header"); val = cols[i].title; if (val) cell.se...
var columnName = currTreeCol.getAttribute("value");
var columnName = currTreeCol.getAttribute("label");
function BuildTreePopup( treeColGroup, treeHeadRow, popup, skipCell ){ var popupChild = popup.firstChild; var firstTime = !popupChild ? true : false; var currTreeCol = treeHeadRow.firstChild; var currColNode = treeColGroup.firstChild; var count = 0; while (currTreeCol) { if (currColNode.localName == "splitter"...
popupChild.setAttribute("value", columnName);
popupChild.setAttribute("label", columnName);
function BuildTreePopup( treeColGroup, treeHeadRow, popup, skipCell ){ var popupChild = popup.firstChild; var firstTime = !popupChild ? true : false; var currTreeCol = treeHeadRow.firstChild; var currColNode = treeColGroup.firstChild; var count = 0; while (currTreeCol) { if (currColNode.localName == "splitter"...
popupChild.setAttribute("value", display);
popupChild.setAttribute("label", display);
function BuildTreePopup( treeColGroup, treeHeadRow, popup, skipCell ){ var popupChild = popup.firstChild; var firstTime = !popupChild ? true : false; var currTreeCol = treeHeadRow.firstChild; var currColNode = treeColGroup.firstChild; var count = 0; while (currTreeCol) { if (currColNode.localName == "splitter"...
this.caption = MSG_VIEW_BREAKS;
function bv_init (){ console.menuSpecs["context:breaks"] = { getContext: this.getContext, items: [ ["find-url"], ["-"], ["clear-break", { enabledif: "has('hasBreak')" }], ["clear-fbreak", { enabledif: "has('hasFBreak')" }], ["-"], ["clear-all"], ...
edit_toggle=toggle;
var edit_toggle=toggle;
function ca_enableButtons(){ var items = caOutlinerView.selection; var nr = items.getRangeCount(); var toggle="false"; if (nr == 0) { toggle="true"; } edit_toggle=toggle;/* var edit_toggle="true"; if (nr > 0) { for (var i=0; i<nr; i++) { var o1 = {}; var o2 = {}; items.getRangeAt(i, o1, o2)...
this.mObserverHelper = new calCompositeCalendarObserverHelper();
function calCompositeCalendar () { this.wrappedJSObject = this;}
this.mObservers = [ ];
this.mObservers = Array();
function calDavCalendar() { this.wrappedJSObject = this; this.mObservers = [ ];}
containerName = ThisCalendarObject.Id.split(':')[2];
var containerName = ThisCalendarObject.Id.split(':')[2];
function calendarColorStyleRuleUpdate( ThisCalendarObject ){ var j = -1; var i; // obtain calendar name from the Id containerName = ThisCalendarObject.Id.split(':')[2]; var tempStyleSheets = document.styleSheets; for (i=0; i<tempStyleSheets.length; i++) { if (tempStyleSheets[i].href.match(/chrome....
#ifdef MOZILLA_1_8_BRANCH
function CalendarCustomizeToolbar(){ // Disable the toolbar context menu items var menubar = document.getElementById("main-menubar"); for (var i = 0; i < menubar.childNodes.length; ++i) menubar.childNodes[i].setAttribute("disabled", true); var cmd = document.getElementById("cmd_CustomizeToolbars"); cmd.setA...
#else window.openDialog("chrome: "chrome,all,dependent", document.getElementById("calendar-toolbox")); #endif
function CalendarCustomizeToolbar(){ // Disable the toolbar context menu items var menubar = document.getElementById("main-menubar"); for (var i = 0; i < menubar.childNodes.length; ++i) menubar.childNodes[i].setAttribute("disabled", true); var cmd = document.getElementById("cmd_CustomizeToolbars"); cmd.setA...
calListItems[i+1].childNodes[0].setAttribute("class", "calendar-list-item-class " + containerName);
var calListItem = calListItems[i+1]; if (calListItem && calListItem.childNodes[0]) { calListItem.childNodes[0].setAttribute("class", "calendar-list-item-class " + containerName); }
function calendarInit() { // get the calendar event data source gEventSource = new CalendarEventDataSource(); // get the Ical Library gICalLib = gEventSource.getICalLib(); // this suspends feedbacks to observers until all is settled gICalLib.batchMode = true; // set up the CalendarWindow instance ...
if (lightness < 120)
if (lightness < 120) {
function calendarInit() { // get the calendar event data source gEventSource = new CalendarEventDataSource(); // get the Ical Library gICalLib = gEventSource.getICalLib(); // this suspends feedbacks to observers until all is settled gICalLib.batchMode = true; // set up the CalendarWindow instance ...
} else { gCalendarStyleSheet.insertRule("." + containerName + " { color:" + " black" + "!important;}", 1); }
function calendarInit() { // get the calendar event data source gEventSource = new CalendarEventDataSource(); // get the Ical Library gICalLib = gEventSource.getICalLib(); // this suspends feedbacks to observers until all is settled gICalLib.batchMode = true; // set up the CalendarWindow instance ...
calListItems[i+1].childNodes[0].setAttribute("class", "calendar-list-item-class " + containerName); }
function calendarInit() { // get the calendar event data source gEventSource = new CalendarEventDataSource(); // get the Ical Library gICalLib = gEventSource.getICalLib(); // this suspends feedbacks to observers until all is settled gICalLib.batchMode = true; // set up the CalendarWindow instance ...
if (("arguments" in window) && (window.arguments.length) && (typeof(window.arguments[0]) == "object") && ("channel" in window.arguments[0]) ) { gCalendarWindow.calendarManager.checkCalendarURL( window.arguments[0].channel ); }
function calendarInit() { // set up the CalendarWindow instance gCalendarWindow = new CalendarWindow(); // Set up the checkbox variables. Do not use the typical change*() functions // because those will actually toggle the current value. if (document.getElementById("toggle_workdays_only").getAttribute("ch...
this.username = "";
function CalendarObject(){ this.path = ""; this.serverNumber = 0; this.name = ""; this.remote = false; this.remotePath = ""; this.active = false; this.username = ""; this.color = ""; this.password = ""; this.publishAutomatically = false;}
this.password = "";
function CalendarObject(){ this.path = ""; this.serverNumber = 0; this.name = ""; this.remote = false; this.remotePath = ""; this.active = false; this.username = ""; this.color = ""; this.password = ""; this.publishAutomatically = false;}
function getDefaultCategories() { try { var categoriesStringBundle = srGetStrBundle("chrome: return categoriesStringBundle.GetStringFromName("categories" ); } catch(e) { return "" } }
function calendarPreferences( CalendarWindow ){ function getDefaultCategories() { try { var categoriesStringBundle = srGetStrBundle("chrome://calendar/locale/categories.properties"); return categoriesStringBundle.GetStringFromName("categories" ); } catch(e) { return "" } } wi...
try { this.loadPreferences(); } catch(e) { this.calendarPref.setBoolPref( "alarms.show", true ); this.calendarPref.setBoolPref( "alarms.playsound", false ); this.calendarPref.setIntPref( "date.format", 0 ); this.calendarPref.setIntPref( "week.start", 0 ); this.calendarPref.setIntPref( "event.defaultlength", 60 ); this....
this.loadPreferences();
function calendarPreferences( CalendarWindow ){ function getDefaultCategories() { try { var categoriesStringBundle = srGetStrBundle("chrome://calendar/locale/categories.properties"); return categoriesStringBundle.GetStringFromName("categories" ); } catch(e) { return "" } } wi...
function calendarPublish(aDataString, newLocation, login, password, contentType)
function calendarPublish(aDataString, newLocation, contentType)
function calendarPublish(aDataString, newLocation, login, password, contentType){ try { var protocolChannel = get_destination_channel(newLocation, login, password); if (!protocolChannel) { dump("failed to get a destination channel\n"); return; } output_string_to_channel(protocolChannel, aData...
var protocolChannel = get_destination_channel(newLocation, login, password);
var protocolChannel = get_destination_channel(newLocation);
function calendarPublish(aDataString, newLocation, login, password, contentType){ try { var protocolChannel = get_destination_channel(newLocation, login, password); if (!protocolChannel) { dump("failed to get a destination channel\n"); return; } output_string_to_channel(protocolChannel, aData...
function calendarPublish(aDataString, newLocation, fileName, login, password, contentType)
function calendarPublish(aDataString, newLocation, login, password, contentType)
function calendarPublish(aDataString, newLocation, fileName, login, password, contentType){ try { var protocolChannel = get_destination_channel(newLocation, fileName, login, password); if (!protocolChannel) { dump("failed to get a destination channel\n"); return; } output_string_to_channel(pr...
var protocolChannel = get_destination_channel(newLocation, fileName, login, password);
var protocolChannel = get_destination_channel(newLocation, login, password);
function calendarPublish(aDataString, newLocation, fileName, login, password, contentType){ try { var protocolChannel = get_destination_channel(newLocation, fileName, login, password); if (!protocolChannel) { dump("failed to get a destination channel\n"); return; } output_string_to_channel(pr...
var SearchTree = document.getElementById( UnifinderTreeName ); SearchTree.treeBoxObject.selection.selectEventsSuppressed = true; SearchTree.onselect = null; SearchTree.removeEventListener( "select", unifinderOnSelect, true ); if( EventSelectionArray.length > 1 ) { if( gSelectAll === true ) { SearchTree.treeBoxObje...
selectSelectedEventsInTree( EventSelectionArray );
function calendarUnifinderInit( ){ var unifinderEventSelectionObserver = { onSelectionChanged : function( EventSelectionArray ) { //dump( "\nCALENDAR unifinder.js->on selection changed" ); var SearchTree = document.getElementById( UnifinderTreeName ); /* The following ...
if( gSelectAll === true ) { SearchTree.treeBoxObject.selection.selectAll( ); gSelectAll = false; }
function calendarUnifinderInit( ){ var unifinderEventSelectionObserver = { onSelectionChanged : function( EventSelectionArray ) { //dump( "\nCALENDAR unifinder.js->on selection changed" ); var SearchTree = document.getElementById( UnifinderTreeName ); /* The following ...
setTimeout( "resetSelection()", 1 );
setTimeout( "resetAllowSelection()", 1 );
function calendarUnifinderInit( ){ var unifinderEventSelectionObserver = { onSelectionChanged : function( EventSelectionArray ) { //dump( "\nCALENDAR unifinder.js->on selection changed" ); var SearchTree = document.getElementById( UnifinderTreeName ); /* The following ...
function calendarUploadFile(aSourceFilename, newLocation, login, password, contentType)
function calendarUploadFile(aSourceFilename, newLocation, contentType)
function calendarUploadFile(aSourceFilename, newLocation, login, password, contentType){ try { var protocolChannel = get_destination_channel(newLocation, login, password); if (!protocolChannel) { dump("failed to get a destination channel\n"); return; } output_file_to_channel...
var protocolChannel = get_destination_channel(newLocation, login, password);
var protocolChannel = get_destination_channel(newLocation);
function calendarUploadFile(aSourceFilename, newLocation, login, password, contentType){ try { var protocolChannel = get_destination_channel(newLocation, login, password); if (!protocolChannel) { dump("failed to get a destination channel\n"); return; } output_file_to_channel...
function calendarUploadFile(aSourceFilename, newLocation, fileName, login, password, contentType)
function calendarUploadFile(aSourceFilename, newLocation, login, password, contentType)
function calendarUploadFile(aSourceFilename, newLocation, fileName, login, password, contentType){ try { var protocolChannel = get_destination_channel(newLocation, fileName, login, password); if (!protocolChannel) { dump("failed to get a destination channel\n"); return; } ...
var protocolChannel = get_destination_channel(newLocation, fileName, login, password);
var protocolChannel = get_destination_channel(newLocation, login, password);
function calendarUploadFile(aSourceFilename, newLocation, fileName, login, password, contentType){ try { var protocolChannel = get_destination_channel(newLocation, fileName, login, password); if (!protocolChannel) { dump("failed to get a destination channel\n"); return; } ...
dump("done\n");
return( true );
function calendarUploadFile(aSourceFilename, newLocation, fileName, login, password, contentType){ try { var protocolChannel = get_destination_channel(newLocation, fileName, login, password); if (!protocolChannel) { dump("failed to get a destination channel\n"); return; } ...
var viewIDarray = ["day-view", "week-view", "multiweek-view", "month-view"]; for each (id in viewIDarray) { var element = document.getElementById(id); element.controller = gViewController; element.timezone = calendarDefaultTimezone(); element.displayCalendar = getDisplayComposite(); this.EventSelection.addObserver(elem...
function CalendarWindow( ){ //setup the preferences this.calendarPreferences = new calendarPreferences( this ); // miniMonth used by preferences this.miniMonth = document.getElementById( "lefthandcalendar" ); //setup the calendar event selection this.EventSelection = new CalendarEventSelection( this ); ...
EventObject.displayEndDate = new Date( tmpevent.displayDateEnd );
EventObject.displayEndDate = new Date( tmpevent.displayEndDate );
CalendarEventDataSource.prototype.getEventsForDay = function calEvent_getEventsForDay( date ){ var eventDisplays = new Array(); var displayDates = new Object(); var eventList = this.gICalLib.getEventsForDay( date, displayDates ); while( eventList.hasMoreElements() ) { var tmpevent = eventList.get...
EventObject.displayEndDate = new Date( tmpevent.displayDateEnd );
EventObject.displayEndDate = new Date( tmpevent.displayEndDate );
CalendarEventDataSource.prototype.getEventsForMonth = function calEvent_getEventsForMonth( date ){ var eventDisplays = new Array(); var displayDates = new Object(); var eventList = this.gICalLib.getEventsForMonth( date, displayDates ); while( eventList.hasMoreElements() ) { var tmpevent = eventLi...
EventObject.displayEndDate = new Date( tmpevent.displayDateEnd );
EventObject.displayEndDate = new Date( tmpevent.displayEndDate );
CalendarEventDataSource.prototype.getEventsForWeek = function calEvent_getEventsForWeek( date ){ var eventDisplays = new Array(); var displayDates = new Object(); var eventList = this.gICalLib.getEventsForWeek( date, displayDates ); while( eventList.hasMoreElements() ) { var tmpevent = eventList....
EventObject.displayEndDate = displayDateEnd;
EventObject.displayEndDate = displayEndDate;
CalendarEventDataSource.prototype.getNextEvents = function calEvent_getNextEvents( EventsToGet ){ var eventDisplays = new Array(); var today = new Date(); var displayDates = new Object(); var eventList = this.gICalLib.getNextNEvents( today, EventsToGet, displayDates ); while( eventList.hasMoreEl...
display (getMsg(MSN_ERR_INTERNAL_HOOK, h), MT_ERROR); display (formatException(ex), MT_ERROR); dd (formatException(ex), MT_ERROR);
if (e.command.name != "hook-session-display") { display (getMsg(MSN_ERR_INTERNAL_HOOK, h), MT_ERROR); display (formatException(ex), MT_ERROR); } else { dd (getMsg(MSN_ERR_INTERNAL_HOOK, h)); } dd (formatException(ex));
function callHooks (command, isBefore) { var names, hooks; if (isBefore) hooks = command.beforeHooks; else hooks = command.afterHooks; for (var h in hooks) { if ("dbgDispatch" in console && console.dbgDispatch) { ...
else dd (getStackTrace());
function callHooks (command, isBefore) { var names, hooks; if (isBefore) hooks = command.beforeHooks; else hooks = command.afterHooks; for (var h in hooks) { if ("dbgDispatch" in console && console.dbgDispatch) { ...
dump( "\n calendarManager-> add calendar "+ThisCalendarObject.path );
calendarManager.prototype.addCalendar = function calMan_addCalendar( ThisCalendarObject ){ this.CalendarWindow.eventSource.gICalLib.addCalendar( ThisCalendarObject.path ); this.CalendarWindow.calendarPreferences.calendarPref.setBoolPref( "server"+this.getCalendarIndex( ThisCalendarObject )+".active", true );}
calendarListItem.setAttribute( "id", "calendar-list-item-"+ThisCalendarObject.serverNumber );
calendarManager.prototype.addCalendarToListBox = function calMan_addCalendarToListBox( ThisCalendarObject ){ var calendarListItem = document.createElement( "listitem" ); calendarListItem.setAttribute( "id", "calendar-list-item-"+ThisCalendarObject.serverNumber ); calendarListItem.setAttribute( "onclick", "switchC...
calendarListItem.setAttribute( "label", ThisCalendarObject.name ); calendarListItem.setAttribute( "flex", "1" );
var calendarListCell = document.createElement( "listcell" ); calendarListCell.setAttribute( "id", "calendar-list-item-"+ThisCalendarObject.serverNumber ); calendarListCell.setAttribute( "class", "calendar-list-item-class" ); calendarListCell.setAttribute( "src", "chrome: calendarListCell.setAttribute( "label", ThisCale...
calendarManager.prototype.addCalendarToListBox = function calMan_addCalendarToListBox( ThisCalendarObject ){ var calendarListItem = document.createElement( "listitem" ); calendarListItem.setAttribute( "id", "calendar-list-item-"+ThisCalendarObject.serverNumber ); calendarListItem.setAttribute( "onclick", "switchC...
calendarListItem.setAttribute( "calendarPath", ThisCalendarObject.path );
calendarListItem.appendChild( calendarListCell );
calendarManager.prototype.addCalendarToListBox = function calMan_addCalendarToListBox( ThisCalendarObject ){ var calendarListItem = document.createElement( "listitem" ); calendarListItem.setAttribute( "id", "calendar-list-item-"+ThisCalendarObject.serverNumber ); calendarListItem.setAttribute( "onclick", "switchC...
calendarListItem.setAttribute( "type", "checkbox" ); calendarListItem.setAttribute( "checked", ThisCalendarObject.active );
var calendarRightListCell = document.createElement( "listcell" ); var calendarImage = document.createElement( "image" ); calendarImage.setAttribute( "id", "calendar-list-image-"+ThisCalendarObject.serverNumber ); calendarImage.setAttribute( "class", "calendar-list-item-class" ); calendarRightListCell.appendChild( calen...
calendarManager.prototype.addCalendarToListBox = function calMan_addCalendarToListBox( ThisCalendarObject ){ var calendarListItem = document.createElement( "listitem" ); calendarListItem.setAttribute( "id", "calendar-list-item-"+ThisCalendarObject.serverNumber ); calendarListItem.setAttribute( "onclick", "switchC...
node.setAttribute("http: node.setAttribute("http:
calendarManager.prototype.addServerDialogResponse = function calMan_addServerDialogResponse( CalendarObject ){ var next = this.nextCalendar(); var name = "calendar"+next; CalendarObject.active = true; CalendarObject.remotePath = CalendarObject.remotePath.replace( "webcal:", "http:" ); var node = this.rootCont...
node.setAttribute("http: node.setAttribute("http:
calendarManager.prototype.addServerDialogResponse = function calMan_addServerDialogResponse( CalendarObject ){ var name = "calendar"+this.rootContainer.getSubNodes().length; CalendarObject.active = true; CalendarObject.path = CalendarObject.path.replace( "webcal:", "http:" ); var node = this.rootContain...
node.setAttribute("http:
calendarManager.prototype.addServerDialogResponse = function calMan_addServerDialogResponse( CalendarObject ){ var name = "calendar"+this.rootContainer.getSubNodes().length; CalendarObject.active = true; CalendarObject.path = CalendarObject.path.replace( "webcal:", "http:" ); var node = this.rootContain...
node.setAttribute("http: node.setAttribute("http:
calendarManager.prototype.addServerDialogResponse = function calMan_addServerDialogResponse( CalendarObject ){ var name = "calendar"+this.rootContainer.getSubNodes().length; CalendarObject.active = true; CalendarObject.path = CalendarObject.path.replace( "webcal:", "http:" ); var node = this.rootContain...
this.CalendarWindow.calendarPreferences.calendarPref.setBoolPref( "server"+CalendarObject.serverNumber+".remote", true );
this.CalendarWindow.calendarPreferences.calendarPref.setBoolPref( "server"+CalendarObject.serverNumber+".remote", CalendarObject.remote );
calendarManager.prototype.addServerDialogResponse = function calMan_addServerDialogResponse( CalendarObject ){ CalendarObject.active = true; CalendarObject.serverNumber = this.nextCalendarNumber; this.nextCalendarNumber++; CalendarObject.path = CalendarObject.path.replace( "webcal:", "http:" ); if( CalendarOb...
this.retrieveAndSaveRemoteCalendar( CalendarObject, onResponseAndRefresh );
if( CalendarObject.remote === true ) this.retrieveAndSaveRemoteCalendar( CalendarObject, onResponseAndRefresh );
calendarManager.prototype.addServerDialogResponse = function calMan_addServerDialogResponse( CalendarObject ){ CalendarObject.active = true; CalendarObject.serverNumber = this.nextCalendarNumber; this.nextCalendarNumber++; CalendarObject.path = CalendarObject.path.replace( "webcal:", "http:" ); if( CalendarOb...
document.getElementById( "calendar-list-item-"+ThisCalendarObject.serverNumber ).parentNode.removeChild( document.getElementById( "calendar-list-item-"+ThisCalendarObject.serverNumber ) );
document.getElementById( "calendar-list-item-"+ThisCalendarObject.serverNumber ).parentNode.parentNode.removeChild( document.getElementById( "calendar-list-item-"+ThisCalendarObject.serverNumber ).parentNode );
calendarManager.prototype.deleteCalendar = function calMan_deleteCalendar( ThisCalendarObject ){ this.removeCalendar( ThisCalendarObject ); //remove it from the array var index = 0; for( var i = 0; i < this.calendars.length; i++ ) { if( this.calendars[i] == ThisCalendarObject ) { index = ...
node.setAttribute("http: node.setAttribute("http:
calendarManager.prototype.editServerDialogResponse = function calMan_editServerDialogResponse( CalendarObject ){ var name = CalendarObject.Id; //get the node var node = this.rdf.getNode( name ); node.setAttribute("http://home.netscape.com/NC-rdf#username", CalendarObject.username); node.setAttribute("ht...
if( result.indexOf( "BEGIN:VCALENDAR" ) == -1 )
else if( result.indexOf( "BEGIN:VCALENDAR" ) == -1 )
calendarManager.prototype.getRemoteCalendarText = function calMan_getRemoteCalendarText( Channel, onResponse, onError ){ var Listener = { onStreamComplete: function(loader, ctxt, status, resultLength, result) { window.setCursor( "default" ); var retval = false; result = String.from...