rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
var strings = value.split("\n"); var i; var children = document.createElement("treechildren"); certDumpVal.appendChild(children); for (i=0;strings[i]!=null;i++) { addTreeItemToTreeChild(children,strings[i],null,false); }
certDumpVal.setAttribute("value", value); } else { certDumpVal.setAttribute("value","");
function displaySelected() { var asn1Outliner = document.getElementById('prettyDumpOutliner'). outlinerBoxObject.view.QueryInterface(nsIASN1Outliner); var items = asn1Outliner.selection; if (items.currentIndex != -1) { var certDumpVal = document.getElementById('certDumpVal'); removeChildren...
if (rec.isLoaded)
var sourceText = rec.sourceText; if (sourceText.isLoaded)
function displaySource (url, line, contextLines){ function onSourceLoaded (status) { if (status == Components.results.NS_OK) displaySource (url, line, contextLines); else display (getMsg(MSN_ERR_SOURCE_LOAD_FAILED, url), MT_ERROR); } var rec = console.scripts[url]; ...
if (i > 0 && i < rec.sourceText.length)
if (i > 0 && i < sourceText.length)
function displaySource (url, line, contextLines){ function onSourceLoaded (status) { if (status == Components.results.NS_OK) displaySource (url, line, contextLines); else display (getMsg(MSN_ERR_SOURCE_LOAD_FAILED, url), MT_ERROR); } var rec = console.scripts[url]; ...
rec.sourceText[i - 1]]),
sourceText[i - 1]]),
function displaySource (url, line, contextLines){ function onSourceLoaded (status) { if (status == Components.results.NS_OK) displaySource (url, line, contextLines); else display (getMsg(MSN_ERR_SOURCE_LOAD_FAILED, url), MT_ERROR); } var rec = console.scripts[url]; ...
rec.loadSource (onSourceLoaded);
sourceText.loadSource (onSourceLoaded);
function displaySource (url, line, contextLines){ function onSourceLoaded (status) { if (status == Components.results.NS_OK) displaySource (url, line, contextLines); else display (getMsg(MSN_ERR_SOURCE_LOAD_FAILED, url), MT_ERROR); } var rec = console.scripts[url]; ...
var line;
var sourceLine;
function displaySourceContext (sourceText, line, contextLines){ function onSourceLoaded (status) { if (status == Components.results.NS_OK) displaySourceContext (sourceText, line, contextLines); } if (sourceText.isLoaded) { for (var i = line - contextLines; i <= line + context...
line = toUnicode(sourceText.lines[i - 1],
sourceLine = toUnicode(sourceText.lines[i - 1],
function displaySourceContext (sourceText, line, contextLines){ function onSourceLoaded (status) { if (status == Components.results.NS_OK) displaySourceContext (sourceText, line, contextLines); } if (sourceText.isLoaded) { for (var i = line - contextLines; i <= line + context...
line = sourceText.lines[i - 1];
sourceLine = sourceText.lines[i - 1];
function displaySourceContext (sourceText, line, contextLines){ function onSourceLoaded (status) { if (status == Components.results.NS_OK) displaySourceContext (sourceText, line, contextLines); } if (sourceText.isLoaded) { for (var i = line - contextLines; i <= line + context...
display (getMsg(MSN_SOURCE_LINE, [zeroPad (i, 3), line]),
display (getMsg(MSN_SOURCE_LINE, [zeroPad (i, 3), sourceLine]),
function displaySourceContext (sourceText, line, contextLines){ function onSourceLoaded (status) { if (status == Components.results.NS_OK) displaySourceContext (sourceText, line, contextLines); } if (sourceText.isLoaded) { for (var i = line - contextLines; i <= line + context...
if ((navigator.platform.indexOf("Win") == -1) && (navigator.platform.indexOf("OS/2") == -1) && (navigator.platform.indexOf("Mac") == -1)) { document.getElementById("btn_openfile").hidden = true; }
document.getElementById("btn_openfile").hidden = gCannotLaunch; document.getElementById("downloadPaneContext-openfile").hidden = gCannotLaunch;
function DLManagerStartup(){ if (!window.arguments.length) return; try { var observerService = Components.classes[kObserverServiceProgID] .getService(Components.interfaces.nsIObserverService); observerService.addObserver(dlObserver, "download-starting", false); } catch ...
do_check_eq(info.username, "");
do_check_eq(info.username, prompt1.user);
function do_tests(expectedRV) { var prompt1; var wrapper; // 1: The simple case prompt1 = new Prompt1(); prompt1.rv = expectedRV; wrapper = adapter.createAdapter(prompt1); var rv = wrapper.promptAuth(chan, 0, info); do_check_eq(rv, prompt1.rv); do_check_eq(prompt1.called, CALLED_PROMPTUP); ...
document.getElementById('addButton').setAttribute('disabled', 'true');
function doAdd() { var userAddedFeed = false; var defaultQuickMode = gRSSServer.getBoolAttribute('quickMode') var feedProperties = { feedName: "", feedLocation: "", serverURI: gRSSServer.serverURI, serverPrettyName: gRSSServer.prettyName, ...
feed.download(false, finishedDownloadingFeed);
updateStatusItem('statusText', document.getElementById("bundle_newsblog").getString('subscribe-validating')); updateStatusItem('progressMeter', 0); feed.download(true, feedDownloadCallback);
function doAdd() { var userAddedFeed = false; var feedProperties = { feedName: "", feedLocation: "", result: userAddedFeed}; feedProperties = openFeedEditor(feedProperties); // if the user hit cancel, exit without doing anything if (!feedProperties.result) { debug("feedProperties.result empty\n"...
document.getElementById("AddHTMLAttributeNameInput").focus();
SetTextfieldFocus(document.getElementById("AddHTMLAttributeNameInput"));
function doAddAttribute(which){ if(which.nodeName != "tree") { var tree = which.parentNode; while ( tree.nodeName != "tree" ) { tree = tree.parentNode; // climb up the tree one notch } // now we are pointing at the tree element } else tree = which; switch(tree.id) { case "HTMLATree": docu...
document.getElementById("AddCSSAttributeNameInput").focus();
SetTextfieldFocus(document.getElementById("AddCSSAttributeNameInput"));
function doAddAttribute(which){ if(which.nodeName != "tree") { var tree = which.parentNode; while ( tree.nodeName != "tree" ) { tree = tree.parentNode; // climb up the tree one notch } // now we are pointing at the tree element } else tree = which; switch(tree.id) { case "HTMLATree": docu...
document.getElementById("AddJSEAttributeNameInput").focus();
SetTextfieldFocus(document.getElementById("AddJSEAttributeNameInput"));
function doAddAttribute(which){ if(which.nodeName != "tree") { var tree = which.parentNode; while ( tree.nodeName != "tree" ) { tree = tree.parentNode; // climb up the tree one notch } // now we are pointing at the tree element } else tree = which; switch(tree.id) { case "HTMLATree": docu...
function DoBrowserRSS() { BrowserViewRSS();
function DoBrowserRSS(sKey) { if(!sKey) BrowserViewRSS();
function DoBrowserRSS() { BrowserViewRSS(); try { if(document.getElementById("toolbar-rss-rsstag").value!="") { gRSSTag=document.getElementById("toolbar-rss-rsstag").value; } getBrowser().selectedTab = getBrowser().addTab('chrome://minimo/content/rssview/rssblank.xhtml'); browserInit(getBrowser().se...
if(document.getElementById("toolbar-rss-rsstag").value!="") {
if(sKey) { gRSSTag=sKey; } else if(document.getElementById("toolbar-rss-rsstag").value!="") {
function DoBrowserRSS() { BrowserViewRSS(); try { if(document.getElementById("toolbar-rss-rsstag").value!="") { gRSSTag=document.getElementById("toolbar-rss-rsstag").value; } getBrowser().selectedTab = getBrowser().addTab('chrome://minimo/content/rssview/rssblank.xhtml'); browserInit(getBrowser().se...
BrowserViewSearch();
function DoBrowserSearchURLBAR(vQuery) { BrowserViewSearch(); try { if(vQuery!="") { getBrowser().selectedTab = getBrowser().addTab('http://www.google.com/xhtml?q='+vQuery+'&hl=en&lr=&safe=off&btnG=Search&site=search&mrestrict=xhtml'); browserInit(getBrowser().selectedTab); } } catch (e) { } }
if ( close )
if (close && top)
function doButton2(){ var close = true; if ( doButton2Function ) close = doButton2Function(); if ( close ) top.window.close();}
if ( close )
if (close && top)
function doButton3(){ var close = true; if ( doButton3Function ) close = doButton3Function(); if ( close ) top.window.close();}
window.close();
return true;
function doCancel(){ dialogParams.SetInt(1,0); window.close();}
window.close();
return true;
function doCancel(){ dialogParams.SetInt(0,0); window.close();}
window.close();
return true;
function doCancel(){ params.SetInt(1,0); window.close();}
dialogParams.SetInt(1,0);
dialogParams.SetInt(0,0);
function doCancel(){ dialogParams.SetInt(1,0); window.close();}
return true;
function doCancel(){ dialogParams.SetInt(1,0);}
window.close();
return true;
function doCancel(){ var numberOfCerts = gParams.GetInt(0); for(var x=0; x<numberOfCerts;x++) { gParams.SetString(x+1, ""); } gParams.SetInt(1, 0); // means CANCEL window.close();}
if ( close )
if (close && top)
function doCancelButton(){ var close = true; if ( doCancelFunction ) close = doCancelFunction(); if ( close ) top.window.close();}
case "cmd_toggleWorkOffline": MsgToggleWorkOffline(); return;
doCommand: function(command) { // if the user invoked a key short cut then it is possible that we got here for a command which is // really disabled. kick out if the command should be disabled. if (!this.isCommandEnabled(command)) return; var navigationType = nsMsgNavigationType.nextUnreadMessage; switch ...
window.editorShell.SplitTableCell();
window.editorShell.SetBackgroundColor();
doCommand: function(aCommand) { window.editorShell.SplitTableCell(); window._content.focus(); }
document.getElementById("threadTree").setAttribute("focusring","true");
doCommand: function(command) { switch ( command ) { case "cmd_selectAll": var threadTree = GetThreadTree(); if ( threadTree ) { //if we're threaded we need to expand everything before selecting all if(messageView.showThreads) ExpandOrCollapseThreads(true); threadTree.selectAll(); if (...
dump("DefaultController:doCommand\n"); if (defaultController.isCommandEnabled(command)) switch (command) { case "cmd_sendNow" : SendMessage(); break; case "cmd_sendLater" : SendMessageLater(); break; case "cmd_saveDefault" : SaveAsDraft(); break; case "cmd_saveAsDraft" : SaveAsDraft(...
switch (command) { case "cmd_attachFile" : if (defaultController.isCommandEnabled(command)) AttachFile(); break; case "cmd_attachPage" : AttachPage(); break; case "cmd_close" : DoCommandClose(); break; case "cmd_saveDefault" : SaveAsDraft(); break;...
doCommand: function(command) { dump("DefaultController:doCommand\n"); /* Because disabled button still fire oncommand event, we need to test again!!! */ if (defaultController.isCommandEnabled(command)) switch (command) { case "cmd_sendNow" : SendMessage(); break; case "...
default: return; }
case "cmd_showComposeToolbar" : goToggleToolbar('composeToolbar', 'menu_showComposeToolbar'); break; case "cmd_showFormatToolbar" : goToggleToolbar('FormatToolbar', 'menu_showFormatToolbar'); break; case "cmd_selectAddress" : if (defaultController.isCommandEnabled(command)) SelectAddress(); break; de...
doCommand: function(command) { dump("DefaultController:doCommand\n"); /* Because disabled button still fire oncommand event, we need to test again!!! */ if (defaultController.isCommandEnabled(command)) switch (command) { case "cmd_sendNow" : SendMessage(); break; case "...
ifile = Components.classes["@mozilla.org/file/local;1"].createInstance().QueryInterface(Components.interfaces.nsIFile);
doCommand: function(aCommand) { // If the document hasn't been modified, // then just validate the current url. if (editorShell.documentModified || gHTMLSourceChanged) { if (!CheckAndSaveDocument("cmd_validate", false)) return; // Check if we saved again just in case? if (!DocumentH...
ioService.initFileFromURLSpec(ifile, URL2Validate);
ifile = ioService.getFileFromURLSpec(URL2Validate);
doCommand: function(aCommand) { // If the document hasn't been modified, // then just validate the current url. if (editorShell.documentModified || gHTMLSourceChanged) { if (!CheckAndSaveDocument("cmd_validate", false)) return; // Check if we saved again just in case? if (!DocumentH...
case "cmd_close": CloseMailWindow(); break;
doCommand: function(command) { // if the user invoked a key short cut then it is possible that we got here for a command which is // really disabled. kick out if the command should be disabled. if (!this.isCommandEnabled(command)) return; var navigationType = nsMsgNavigationType.nextUnreadMessage; switch ...
case "cmd_newlist": AbNewList(); break;
doCommand: function(command) { switch (command) { case "cmd_selectAll": if (gAbView) gAbView.selectAll(); break; case "cmd_delete": case "button_delete": AbDelete(); break; case "button_edit": AbEditSelectedCard(); break; case "cmd_printc...
BookmarksCommand.openBookmarkProperties(aSelection);
junk = BookmarksCommand.openBookmarkProperties(aSelection);
doCommand: function (aCommand, aSelection, aTarget) { switch (aCommand) { case "cmd_undo": case "cmd_bm_undo": BookmarksCommand.undoBookmarkTransaction(); break; case "cmd_redo": case "cmd_bm_redo": BookmarksCommand.redoBookmarkTransaction(); break; case "cmd_bm_open": Book...
case "cmd_printSetup": goPageSetup(); break;
doCommand: function(command) { // if the user invoked a key short cut then it is possible that we got here for a command which is // really disabled. kick out if the command should be disabled. if (!this.isCommandEnabled(command)) return; var navigationType = nsMsgNavigationType.nextUnreadMessage; switch ...
case "cmd_saveDefault" : SaveAsDraft(); break;
case "cmd_saveDefault" : Save(); break; case "cmd_saveAsFile" : SaveAsFile(true); break;
doCommand: function(command) { switch (command) { //File Menu case "cmd_attachFile" : if (defaultController.isCommandEnabled(command)) AttachFile(); break; case "cmd_attachPage" : AttachPage(); break; case "cmd_close" : DoCommandClose(); ...
case "cmd_printSetup" : goPageSetup(); break;
doCommand: function(command) { switch (command) { //File Menu case "cmd_attachFile" : if (defaultController.isCommandEnabled(command)) AttachFile(); break; case "cmd_attachPage" : AttachPage(); break; case "cmd_close" : DoCommandClose(); ...
case "cmd_preferences" : DoCommandPreferences(); break;
doCommand: function(command) { switch (command) { //File Menu case "cmd_attachFile" : if (defaultController.isCommandEnabled(command)) AttachFile(); break; case "cmd_attachPage" : AttachPage(); break; case "cmd_close" : DoCommandClose(); ...
case "button_junk": MsgJunk(); break;
doCommand: function(command) { // if the user invoked a key short cut then it is possible that we got here for a command which is // really disabled. kick out if the command should be disabled. if (!this.isCommandEnabled(command)) return; var navigationType = nsMsgNavigationType.nextUnreadMessage; switch ...
gGlobalHistory = Components.classes["@mozilla.org/browser/global-history;1"].getService(Components.interfaces.nsIBrowserHistory);
gGlobalHistory = Components.classes["@mozilla.org/browser/global-history;2"].getService(Components.interfaces.nsIBrowserHistory);
doCommand: function(command) { switch(command) { case "cmd_deleteByHostname": if (!gGlobalHistory) gGlobalHistory = Components.classes["@mozilla.org/browser/global-history;1"].getService(Components.interfaces.nsIBrowserHistory); gGlobalHistory.removePagesFromHos...
}
},
doCommand: function(command) { switch ( command ) { case "cmd_selectAll": var threadTree = GetThreadTree(); if ( threadTree ) { dump("select all now!!!!!!" + "\n"); threadTree.selectAll(); } break; case "cmd_delete": MsgDeleteMessage(false); break; case "button_delete": Ms...
case "cmd_findPrev":
case "cmd_findPrevious":
doCommand: function(command) { // if the user invoked a key short cut then it is possible that we got here for a command which is // really disabled. kick out if the command should be disabled. if (!this.isCommandEnabled(command)) return; var navigationType = nsMsgNavigationType.nextUnreadMessage; switch ...
case "cmd_newlist": AbNewList(); break;
doCommand: function(command) { switch (command) { case "cmd_selectAll": if (gAbView) gAbView.selectAll(); break; case "cmd_delete": case "button_delete": AbDelete(); break; case "button_edit": AbEditSelectedCard(); break; } },
if (gDBView) { gDBView.doCommand(nsMsgViewCommandType.selectAll) if (gDBView.numSelected != 1) { ClearMessagePane(); } } break;
gDBView.doCommand(nsMsgViewCommandType.selectAll) if (gDBView.numSelected != 1) { ClearMessagePane(); } break;
doCommand: function(command) { // if the user invoked a key short cut then it is possible that we got here for a command which is // really disabled. kick out if the command should be disabled. if (!this.isCommandEnabled(command)) return; switch ( command ) { case "cmd_selectAll": if (gDBView) ...
getViewName("search");
saveAsVirtualFolder();
doCommand: function(command) { switch(command) { case "cmd_open": MsgOpenSelectedMessages(); return true; case "cmd_delete": case "button_delete": MsgDeleteSelectedMessages(nsMsgViewCommandType.deleteMsg); return true; case "cmd_shift...
}
},
doCommand: function(command) { var resultsTree = document.getElementById('resultsTree'); switch ( command ) { case "cmd_selectAll": if ( resultsTree ) { dump("select all now!!!!!!" + "\n"); resultsTree.selectAll(); } break; case "cmd_delete": case "button_delete": if ( resultsTree ...
if (gMsgCompose) { var externalListener = gMsgCompose.getExternalSendListener(); if (externalListener) { externalListener.onSendNotPerformed(null, Components.results.NS_ERROR_ABORT); } }
function DoCommandClose(){ var retVal; if ((retVal = ComposeCanClose())) { MsgComposeCloseWindow(true); // at this point, we might be caching this window. // in which case, we don't want to close it if (sMsgComposeService.isCachedWindow(window)) { retVal = false; } } return retVal;}
debug("doContextCmd start: cmd='" + cmdName + "'"); var bundle = srGetStrBundle("chrome: var nameVal = "", urlVal = ""; if (cmdName == "http: { while (true) { var promptStr = bundle.GetStringFromName("NewBookmarkURLPrompt"); urlVal = prompt(promptStr, ""); if (!urlVal || urlVal=="") return(false); var colonOffs...
debug("doContextCmd start: cmd='" + cmdName + "'"); var nameVal = ""; var urlVal = ""; if (cmdName == NC + "command?cmd=newbookmark") { while (true) { var promptStr = get_localized_string("NewBookmarkURLPrompt"); urlVal = prompt(promptStr, ""); if (!urlVal || urlVal=="") return false; var colonOffset = urlVal.i...
function doContextCmd(cmdName){ debug("doContextCmd start: cmd='" + cmdName + "'"); var bundle = srGetStrBundle("chrome://communicator/locale/bookmarks/bookmark.properties"); // do some prompting/confirmation for various bookmark commands that we know about; // if we have values to pass it, they are added to the argume...
var select_list = treeNode.selectedItems; if (!select_list) return(false); if (select_list.length < 1) return(false); debug("# of Nodes selected: " + select_list.length);
function doContextCmd(cmdName){ debug("doContextCmd start: cmd='" + cmdName + "'"); var treeNode = document.getElementById("bookmarksTree"); if (!treeNode) return(false); var db = treeNode.database; if (!db) return(false); var compositeDB = db.QueryInterface(Components.interfaces.nsIRDFDataSource); if (!composite...
for (var nodeIndex=0; nodeIndex<select_list.length; nodeIndex++)
var select_list = treeNode.selectedItems; debug("# of Nodes selected: " + select_list.length); if (select_list.length < 1) { var uri = treeNode.getAttribute("ref"); if (!uri || uri=="") return(false); var rdfNode = rdf.GetResource(uri); if (rdfNode) { selectionArray.AppendElement(rdfNode); } } else for (var nodeI...
function doContextCmd(cmdName){ debug("doContextCmd start: cmd='" + cmdName + "'"); var treeNode = document.getElementById("bookmarksTree"); if (!treeNode) return(false); var db = treeNode.database; if (!db) return(false); var compositeDB = db.QueryInterface(Components.interfaces.nsIRDFDataSource); if (!composite...
copySelectionToClipboard(); return(true);
copySelectionToClipboard(); return true;
function doCopy(){ copySelectionToClipboard(); return(true);}
var format = document.getElementById('calendar-format').selectedItem.value; if (format == 'webdav') provider = 'ics'; else provider = 'caldav';
provider = document.getElementById('calendar-format').selectedItem.value;
function doCreateCalendar(){ var cal_name = document.getElementById("calendar-name").value; var cal_color = document.getElementById('calendar-color').color; var type = document.getElementById('calendar-type').selectedItem.value; var provider; var uri; if (type == 'local') { provider = 'storage'...
var newCalendar = calManager.createCalendar(cal_name, provider, makeURL(uri));
var newCalendar = calManager.createCalendar(provider, makeURL(uri));
function doCreateCalendar(){ var cal_name = document.getElementById("calendar-name").value; var cal_color = document.getElementById('calendar-color').color; var type = document.getElementById('calendar-type').selectedItem.value; var provider; var uri; if (type == 'local') { provider = 'storage'...
newCalendar.name = cal_name;
function doCreateCalendar(){ var cal_name = document.getElementById("calendar-name").value; var cal_color = document.getElementById('calendar-color').color; var type = document.getElementById('calendar-type').selectedItem.value; var provider; var uri; if (type == 'local') { provider = 'storage'...
Components.reportError("Already have calendar with URI " + uri);
Components.utils.reportError("Already have calendar with URI " + uri);
function doCreateCalendar(){ var cal_name = document.getElementById("calendar-name").value; var cal_color = document.getElementById('calendar-color').color; var type = document.getElementById('calendar-type').selectedItem.value; var provider; var uri; if (type == 'local') { provider = 'storage'...
state.loadPendingData += state.loadFile.read(state.loadChunk);
var newChunk = state.loadFile.read(state.loadChunk); if (newChunk) state.loadPendingData += newChunk;
function doCurrentStatusRun(){ if (state.state == STATE_LIST_THEN_LOAD) { // Update the progress and end if /list done for "list only" state. updateProgress(getMsg(MSG_CD_FETCHED, network._list.count), -1); if (network._list.done) setSubstate(SUBSTATE_END); } /* If we're doin...
var category = document.getElementById("categoryList") category.selectedIndex = 0;
function doCustomize(){ window.openDialog("chrome://communicator/content/search/search-editor.xul", "_blank", "centerscreen,chrome,resizable");}
if (copySelectionToClipboard() == true) { doDelete(false); } return(true);
if (copySelectionToClipboard() == true) { doDelete(false); } return true;
function doCut(){ if (copySelectionToClipboard() == true) { doDelete(false); } return(true);}
Replace();
Replace(gDialog.ReplaceWordInput.value);
function doDefault(){ if (gDialog.ReplaceButton.getAttribute("default") == "true") Replace(); else if (gDialog.IgnoreButton.getAttribute("default") == "true") Ignore(); else if (gDialog.CloseButton.getAttribute("default") == "true") onClose(); return false;}
var treeNode = document.getElementById("bookmarksTree"); if (!treeNode) return(false); var select_list = treeNode.selectedItems; if (!select_list) return(false); if (select_list.length < 1) return(false);
var treeNode = document.getElementById("bookmarksTree"); if (!treeNode) return false; var select_list = treeNode.selectedItems; if (!select_list) return false; if (select_list.length < 1) return false;
function doDelete(promptFlag){ var treeNode = document.getElementById("bookmarksTree"); if (!treeNode) return(false); var select_list = treeNode.selectedItems; if (!select_list) return(false); if (select_list.length < 1) return(false); debug("# of Nodes selected: " + select_list.length); if (promptFlag == true) {...
if (promptFlag == true) { var bundle = srGetStrBundle("chrome: var deleteStr = bundle.GetStringFromName("DeleteItems"); var ok = confirm(deleteStr); if (!ok) return(false); }
if (promptFlag == true) { var deleteStr = get_localized_string("DeleteItems"); var ok = confirm(deleteStr); if (!ok) return false; }
function doDelete(promptFlag){ var treeNode = document.getElementById("bookmarksTree"); if (!treeNode) return(false); var select_list = treeNode.selectedItems; if (!select_list) return(false); if (select_list.length < 1) return(false); debug("# of Nodes selected: " + select_list.length); if (promptFlag == true) {...
var RDF = Components.classes["component: RDF = RDF.QueryInterface(Components.interfaces.nsIRDFService); if (!RDF) return(false);
var RDF_uri = "component: var RDF = Components.classes[RDF_uri].getService(); RDF = RDF.QueryInterface(Components.interfaces.nsIRDFService); if (!RDF) return false;
function doDelete(promptFlag){ var treeNode = document.getElementById("bookmarksTree"); if (!treeNode) return(false); var select_list = treeNode.selectedItems; if (!select_list) return(false); if (select_list.length < 1) return(false); debug("# of Nodes selected: " + select_list.length); if (promptFlag == true) {...
var RDFC = Components.classes["component: RDFC = RDFC.QueryInterface(Components.interfaces.nsIRDFContainer); if (!RDFC) return(false);
var RDFC_uri = "component: var RDFC = Components.classes[RDFC_uri].getService(); RDFC = RDFC.QueryInterface(Components.interfaces.nsIRDFContainer); if (!RDFC) return false;
function doDelete(promptFlag){ var treeNode = document.getElementById("bookmarksTree"); if (!treeNode) return(false); var select_list = treeNode.selectedItems; if (!select_list) return(false); if (select_list.length < 1) return(false); debug("# of Nodes selected: " + select_list.length); if (promptFlag == true) {...
var Bookmarks = RDF.GetDataSource("rdf:bookmarks"); if (!Bookmarks) return(false);
var Bookmarks = RDF.GetDataSource("rdf:bookmarks"); if (!Bookmarks) return false;
function doDelete(promptFlag){ var treeNode = document.getElementById("bookmarksTree"); if (!treeNode) return(false); var select_list = treeNode.selectedItems; if (!select_list) return(false); if (select_list.length < 1) return(false); debug("# of Nodes selected: " + select_list.length); if (promptFlag == true) {...
return(true);
return true;
function doDelete(promptFlag){ var treeNode = document.getElementById("bookmarksTree"); if (!treeNode) return(false); var select_list = treeNode.selectedItems; if (!select_list) return(false); if (select_list.length < 1) return(false); debug("# of Nodes selected: " + select_list.length); if (promptFlag == true) {...
SetElementEnabledByID( "constrainCheckbox", enable ); SetElementEnabledByID( "constrainLabel", enable );
var constrainEnable = enable && ( dialog.widthUnitsSelect.selectedIndex == 0 ) && ( dialog.heightUnitsSelect.selectedIndex == 0 ); SetElementEnabledByID( "constrainCheckbox", constrainEnable ); SetElementEnabledByID( "constrainLabel", constrainEnable );
function doDimensionEnabling( doEnable ){ // Enabled only if "Custom" is checked var enable = (doEnable && dialog.customsizeRadio.checked); SetElementEnabledByID( "widthInput", enable ); SetElementEnabledByID( "widthLabel", enable); SetElementEnabledByID( "widthUnitsSelect", enable ); SetElementEnabledByID( "heig...
SetElementEnabledByID( "widthUnitsSelect", enable );
SetElementEnabledByID( "widthUnitsMenulist", enable );
function doDimensionEnabling( doEnable ){ // Enabled only if "Custom" is checked var enable = (doEnable && dialog.customsizeRadio.checked); SetElementEnabledByID( "widthInput", enable ); SetElementEnabledByID( "widthLabel", enable); SetElementEnabledByID( "widthUnitsSelect", enable ); SetElementEnabledByID( "heig...
SetElementEnabledByID( "heightUnitsSelect", enable );
SetElementEnabledByID( "heightUnitsMenulist", enable );
function doDimensionEnabling( doEnable ){ // Enabled only if "Custom" is checked var enable = (doEnable && dialog.customsizeRadio.checked); SetElementEnabledByID( "widthInput", enable ); SetElementEnabledByID( "widthLabel", enable); SetElementEnabledByID( "widthUnitsSelect", enable ); SetElementEnabledByID( "heig...
&& ( dialog.widthUnitsSelect.selectedIndex == 0 ) && ( dialog.heightUnitsSelect.selectedIndex == 0 );
&& ( dialog.widthUnitsMenulist.selectedIndex == 0 ) && ( dialog.heightUnitsMenulist.selectedIndex == 0 );
function doDimensionEnabling( doEnable ){ // Enabled only if "Custom" is checked var enable = (doEnable && dialog.customsizeRadio.checked); SetElementEnabledByID( "widthInput", enable ); SetElementEnabledByID( "widthLabel", enable); SetElementEnabledByID( "widthUnitsSelect", enable ); SetElementEnabledByID( "heig...
SetElementEnabledByID( "widthInput", enable ); SetElementEnabledByID( "widthLabel", enable); SetElementEnabledByID( "widthUnitsMenulist", enable );
SetElementEnabledById( "widthInput", enable ); SetElementEnabledById( "widthLabel", enable); SetElementEnabledById( "widthUnitsMenulist", enable );
function doDimensionEnabling( doEnable ){ // Enabled only if "Custom" is checked var enable = (doEnable && dialog.customsizeRadio.checked); SetElementEnabledByID( "widthInput", enable ); SetElementEnabledByID( "widthLabel", enable); SetElementEnabledByID( "widthUnitsMenulist", enable ); SetElementEnabledByID( "he...
SetElementEnabledByID( "heightInput", enable ); SetElementEnabledByID( "heightLabel", enable ); SetElementEnabledByID( "heightUnitsMenulist", enable );
SetElementEnabledById( "heightInput", enable ); SetElementEnabledById( "heightLabel", enable ); SetElementEnabledById( "heightUnitsMenulist", enable );
function doDimensionEnabling( doEnable ){ // Enabled only if "Custom" is checked var enable = (doEnable && dialog.customsizeRadio.checked); SetElementEnabledByID( "widthInput", enable ); SetElementEnabledByID( "widthLabel", enable); SetElementEnabledByID( "widthUnitsMenulist", enable ); SetElementEnabledByID( "he...
SetElementEnabledByID( "constrainCheckbox", constrainEnable );
SetElementEnabledById( "constrainCheckbox", constrainEnable );
function doDimensionEnabling( doEnable ){ // Enabled only if "Custom" is checked var enable = (doEnable && dialog.customsizeRadio.checked); SetElementEnabledByID( "widthInput", enable ); SetElementEnabledByID( "widthLabel", enable); SetElementEnabledByID( "widthUnitsMenulist", enable ); SetElementEnabledByID( "he...
window.close();
return true;
function doEmailOK(){ var email = document.getElementById("trustEmailCert"); //var checked = ssl.getAttribute("value"); var trustemail = email.selected ? nsIX509CertDB.TRUSTED_EMAIL : 0; // // Set the cert trust // certdb.setCertTrust(cert, nsIX509Cert.EMAIL_CERT, trustemail); window.close();}
var pref = Components.classes["@mozilla.org/preferences;1"].getService(); pref = pref.QueryInterface( Components.interfaces.nsIPref );
var pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch);
function DoEnableService() { var enable_setting = document.getElementById( "P3PServiceEnabled" ); var warn0_setting = document.getElementById( "P3PWarningNotPrivate" ); var warn1_setting = document.getElementById( "P3PWarningPartialPrivacy" ); var warn2_setting = document.getElementById( "P3PWarningPostToNotPriv...
pref.GetBoolPref( "P3P.warningnotprivate" );
pref.getBoolPref( "P3P.warningnotprivate" );
function DoEnableService() { var enable_setting = document.getElementById( "P3PServiceEnabled" ); var warn0_setting = document.getElementById( "P3PWarningNotPrivate" ); var warn1_setting = document.getElementById( "P3PWarningPartialPrivacy" ); var warn2_setting = document.getElementById( "P3PWarningPostToNotPriv...
pref.GetBoolPref( "P3P.warningpartialprivacy" );
pref.getBoolPref( "P3P.warningpartialprivacy" );
function DoEnableService() { var enable_setting = document.getElementById( "P3PServiceEnabled" ); var warn0_setting = document.getElementById( "P3PWarningNotPrivate" ); var warn1_setting = document.getElementById( "P3PWarningPartialPrivacy" ); var warn2_setting = document.getElementById( "P3PWarningPostToNotPriv...
pref.GetBoolPref( "P3P.warningposttonotprivate" );
pref.getBoolPref( "P3P.warningposttonotprivate" );
function DoEnableService() { var enable_setting = document.getElementById( "P3PServiceEnabled" ); var warn0_setting = document.getElementById( "P3PWarningNotPrivate" ); var warn1_setting = document.getElementById( "P3PWarningPartialPrivacy" ); var warn2_setting = document.getElementById( "P3PWarningPostToNotPriv...
pref.GetBoolPref( "P3P.warningposttobrokenpolicy" );
pref.getBoolPref( "P3P.warningposttobrokenpolicy" );
function DoEnableService() { var enable_setting = document.getElementById( "P3PServiceEnabled" ); var warn0_setting = document.getElementById( "P3PWarningNotPrivate" ); var warn1_setting = document.getElementById( "P3PWarningPartialPrivacy" ); var warn2_setting = document.getElementById( "P3PWarningPostToNotPriv...
pref.GetBoolPref( "P3P.warningposttonopolicy" );
pref.getBoolPref( "P3P.warningposttonopolicy" );
function DoEnableService() { var enable_setting = document.getElementById( "P3PServiceEnabled" ); var warn0_setting = document.getElementById( "P3PWarningNotPrivate" ); var warn1_setting = document.getElementById( "P3PWarningPartialPrivacy" ); var warn2_setting = document.getElementById( "P3PWarningPostToNotPriv...
var pref = Components.classes["@mozilla.org/preferences;1"].getService(); pref = pref.QueryInterface( Components.interfaces.nsIPref );
var pref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch);
function DoEnableSettings() { var enable_service = document.getElementById( "P3PServiceEnabled" ); var level_setting = document.getElementById( "P3PLevel" ); if (enable_service.checked) { // Service is enabled... EnableTree(level_setting); try { var pref = Components.classes["@mozilla.org/preferences;...
var level = pref.GetIntPref( "P3P.level" );
var level = pref.getIntPref( "P3P.level" );
function DoEnableSettings() { var enable_service = document.getElementById( "P3PServiceEnabled" ); var level_setting = document.getElementById( "P3PLevel" ); if (enable_service.checked) { // Service is enabled... EnableTree(level_setting); try { var pref = Components.classes["@mozilla.org/preferences;...
if( delbutton.getAttribute( "disabled" ) == "true" ) delbutton.removeAttribute( "disabled", "true" );
function DoEnabling(){ var renbutton = document.getElementById( "renbutton" ); var delbutton = document.getElementById( "delbutton" ); var start = document.getElementById( "ok" ); var profileList = document.getElementById( "profiles" ); var items = profileList.selectedItems; if( items.length != 1 ) { re...
var canDelete = true; if (!gStartupMode) { var selected = profileList.selectedItems[0]; var profileName = selected.getAttribute("profile_name"); var currentProfile = profile.currentProfile; if (currentProfile && (profileName == currentProfile)) canDelete = false; } if (canDelete) { if ( delbutton.getAttribute( "disable...
function DoEnabling(){ var renbutton = document.getElementById( "renbutton" ); var delbutton = document.getElementById( "delbutton" ); var start = document.getElementById( "ok" ); var profileList = document.getElementById( "profiles" ); var items = profileList.selectedItems; if( items.length != 1 ) { re...
gReplaceDialog.replace.disabled = (!findStr || !repStr); gReplaceDialog.replaceAndFind.disabled = (!findStr || !repStr); gReplaceDialog.replaceAll.disabled = (!findStr || !repStr);
gReplaceDialog.replace.disabled = !findStr; gReplaceDialog.replaceAndFind.disabled = !findStr; gReplaceDialog.replaceAll.disabled = !findStr;
function doEnabling(){ var findStr = gReplaceDialog.findInput.value; var repStr = gReplaceDialog.replaceInput.value; gReplaceDialog.enabled = findStr; gReplaceDialog.findNext.disabled = !findStr; gReplaceDialog.replace.disabled = (!findStr || !repStr); gReplaceDialog.replaceAndFind.disabled = (!findStr || !repStr...
SetElementEnabledById("ReplaceWord", true);
function DoEnabling(){ if (MisspelledWord.length == 0) { // No more misspelled words dialog.MisspelledWord.setAttribute("value",GetString("CheckSpellingDone")); dialog.ReplaceButton.removeAttribute("default"); dialog.IgnoreButton.removeAttribute("default"); dialog.CloseButton.setAttribute("default"...
for (i = 0; i < manual.length; i++) manual[i].removeAttribute( "disabled" );
if (!radiogroup.disabled) for (i = 0; i < manual.length; i++) manual[i].removeAttribute( "disabled" );
function DoEnabling(){ var i; var ftp = document.getElementById("networkProxyFTP"); var ftpPort = document.getElementById("networkProxyFTP_Port"); var gopher = document.getElementById("networkProxyGopher"); var gopherPort = document.getElementById("networkProxyGopher_Port"); var http = document.getElementById("ne...
for (i = 0; i < auto.length; i++) auto[i].removeAttribute( "disabled" );
if (!radiogroup.disabled) for (i = 0; i < auto.length; i++) auto[i].removeAttribute( "disabled" );
function DoEnabling(){ var i; var ftp = document.getElementById("networkProxyFTP"); var ftpPort = document.getElementById("networkProxyFTP_Port"); var gopher = document.getElementById("networkProxyGopher"); var gopherPort = document.getElementById("networkProxyGopher_Port"); var http = document.getElementById("ne...
var manual = [ftp, ftpPort, http, httpPort, noProxy];
var manual = [ftp, ftpPort, http, httpPort, ssl, sslPort, noProxy];
function DoEnabling(){ var ftp = document.getElementById("networkProxyFTP"); var ftpPort = document.getElementById("networkProxyFTP_Port"); var http = document.getElementById("networkProxyHTTP"); var httpPort = document.getElementById("networkProxyHTTP_Port"); var noProxy = document.getElementById("networkProxyNon...
{ var i; var ftp = document.getElementById("networkProxyFTP"); var ftpPort = document.getElementById("networkProxyFTP_Port"); var gopher = document.getElementById("networkProxyGopher"); var gopherPort = document.getElementById("networkProxyGopher_Port"); var http = document.getElementById("networkProxyHTTP"); var httpP...
{
function DoEnabling(){ var i; var ftp = document.getElementById("networkProxyFTP"); var ftpPort = document.getElementById("networkProxyFTP_Port"); var gopher = document.getElementById("networkProxyGopher"); var gopherPort = document.getElementById("networkProxyGopher_Port"); var http = document.getElementById("ne...
var manual = [ftp, ftpPort, gopher, gopherPort, http, httpPort, socks, socksPort, socksVersion, socksVersion4, socksVersion5, ssl, sslPort, noProxy, copyButton];
var manual = [ftp, ftpPort, gopher, gopherPort, http, httpPort, socks, socksPort, socksVersion, socksRemoteDNS, ssl, sslPort, noProxy, advancedButton, shareSettings];
function DoEnabling(){ var i; var ftp = document.getElementById("networkProxyFTP"); var ftpPort = document.getElementById("networkProxyFTP_Port"); var gopher = document.getElementById("networkProxyGopher"); var gopherPort = document.getElementById("networkProxyGopher_Port"); var http = document.getElementById("ne...
var radiogroup = document.getElementById("networkProxyType"); var prefstring; switch ( radiogroup.value ) {
switch (radiogroup.value) {
function DoEnabling(){ var i; var ftp = document.getElementById("networkProxyFTP"); var ftpPort = document.getElementById("networkProxyFTP_Port"); var gopher = document.getElementById("networkProxyGopher"); var gopherPort = document.getElementById("networkProxyGopher_Port"); var http = document.getElementById("ne...
for (i = 0; i < manual.length; i++) manual[i].setAttribute( "disabled", "true" ); for (i = 0; i < auto.length; i++) auto[i].setAttribute( "disabled", "true" );
case "4": disable(manual); disable(auto);
function DoEnabling(){ var i; var ftp = document.getElementById("networkProxyFTP"); var ftpPort = document.getElementById("networkProxyFTP_Port"); var gopher = document.getElementById("networkProxyGopher"); var gopherPort = document.getElementById("networkProxyGopher_Port"); var http = document.getElementById("ne...
for (i = 0; i < auto.length; i++) auto[i].setAttribute( "disabled", "true" );
disable(auto);
function DoEnabling(){ var i; var ftp = document.getElementById("networkProxyFTP"); var ftpPort = document.getElementById("networkProxyFTP_Port"); var gopher = document.getElementById("networkProxyGopher"); var gopherPort = document.getElementById("networkProxyGopher_Port"); var http = document.getElementById("ne...
for (i = 0; i < manual.length; i++) { prefstring = manual[i].getAttribute( "prefstring" ); if (!parent.hPrefWindow.getPrefIsLocked(prefstring)) manual[i].removeAttribute( "disabled" ); }
enableUnlockedElements(manual);
function DoEnabling(){ var i; var ftp = document.getElementById("networkProxyFTP"); var ftpPort = document.getElementById("networkProxyFTP_Port"); var gopher = document.getElementById("networkProxyGopher"); var gopherPort = document.getElementById("networkProxyGopher_Port"); var http = document.getElementById("ne...
for (i = 0; i < manual.length; i++) manual[i].setAttribute( "disabled", "true" );
disable(manual);
function DoEnabling(){ var i; var ftp = document.getElementById("networkProxyFTP"); var ftpPort = document.getElementById("networkProxyFTP_Port"); var gopher = document.getElementById("networkProxyGopher"); var gopherPort = document.getElementById("networkProxyGopher_Port"); var http = document.getElementById("ne...
for (i = 0; i < auto.length; i++) { prefstring = manual[i].getAttribute( "prefstring" ); if (!parent.hPrefWindow.getPrefIsLocked(prefstring)) auto[i].removeAttribute( "disabled" ); }
enableUnlockedElements(auto);
function DoEnabling(){ var i; var ftp = document.getElementById("networkProxyFTP"); var ftpPort = document.getElementById("networkProxyFTP_Port"); var gopher = document.getElementById("networkProxyGopher"); var gopherPort = document.getElementById("networkProxyGopher_Port"); var http = document.getElementById("ne...