rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
"", "modal=yes,chrome,resizeable=no,centerscreen",
"_blank", "modal,chrome,centerscreen,resizable=no,titlebar",
function changeScreenResolution() { var screenResolution = document.getElementById("screenResolution"); var userResolution = document.getElementById("userResolution"); if (screenResolution.value == "other") { // If the user selects "Other..." we bring up the calibrate screen dialog var rv...
var order = aOrder == -1 ? -1 : 1; gConsole.sortOrder = order; document.persist("ConsoleBox", "sortOrder"); updateSortCommand(order);
updateSortCommand(gConsole.sortOrder = aOrder);
function changeSortOrder(aOrder){ var order = aOrder == -1 ? -1 : 1; // default to 1 gConsole.sortOrder = order; document.persist("ConsoleBox", "sortOrder"); updateSortCommand(order);}
dialog.targetInput.value=dialog.commonInput.data;
dialog.targetInput.value=dialog.commonInput.value;
function changeTarget() { dialog.targetInput.value=dialog.commonInput.data;}
var enable = dialog.hrefInput.value.trimString().length > 0;
var enable = insertNew ? (dialog.hrefInput.value.trimString().length > 0) : true;
function ChangeText(){ var enable = dialog.hrefInput.value.trimString().length > 0; SetElementEnabledById( "ok", enable); SetElementEnabledById("MakeRelativeUrl", enable);}
SetElementEnabledById("MakeRelativeUrl", enable);
function ChangeText(){ var enable = dialog.hrefInput.value.trimString().length > 0; SetElementEnabledById( "ok", enable); SetElementEnabledById("MakeRelativeUrl", enable);}
debug("changeTitleBar: "+title);
function changeTitleBar(componentType){ var title; // Sanity check input if ( componentType == "event" || componentType == "todo" ) { var args = window.arguments[0]; // Is this a NEW event/todo, or are we EDITing an existing event/todo? if("new" == args.mode) title = document.getE...
if (holderBox)
if (holderBox) {
function changeToolTipTextForEvent( event ){ var thisEvent = getCalendarEventFromEvent( event ); var toolTip = document.getElementById( "eventTreeTooltip" ); while( toolTip.hasChildNodes() ) { toolTip.removeChild( toolTip.firstChild ); } var holderBox = getPreviewForEvent( thisEvent ); if (holderB...
return true; } else { return false; }
function changeToolTipTextForEvent( event ){ var thisEvent = getCalendarEventFromEvent( event ); var toolTip = document.getElementById( "eventTreeTooltip" ); while( toolTip.hasChildNodes() ) { toolTip.removeChild( toolTip.firstChild ); } var holderBox = getPreviewForEvent( thisEvent ); if (holderB...
var thisEvent = event.currentTarget.event;
var thisEvent = getCalendarEventFromEvent( event );
function changeToolTipTextForEvent( event ){ var thisEvent = event.currentTarget.event; var Html = document.getElementById( "savetip" ); while( Html.hasChildNodes() ) { Html.removeChild( Html.firstChild ); } var HolderBox = getPreviewText( event.currentTarget.event ); Html.appendChild( HolderB...
var HolderBox = getPreviewText( event.currentTarget.event );
if( !thisEvent ) return( false ); var HolderBox = getPreviewText( thisEvent );
function changeToolTipTextForEvent( event ){ var thisEvent = event.currentTarget.event; var Html = document.getElementById( "savetip" ); while( Html.hasChildNodes() ) { Html.removeChild( Html.firstChild ); } var HolderBox = getPreviewText( event.currentTarget.event ); Html.appendChild( HolderB...
if (toDoItem.title) { var TitleHtml = document.createElement( "description" ); var TitleText = document.createTextNode( "Title: "+toDoItem.title ); TitleHtml.appendChild( TitleText ); HolderBox.appendChild( TitleHtml ); } var DateHtml = document.createElement( "description" ); var startDate = new Date( toDoItem.start....
if (toDoItem.title) { var TitleHtml = document.createElement( "description" ); var TitleText = document.createTextNode( "Title: "+toDoItem.title ); TitleHtml.appendChild( TitleText ); HolderBox.appendChild( TitleHtml ); }
function changeToolTipTextForToDo( event ){ var toDoItem = getToDoFromEvent( event ); var Html = document.getElementById( "savetip" ); while( Html.hasChildNodes() ) { Html.removeChild( Html.firstChild ); } var HolderBox = document.createElement( "vbox" ); if( toDoItem ) { if (toDoItem.title) ...
Html.appendChild( HolderBox );
var DateHtml = document.createElement( "description" ); var startDate = new Date( toDoItem.start.getTime() ); var DateText = document.createTextNode( "Start Date: "+gCalendarWindow.dateFormater.getFormatedDate( startDate ) ); DateHtml.appendChild( DateText ); HolderBox.appendChild( DateHtml ); DateHtml = document.crea...
function changeToolTipTextForToDo( event ){ var toDoItem = getToDoFromEvent( event ); var Html = document.getElementById( "savetip" ); while( Html.hasChildNodes() ) { Html.removeChild( Html.firstChild ); } var HolderBox = document.createElement( "vbox" ); if( toDoItem ) { if (toDoItem.title) ...
if( holderBox )
if( holderBox ) {
function changeToolTipTextForToDo( event ){ var toDoItem = getToDoFromEvent( event ); var toolTip = document.getElementById( "taskTreeTooltip" ); while( toolTip.hasChildNodes() ) { toolTip.removeChild( toolTip.firstChild ); } var holderBox = getPreviewForTask( toDoItem ); if( holderBox ) toolTip...
return true; } else { return false; }
function changeToolTipTextForToDo( event ){ var toDoItem = getToDoFromEvent( event ); var toolTip = document.getElementById( "taskTreeTooltip" ); while( toolTip.hasChildNodes() ) { toolTip.removeChild( toolTip.firstChild ); } var holderBox = getPreviewForTask( toDoItem ); if( holderBox ) toolTip...
var i; var ocspEntry;
function changeURL(){ var signersMenu = document.getElementById("signingCA"); var signersURL = document.getElementById("serviceURL"); var CA = signersMenu.getAttribute("value"); for (i=0; i < ocspResponders.Count(); i++) { ocspEntry = ocspResponders.GetElementAt(i).QueryInterface(nsIOCSPResponder); if (CA == ...
this.parent.parent.sendData ("MODE " + this.parent.name + " -l\n");
{ this.parent.parent.sendData ("MODE " + this.parent.encodedName + " -l\n"); }
function chanm_limit (n){ if (!this.parent.users[this.parent.parent.me.nick].isOp) return false; if ((typeof n == "undefined") || (n <= 0)) this.parent.parent.sendData ("MODE " + this.parent.name + " -l\n"); else this.parent.parent.sendData ("MODE " + this.parent.name + " +l " + ...
this.parent.parent.sendData ("MODE " + this.parent.name + " +l " +
{ this.parent.parent.sendData ("MODE " + this.parent.encodedName + " +l " +
function chanm_limit (n){ if (!this.parent.users[this.parent.parent.me.nick].isOp) return false; if ((typeof n == "undefined") || (n <= 0)) this.parent.parent.sendData ("MODE " + this.parent.name + " -l\n"); else this.parent.parent.sendData ("MODE " + this.parent.name + " +l " + ...
}
function chanm_limit (n){ if (!this.parent.users[this.parent.parent.me.nick].isOp) return false; if ((typeof n == "undefined") || (n <= 0)) this.parent.parent.sendData ("MODE " + this.parent.name + " -l\n"); else this.parent.parent.sendData ("MODE " + this.parent.name + " +l " + ...
this.parent.parent.sendData ("MODE " + this.parent.name + " +k " +
this.parent.parent.sendData ("MODE " + this.parent.encodedName + " +k " +
function chanm_lock (k){ if (!this.parent.users[this.parent.parent.me.nick].isOp) return false; this.parent.parent.sendData ("MODE " + this.parent.name + " +k " + k + "\n"); return true; }
this.parent.parent.sendData ("MODE " + this.parent.name + " " +
this.parent.parent.sendData ("MODE " + this.parent.encodedName + " " +
function chanm_mode (modestr){ if (!this.parent.users[this.parent.parent.me.nick].isOp) return false; this.parent.parent.sendData ("MODE " + this.parent.name + " " + modestr + "\n"); return true; }
[net, mtype, c.name, mode,
[net, mtype, c.unicodeName, mode,
function channelStatus (c) { var cu; var net = c.parent.parent.name; if ((cu = c.users[c.parent.me.nick])) { var mtype; if (cu.isOp && cu.isVoice) mtype = getMsg("cli_istatusBoth"); else if (cu.isOp) mtype = ge...
escape(c.name) + "/"]),
escape(c.encodedName) + "/"]),
function channelStatus (c) { var cu; var net = c.parent.parent.name; if ((cu = c.users[c.parent.me.nick])) { var mtype; if (cu.isOp && cu.isVoice) mtype = getMsg("cli_istatusBoth"); else if (cu.isOp) mtype = ge...
[net, c.name,
[net, c.unicodeName,
function channelStatus (c) { var cu; var net = c.parent.parent.name; if ((cu = c.users[c.parent.me.nick])) { var mtype; if (cu.isOp && cu.isVoice) mtype = getMsg("cli_istatusBoth"); else if (cu.isOp) mtype = ge...
[net, c.name, c.topic]),
[net, c.unicodeName, c.topic]),
function channelStatus (c) { var cu; var net = c.parent.parent.name; if ((cu = c.users[c.parent.me.nick])) { var mtype; if (cu.isOp && cu.isVoice) mtype = getMsg("cli_istatusBoth"); else if (cu.isOp) mtype = ge...
[net, c.name]), "STATUS");
[net, c.unicodeName]), "STATUS");
function channelStatus (c) { var cu; var net = c.parent.parent.name; if ((cu = c.users[c.parent.me.nick])) { var mtype; if (cu.isOp && cu.isVoice) mtype = getMsg("cli_istatusBoth"); else if (cu.isOp) mtype = ge...
rv = "Operator";
rv = getMsg("channelStatusMsg");
function channelStatus (c) { var rv = ""; var cu; if ((cu = c.users[c.parent.me.nick])) { if (cu.isOp) rv = "Operator"; if (cu.isVoice) rv = (rv) ? rv + " and voiced" : "Voiced"; if (rv) rv += " m"; ...
rv = (rv) ? rv + " and voiced" : "Voiced";
rv += (rv) ? getMsg("channelStatusMsg2a") : getMsg("channelStatusMsg2b");
function channelStatus (c) { var rv = ""; var cu; if ((cu = c.users[c.parent.me.nick])) { if (cu.isOp) rv = "Operator"; if (cu.isVoice) rv = (rv) ? rv + " and voiced" : "Voiced"; if (rv) rv += " m"; ...
rv += " m";
rv += getMsg("channelStatusMsg3");
function channelStatus (c) { var rv = ""; var cu; if ((cu = c.users[c.parent.me.nick])) { if (cu.isOp) rv = "Operator"; if (cu.isVoice) rv = (rv) ? rv + " and voiced" : "Voiced"; if (rv) rv += " m"; ...
rv += "M"; rv += "ember of " + c.name + ", with " + c.getUsersLength() + " users total, " + c.opCount + " operators, " + c.voiceCount + " voiced.";
rv += getMsg("channelStatusMsg4"); rv += getMsg("channelStatusMsg5",[c.name, c.getUsersLength(), c.opCount, c.voiceCount]);
function channelStatus (c) { var rv = ""; var cu; if ((cu = c.users[c.parent.me.nick])) { if (cu.isOp) rv = "Operator"; if (cu.isVoice) rv = (rv) ? rv + " and voiced" : "Voiced"; if (rv) rv += " m"; ...
rv = "No longer a member of " + c.name;
rv = getMsg("channelStatusMsg6", c.name);
function channelStatus (c) { var rv = ""; var cu; if ((cu = c.users[c.parent.me.nick])) { if (cu.isOp) rv = "Operator"; if (cu.isVoice) rv = (rv) ? rv + " and voiced" : "Voiced"; if (rv) rv += " m"; ...
(promptService.BUTTON_TITLE_CANCEL * promptService.BUTTON_POS_1),
(promptService.BUTTON_TITLE_CANCEL * promptService.BUTTON_POS_1) + (allowDontSave ? (promptService.BUTTON_TITLE_IS_STRING * promptService.BUTTON_POS_2) : 0), null, null,
function CheckAndSaveDocument(reasonToSave, allowDontSave){ var document = editorShell.editorDocument; if (!editorShell.documentModified) return true; // call window.focus, since we need to pop up a dialog // and therefore need to be visible (to prevent user confusion) window.focus(); var title = window.edit...
contentsMIMEType = "text/html";
contentsMIMEType = kHTMLMimeType;
function CheckAndSaveDocument(command, allowDontSave){ var document; try { // if we don't have an editor or an document, bail if (!gEditor) return true; document = gEditor.document; if (!document) return true; } catch (e) { return true; } if (!gEditor.documentModified && !gHTMLSourceChanged) ...
contentsMIMEType = "text/plain";
contentsMIMEType = kTextMimeType;
function CheckAndSaveDocument(command, allowDontSave){ var document; try { // if we don't have an editor or an document, bail if (!gEditor) return true; document = gEditor.document; if (!document) return true; } catch (e) { return true; } if (!gEditor.documentModified && !gHTMLSourceChanged) ...
function CheckAttributeNameSimilarity(attName)
function CheckAttributeNameSimilarity(attName, attArray)
function CheckAttributeNameSimilarity(attName){ for(i = 0; i < elAttrs.length; i++) { if(attName == elAttrs[i]) return false; } return true;}
for(i = 0; i < elAttrs.length; i++)
for(var i = 0; i < attArray.length; i++)
function CheckAttributeNameSimilarity(attName){ for(i = 0; i < elAttrs.length; i++) { if(attName == elAttrs[i]) return false; } return true;}
if(attName == elAttrs[i])
if(attName == attArray[i])
function CheckAttributeNameSimilarity(attName){ for(i = 0; i < elAttrs.length; i++) { if(attName == elAttrs[i]) return false; } return true;}
if(completed) { newTodo.completedDate = jsDateToDateTime(new Date()); newTodo.percentComplete = 100; } else { newTodo.completedDate = null; if (newTodo.percentComplete == 100) newTodo.percentComplete = 0; }
newTodo.isCompleted = completed;
function checkboxClick(thisTodo, completed){ var newTodo = thisTodo.clone().QueryInterface(Components.interfaces.calITodo); if(completed) { newTodo.completedDate = jsDateToDateTime(new Date()); newTodo.percentComplete = 100; } else { newTodo.completedDate = null; if (newTodo.percent...
var value = element.value; if (value && value.length > 0) { value = value.replace(/[^\.|^0-9]/g,""); if (!value) value = ""; element.value = value; }
element.value = element.value.replace(/[^.0-9]/g, "");
function checkDouble(element){ var value = element.value; if (value && value.length > 0) { value = value.replace(/[^\.|^0-9]/g,""); if (!value) value = ""; element.value = value; }}
var engineValue = engineList.value;
var engineValue = engineList.label;
function checkEngine(){ var engineList = document.getElementById("engineList"); var engineValue = engineList.value; if (!engineValue) engineList.selectedIndex = 6; }
var selectedItem = engineListSelection.length ? engineListSelection[0] : null;
var selectedItem = engineListSelection.item(0);
function checkEngine(){ var engineList = document.getElementById("engineList"); var engineValue = engineList.label; //nothing is selected if (!engineValue) { try { var strDefaultSearchEngineName = parent.hPrefWindow.getPref("localizedstring", "browser.search.defaultenginename"); var engineLis...
var windowManager = Components.classes['@mozilla.org/rdf/datasource;1?name=window-mediator'].getService();
var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService();
function checkFocusedWindow(){ var windowManager = Components.classes['@mozilla.org/rdf/datasource;1?name=window-mediator'].getService(); var windowManagerInterface = windowManager.QueryInterface(nsIWindowMediator); var sep = document.getElementById("sep-window-list"); // Using double parens to avoid warning while...
while (sep = sep.nextSibling) {
while ((sep = sep.nextSibling)) {
function checkFocusedWindow(){ var windowManager = Components.classes['@mozilla.org/rdf/datasource;1?name=window-mediator'].getService(); var windowManagerInterface = windowManager.QueryInterface(Components.interfaces.nsIWindowMediator); var sep = document.getElementById("sep-window-list"); while (sep = sep.nextSib...
manger.focus();
manager.focus();
checkForAddonUpdates: function () { var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"]. getService(Components.interfaces.nsIWindowMediator); var manager = wm.getMostRecentWindow("Extension:Manager-extensions"); if (!manager) { const features = "chrome,centerscreen,dia...
try { Components.classes["@mozilla.org/winhooks;1"] .getService(Components.interfaces.nsIWindowsHooks) .checkSettings(window); } catch(e) {
const NS_WINHOOKS_CONTRACTID = "@mozilla.org/winhooks;1"; if (NS_WINHOOKS_CONTRACTID in Components.classes) { try { Components.classes[NS_WINHOOKS_CONTRACTID] .getService(Components.interfaces.nsIWindowsHooks) .checkSettings(window); } catch(e) { }
function checkForDefaultBrowser(){ try { Components.classes["@mozilla.org/winhooks;1"] .getService(Components.interfaces.nsIWindowsHooks) .checkSettings(window); } catch(e) { }}
if ( "HTTPIndex" in _content && _content.HTTPIndex instanceof Components.interfaces.nsIHTTPIndex ) { _content.defaultCharacterset = getMarkupDocumentViewer().defaultCharacterSet;
if ( "HTTPIndex" in content && content.HTTPIndex instanceof Components.interfaces.nsIHTTPIndex ) { content.defaultCharacterset = getMarkupDocumentViewer().defaultCharacterSet;
function checkForDirectoryListing(){ if ( "HTTPIndex" in _content && _content.HTTPIndex instanceof Components.interfaces.nsIHTTPIndex ) { _content.defaultCharacterset = getMarkupDocumentViewer().defaultCharacterSet; }}
var accountData = parent.currentAccountData;
var accountData = parent.gCurrentAccountData;
function checkForDomain(){ var accountData = parent.currentAccountData; if (!accountData) return; if (!accountData.domain) return; // save in global variable currentDomain = accountData.domain; var postEmailText = document.getElementById("postEmailText"); postEmailText.setAttribute("value", "@" + currentDomain...
var imgInfo = imgType == "object" ? img.data : img.src; setInfo ("image-url", imgInfo); var size = getSize(imgInfo);
var imgURL = imgType == "object" ? img.data : img.src; setInfo("image-url", imgURL); var size = getSize(imgURL);
function checkForImage(elem, htmllocalname){ var img; var imgType; // "img" = <img> // "object" = <object> // "input" = <input type=image> // "background" = css background (to be added later) var ismap = false; if (htmllocalname === "img") { img...
setInfo("image-desc", getAbsoluteURL(img.longDesc, img));
setInfo("image-desc", img.longDesc);
function checkForImage(elem, htmllocalname){ var img; var imgType; // "img" = <img> // "object" = <object> // "input" = <input type=image> // "background" = css background (to be added later) var ismap = false; if (htmllocalname === "img") { img...
element.setAttribute("style","display: inline;" );
if (this.imageURL) { element.setAttribute("style","display: inline;" ); element.setAttribute("disabled","false" ); } else { element.setAttribute("style","display: none;" ); element.setAttribute("disabled","true" ); }
checkForImageBlocker: function () { pref = Components.classes['component://netscape/preferences']; pref = pref.getService(); pref = pref.QueryInterface(Components.interfaces.nsIPref); try { if (pref.GetBoolPref("imageblocker.enabled")) { var element = document.getElementById("con...
setInfo("insdel-cite", getAbsoluteURL(elem.cite, elem));
setInfo("insdel-cite", elem.cite);
function checkForInsDel(elem, htmllocalname){ if ((htmllocalname === "ins" || htmllocalname === "del") && (elem.cite || elem.dateTime)) { setInfo("insdel-cite", getAbsoluteURL(elem.cite, elem)); setInfo("insdel-date", elem.dateTime); onInsDel = true; } }
dump(parent.wizardManager.WSM);
function checkForInvalidAccounts(){ var firstInvalidAccount = getFirstInvalidAccount(); if (firstInvalidAccount) { var pageData = GetPageData(); dump("We have an invalid account, " + firstInvalidAccount + ", let's use that!\n"); gCurrentAccount = firstInvalidAccount; // there's a possibil...
currentAccount = firstInvalidAccount;
gCurrentAccount = firstInvalidAccount;
function checkForInvalidAccounts(){ am = Components.classes["component://netscape/messenger/account-manager"].getService(Components.interfaces.nsIMsgAccountManager); var invalidAccounts = getInvalidAccounts(am.accounts); var firstInvalidAccount; if (invalidAccounts.length > 0) firstInvalidAccount ...
var accountData = AccountToAccountData(firstInvalidAccount);
var identity = firstInvalidAccount.identities.QueryElementAt(0, nsIMsgIdentity); dump("Invalid account: trying to get ISP data for " + identity.email + "\n"); var accountData = getIspDefaultsForEmail(identity.email); dump("Invalid account: Got " + accountData + "\n");
function checkForInvalidAccounts(){ am = Components.classes["component://netscape/messenger/account-manager"].getService(Components.interfaces.nsIMsgAccountManager); var invalidAccounts = getInvalidAccounts(am.accounts); var firstInvalidAccount; if (invalidAccounts.length > 0) firstInvalidAccount ...
gCurrentAccountData = accountData;
function checkForInvalidAccounts(){ am = Components.classes["component://netscape/messenger/account-manager"].getService(Components.interfaces.nsIMsgAccountManager); var invalidAccounts = getInvalidAccounts(am.accounts); var firstInvalidAccount; if (invalidAccounts.length > 0) firstInvalidAccount ...
var account = getFirstInvalidAccount(am.accounts);
var invalidAccounts = getInvalidAccounts(am.accounts); var firstInvalidAccount; if (invalidAccounts.length > 0) firstInvalidAccount = invalidAccounts[0]; else return null;
function checkForInvalidAccounts(){ am = Components.classes["component://netscape/messenger/account-manager"].getService(Components.interfaces.nsIMsgAccountManager); var account = getFirstInvalidAccount(am.accounts); if (account) { var pageData = GetPageData(); dump("We have an invalid account, "...
if (account) {
if (firstInvalidAccount) {
function checkForInvalidAccounts(){ am = Components.classes["component://netscape/messenger/account-manager"].getService(Components.interfaces.nsIMsgAccountManager); var account = getFirstInvalidAccount(am.accounts); if (account) { var pageData = GetPageData(); dump("We have an invalid account, "...
dump("We have an invalid account, " + account + ", let's use that!\n"); currentAccount = account;
dump("We have an invalid account, " + firstInvalidAccount + ", let's use that!\n"); currentAccount = firstInvalidAccount;
function checkForInvalidAccounts(){ am = Components.classes["component://netscape/messenger/account-manager"].getService(Components.interfaces.nsIMsgAccountManager); var account = getFirstInvalidAccount(am.accounts); if (account) { var pageData = GetPageData(); dump("We have an invalid account, "...
var accountData = AccountToAccountData(account);
var accountData = AccountToAccountData(firstInvalidAccount);
function checkForInvalidAccounts(){ am = Components.classes["component://netscape/messenger/account-manager"].getService(Components.interfaces.nsIMsgAccountManager); var account = getFirstInvalidAccount(am.accounts); if (account) { var pageData = GetPageData(); dump("We have an invalid account, "...
am = Components.classes["@mozilla.org/messenger/account-manager;1"].getService(Components.interfaces.nsIMsgAccountManager); var invalidAccounts = getInvalidAccounts(am.accounts); var firstInvalidAccount; if (invalidAccounts.length > 0) firstInvalidAccount = invalidAccounts[0]; else return null;
var firstInvalidAccount = getFirstInvalidAccount();
function checkForInvalidAccounts(){ am = Components.classes["@mozilla.org/messenger/account-manager;1"].getService(Components.interfaces.nsIMsgAccountManager); var invalidAccounts = getInvalidAccounts(am.accounts); var firstInvalidAccount; if (invalidAccounts.length > 0) firstInvalidAccount = inva...
target = elem.target;
var target = elem.target;
function checkForLink(elem, htmllocalname){ if ((htmllocalname === "a" && elem.href != "") || htmllocalname === "area") { setInfo("link-lang", convertLanguageCode(elem.getAttribute("hreflang"))); setInfo("link-url", elem.href); setInfo("link-type", elem.getAttribute("type")); setI...
if (elem.ownerDocument != elem.ownerDocument.defaultView._content.document)
if (elem.ownerDocument != elem.ownerDocument.defaultView.content.document)
function checkForLink(elem, htmllocalname){ if ((htmllocalname === "a" && elem.href != "") || htmllocalname === "area") { setInfo("link-lang", convertLanguageCode(elem.getAttribute("hreflang"))); setInfo("link-url", elem.href); setInfo("link-type", elem.getAttribute("type")); setI...
else if (elem.getAttributeNS(XLinkNS,"href") != "") { setInfo("link-url", getAbsoluteURL(elem.getAttributeNS(XLinkNS,"href"),elem));
else if (elem.getAttributeNS(XLinkNS, "href") != "") { var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var url = elem.getAttributeNS(XLinkNS, "href"); try { var baseURI = ioService.newURI(elem.baseURI, elem.ownerDocument.characterSet, null); url =...
function checkForLink(elem, htmllocalname){ if ((htmllocalname === "a" && elem.href != "") || htmllocalname === "area") { setInfo("link-lang", convertLanguageCode(elem.getAttribute("hreflang"))); setInfo("link-url", elem.href); setInfo("link-type", elem.getAttribute("type")); setI...
if (node.getAttribute("disabled") == "true") return;
function checkForMiddleClick(node, event){ if (event.button == 1) { /* Execute the node's oncommand. * * XXX: we should use node.oncommand(event) once bug 246720 is fixed. */ var fn = new Function("event", node.getAttribute("oncommand")); fn.call(node, event); // If the middle-click was on part...
dsURI = dsURI.replace(/%PLUGIN_MIMETYPE%/g, aPluginRequestItem.mimetype);
dsURI = dsURI.replace(/%PLUGIN_MIMETYPE%/g, encodeURIComponent(aPluginRequestItem.mimetype));
checkForPlugin: function (aPluginRequestItem){ var dsURI = this.dsURI; dsURI = dsURI.replace(/%PLUGIN_MIMETYPE%/g, aPluginRequestItem.mimetype); dsURI = dsURI.replace(/%APP_ID%/g, this.appID); dsURI = dsURI.replace(/%APP_VERSION%/g, this.buildID); dsURI = dsURI.replace(/%CLIENT_OS%/g, this.clientOS); ...
setInfo("quote-cite", getAbsoluteURL(elem.cite, elem));
setInfo("quote-cite", elem.cite);
function checkForQuote(elem, htmllocalname){ if ((htmllocalname === "q" || htmllocalname === "blockquote") && elem.cite) { setInfo("quote-cite", getAbsoluteURL(elem.cite, elem)); onQuote = true; } }
var am = Components.classes["@mozilla.org/messenger/account-manager;1"] .getService(Components.interfaces.nsIMsgAccountManager); var msgSendlater = Components.classes["@mozilla.org/messengercompose/sendlater;1"] .getService(Components.interfaces.nsIMsgSendLater); var identitiesCount, allIdentities, currentIdentity, num...
try { var am = Components.classes["@mozilla.org/messenger/account-manager;1"] .getService(Components.interfaces.nsIMsgAccountManager); var msgSendlater = Components.classes["@mozilla.org/messengercompose/sendlater;1"] .getService(Components.interfaces.nsIMsgSendLater); var identitiesCount, allIdentities, currentIdentit...
function CheckForUnsentMessages(){ var am = Components.classes["@mozilla.org/messenger/account-manager;1"] .getService(Components.interfaces.nsIMsgAccountManager); var msgSendlater = Components.classes["@mozilla.org/messengercompose/sendlater;1"] .getService(Components.interfaces.nsIMsgSen...
if(am) { allIdentities = am.allIdentities; identitiesCount = allIdentities.Count(); for (var i = 0; i < identitiesCount; i++) { currentIdentity = allIdentities.QueryElementAt(i, Components.interfaces.nsIMsgIdentity); msgFolder = msgSendlater.getUnsentMessagesFolder(currentIdentity); if(msgFolder) { numMessages = msgFo...
if(am) { allIdentities = am.allIdentities; identitiesCount = allIdentities.Count(); for (var i = 0; i < identitiesCount; i++) { currentIdentity = allIdentities.QueryElementAt(i, Components.interfaces.nsIMsgIdentity); msgFolder = msgSendlater.getUnsentMessagesFolder(currentIdentity); if(msgFolder) { numMessages = msgFo...
function CheckForUnsentMessages(){ var am = Components.classes["@mozilla.org/messenger/account-manager;1"] .getService(Components.interfaces.nsIMsgAccountManager); var msgSendlater = Components.classes["@mozilla.org/messengercompose/sendlater;1"] .getService(Components.interfaces.nsIMsgSen...
getService(Components.interfaces.nsIPref);
getService(Components.interfaces.nsIPrefBranch);
checkForUpdate: function() { debug("checkForUpdate"); if (this.shouldCheckForUpdate()) { try { // get update ds URI from prefs var prefs = Components.classes["@mozilla.org/preferences-service;1"]. getService(Components.interfaces.nsIPref); var updateDatasourceURI ...
getLocalizedUnicharPref(kUNDatasourceURIPref);
getComplexValue(kUNDatasourceURIPref, Components.interfaces.nsIPrefLocalizedString).data;
checkForUpdate: function() { debug("checkForUpdate"); if (this.shouldCheckForUpdate()) { try { // get update ds URI from prefs var prefs = Components.classes["@mozilla.org/preferences-service;1"]. getService(Components.interfaces.nsIPref); var updateDatasourceURI ...
prompter.checkForUpdates();
prompter.checkForUpdates(window);
checkForUpdates: function () { var prompter = Components.classes["@mozilla.org/updates/update-prompt;1"] .createInstance(Components.interfaces.nsIUpdatePrompt); prompter.checkForUpdates(); },
prompter.checkForUpdates();
prompter.checkForUpdates(window);
function checkForUpdates(){ var prompter = Components.classes["@mozilla.org/updates/update-prompt;1"] .createInstance(Components.interfaces.nsIUpdatePrompt); prompter.checkForUpdates(); }
element = document.getElementById("walletSafeFill"); element.setAttribute("style","display: none;" ); element.setAttribute("disabled","true" ); element = document.getElementById("walletQuickFill"); element.setAttribute("style","display: none;" ); element.setAttribute("disabled","true" ); element = document.getElementBy...
element = document.getElementById("wallet");
function CheckForWallet(){ // remove wallet functions (unless overruled by the "wallet.enabled" pref) try { if (!this.pref.GetBoolPref("wallet.enabled")) { var element; element = document.getElementById("walletSafeFill"); element.setAttribute("style","display: none;" ); element.setAttribute("di...
var ok=document.getElementById('ok-button');
function checkPasswords(){ var pw1=document.getElementById('pw1').value; var pw2=document.getElementById('pw2').value; var ok=document.getElementById('ok-button'); var oldpwbox = document.getElementById("oldpw"); if (oldpwbox) { var initpw = oldpwbox.getAttribute("inited"); if (initpw == "empty" && pw1 == ""...
ok.setAttribute("disabled","true");
document.documentElement.getButton("accept").disabled = true;
function checkPasswords(){ var pw1=document.getElementById('pw1').value; var pw2=document.getElementById('pw2').value; var ok=document.getElementById('ok-button'); var oldpwbox = document.getElementById("oldpw"); if (oldpwbox) { var initpw = oldpwbox.getAttribute("inited"); if (initpw == "empty" && pw1 == ""...
if (pw1 == pw2){ ok.setAttribute("disabled","false"); } else { ok.setAttribute("disabled","true"); }
document.documentElement.getButton("accept").disabled = (pw1 != pw2);
function checkPasswords(){ var pw1=document.getElementById('pw1').value; var pw2=document.getElementById('pw2').value; var ok=document.getElementById('ok-button'); var oldpwbox = document.getElementById("oldpw"); if (oldpwbox) { var initpw = oldpwbox.getAttribute("inited"); if (initpw == "empty" && pw1 == ""...
if (!window)
if (!window || !("document" in window))
function checkScroll(frame){ var window = getContentWindow(frame); if (!window) return false; return (window.document.height - window.innerHeight - window.pageYOffset) < 160;}
var navWindow = getNavigatorWindow(); var resultsTree = navWindow._content.document.getElementById("internetresultstree"); if(resultsTree) { var treeref = resultsTree.getAttribute("ref"); var ds = resultsTree.database; if (ds && treeref) { try { var rdf = Components.classes[RDFSERVICE_PROGID].getService(nsIRDFService);...
var navWindow = getNavigatorWindow(false); if (navWindow) var resultsTree = navWindow._content.document.getElementById("internetresultstree"); if(resultsTree) { var treeref = resultsTree.getAttribute("ref"); var ds = resultsTree.database; if (ds && treeref) { try { var rdf = nsJSComponentManager.getService(RDFSERVICE_P...
function checkSearchProgress(){ var activeSearchFlag = false; var navWindow = getNavigatorWindow(); var resultsTree = navWindow._content.document.getElementById("internetresultstree"); if(resultsTree) { var treeref = resultsTree.getAttribute("ref"); var ds = resultsTree.database; if (ds && treeref) { ...
if( activeSearchFlag ) { setTimeout("checkSearchProgress()", 1000); } else { doStop(); }
} if (activeSearchFlag) setTimeout("checkSearchProgress()", 1000); else doStop();
function checkSearchProgress(){ var activeSearchFlag = false; var navWindow = getNavigatorWindow(); var resultsTree = navWindow._content.document.getElementById("internetresultstree"); if(resultsTree) { var treeref = resultsTree.getAttribute("ref"); var ds = resultsTree.database; if (ds && treeref) { ...
var resultsTree = top._content.document.getElementById("internetresultstree");
var navWindow = getNavigatorWindow(); var resultsTree = navWindow._content.document.getElementById("internetresultstree");
function checkSearchProgress(){ var activeSearchFlag = false; var resultsTree = top._content.document.getElementById("internetresultstree"); if(resultsTree) { var treeref = resultsTree.getAttribute("ref"); var ds = resultsTree.database; if (ds && treeref) { try { var rdf = Comp...
var CheckEndDate = checkEndDate(); var CheckEndTime = checkEndTime();
var dateComparison = compareIgnoringTimeOfDay(gEndDate, gStartDate);
function checkSetTimeDate(){ var CheckEndDate = checkEndDate(); var CheckEndTime = checkEndTime(); if ( CheckEndDate < 0 ) { // end before start setDateError(true); setTimeError(false); return false; } else if ( CheckEndDate == 0 ) { setDateError(false); // start & end same ...
if ( CheckEndDate < 0 )
if (dateComparison < 0 || (dateComparison == 0 && getFieldValue( "all-day-event-checkbox", "checked" )))
function checkSetTimeDate(){ var CheckEndDate = checkEndDate(); var CheckEndTime = checkEndTime(); if ( CheckEndDate < 0 ) { // end before start setDateError(true); setTimeError(false); return false; } else if ( CheckEndDate == 0 ) { setDateError(false); // start & end same ...
else if ( CheckEndDate == 0 )
else if (dateComparison == 0)
function checkSetTimeDate(){ var CheckEndDate = checkEndDate(); var CheckEndTime = checkEndTime(); if ( CheckEndDate < 0 ) { // end before start setDateError(true); setTimeError(false); return false; } else if ( CheckEndDate == 0 ) { setDateError(false); // start & end same ...
setTimeError(CheckEndTime); return !CheckEndTime;
var isBadEndTime = gEndDate.getTime() < gStartDate.getTime(); setTimeError(isBadEndTime); return !isBadEndTime;
function checkSetTimeDate(){ var CheckEndDate = checkEndDate(); var CheckEndTime = checkEndTime(); if ( CheckEndDate < 0 ) { // end before start setDateError(true); setTimeError(false); return false; } else if ( CheckEndDate == 0 ) { setDateError(false); // start & end same ...
var spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (spellChecker) { dump("Check Spelling starting...\n"); try { firstMisspelledWord = spellChecker.StartSpellChecking(); } catch(ex) { dump("*** Exception error: StartSpellChecking\n"); return; } if( firstMisspelledWord == "") { ...
return _EditorObsolete();
function CheckSpelling(){ var spellChecker = editorShell.QueryInterface(Components.interfaces.nsIEditorSpellCheck); if (spellChecker) { dump("Check Spelling starting...\n"); // Start the spell checker module. Return is first misspelled word try { firstMisspelledWord = spellChecker.StartSpellChecking();...
var testcases = win.testcases; for (var i = 0; i < testcases.length; i++) { var testcase = testcases[i]; cdump('testname: ' + testcase.name + ' ' + 'bug: ' + testcase.bugnumber + ' ' + (testcase.passed ? 'PASSED':'FAILED') + ' ' + 'description: ' + testcase.description + ' ' + 'expected: ' + testcase.expe...
function checkTestCompleted(){ var win = gSpider.mDocument.defaultView; if (win.wrappedJSObject) { win = win.wrappedJSObject; } if (win.gPageCompleted) { gPageCompleted = true; } else { dlog('page not completed, recheck'); setTimeout(checkTestCompleted, gCheckInterval); } }
if (!accountValues) return true;
function checkUserServerChanges(showAlert) { var accountValues = getValueArrayFor(currentServerId); var pageElements = getPageFormElements(); if (pageElements == null) return true; // Get the new username, hostname and type from the page var newUser, newHost, newType, oldUser, oldHost; var uIndx, hIndx; for (var...
if (! accountValues[type]) return true;
function checkUserServerChanges(showAlert) { var accountValues = getValueArrayFor(currentServerId); var pageElements = getPageFormElements(); if (pageElements == null) return true; // Get the new username, hostname and type from the page var newUser, newHost, newType, oldUser, oldHost; var uIndx, hIndx; for (var...
word = gDialog.ReplaceWordInput.value;
var word = gDialog.ReplaceWordInput.value;
function CheckWord(){ word = gDialog.ReplaceWordInput.value; if (word) { if (gSpellChecker.CheckCurrentWord(word)) { FillSuggestedList(word); SetReplaceEnable(); } else { ClearListbox(gDialog.SuggestedList); var item = gDialog.SuggestedList.appendItem(GetString("CorrectSpelling"...
word = dialog.replaceWordInput.value;
word = dialog.ReplaceWordInput.value;
function CheckWord(){ //dump("SpellCheck: CheckWord\n"); word = dialog.replaceWordInput.value; if (word != "") { //dump("CheckWord: Word in edit field="+word+"\n"); isMisspelled = spellChecker.CheckCurrentWord(word); if (isMisspelled) { dump("CheckWord says word was misspelled\n"); misspelledWord ...
misspelledWord = word;
MisspelledWord = word;
function CheckWord(){ //dump("SpellCheck: CheckWord\n"); word = dialog.replaceWordInput.value; if (word != "") { //dump("CheckWord: Word in edit field="+word+"\n"); isMisspelled = spellChecker.CheckCurrentWord(word); if (isMisspelled) { dump("CheckWord says word was misspelled\n"); misspelledWord ...
ClearList(dialog.suggestedList); AppendStringToList(dialog.suggestedList, GetString("CorrectSpelling"));
ClearList(dialog.SuggestedList); AppendStringToList(dialog.SuggestedList, GetString("CorrectSpelling"));
function CheckWord(){ //dump("SpellCheck: CheckWord\n"); word = dialog.replaceWordInput.value; if (word != "") { //dump("CheckWord: Word in edit field="+word+"\n"); isMisspelled = spellChecker.CheckCurrentWord(word); if (isMisspelled) { dump("CheckWord says word was misspelled\n"); misspelledWord ...
ClearList(dialog.SuggestedList); AppendStringToList(dialog.SuggestedList, GetString("CorrectSpelling"));
ClearTreelist(dialog.SuggestedList); var item = AppendStringToTreelistById(dialog.SuggestedList, "CorrectSpelling"); if (item) item.setAttribute("disabled", "true");
function CheckWord(){ //dump("SpellCheck: CheckWord\n"); word = dialog.ReplaceWordInput.value; if (word != "") { //dump("CheckWord: Word in edit field="+word+"\n"); isMisspelled = spellChecker.CheckCurrentWord(word); if (isMisspelled) { dump("CheckWord says word was misspelled\n"); MisspelledWord ...
"NC:SearchCategory?category=" + aNode.id;
"NC:SearchCategory?category=" + aNode.getAttribute("id");
function chooseCategory( aNode ){ var category = !aNode.id ? "NC:SearchEngineRoot" : "NC:SearchCategory?category=" + aNode.id; if (pref) pref.SetUnicharPref("browser.search.last_search_category", category); var treeNode = document.getElementById("searchengines"); if (treeNode) treeNode.setA...
}
function chooseCategory( aNode ){ var category = !aNode.id ? "NC:SearchEngineRoot" : "NC:SearchCategory?category=" + aNode.id; if (pref) pref.SetUnicharPref("browser.search.last_search_category", category); var treeNode = document.getElementById("searchengines"); if (treeNode) treeNode.setA...
debug("\nSet search engine list to category='" + category + "'\n\n");
dump("*** Set search engine list to category=" + category + "\n");
function chooseCategory( aNode ){ var category = "NC:SearchCategory?category=" + aNode.getAttribute("id"); debug("chooseCategory: '" + category + "'\n"); var treeNode = document.getElementById("engineList"); if (treeNode) { debug("\nSet search engine list to category='" + category + "'\n\n"); treeNode.setAttribute( "...
treeNode.builder.rebuild();
function chooseCategory( aNode ){ var category = "NC:SearchCategory?category=" + aNode.getAttribute("id"); debug("chooseCategory: '" + category + "'\n"); var treeNode = document.getElementById("engineList"); if (treeNode) { debug("\nSet search engine list to category='" + category + "'\n\n"); treeNode.setAttribute( "...
if (pref) pref.SetUnicharPref("browser.search.last_search_category", category);
nsPreferences.setUnicharPref("browser.search.last_search_category", category);
function chooseCategory( aNode ){ var category = !aNode.id ? "NC:SearchEngineRoot" : "NC:SearchCategory?category=" + aNode.getAttribute("id"); if (pref) pref.SetUnicharPref("browser.search.last_search_category", category); var treeNode = document.getElementById("searchengines"); if (treeNode) ...
if (treeNode) { debug("chooseCategory: ref='" + category + "'\n"); treeNode.setAttribute("ref", category); }
treeNode.setAttribute("ref", category);
function chooseCategory( aNode ){ var category = !aNode.id ? "NC:SearchEngineRoot" : "NC:SearchCategory?category=" + aNode.getAttribute("id"); if (pref) pref.SetUnicharPref("browser.search.last_search_category", category); var treeNode = document.getElementById("searchengines"); if (treeNode) ...
dialog.BackgroundImageInput.focus();
SetTextfieldFocus(dialog.BackgroundImageInput);
function chooseFile(){ // Get a local file, converted into URL format fileName = GetLocalFileURL("img"); if (fileName && fileName != "") { dialog.BackgroundImage = fileName; dialog.BackgroundImageInput.value = fileName; dialog.BackgroundImageCheckbox.checked = true; dialog.ColorPreview.setAttribute(back...
dialog.srcInput.focus();
SetTextfieldFocus(dialog.srcInput);
function chooseFile(){ // Get a local file, converted into URL format fileName = GetLocalFileURL("img"); if (fileName && fileName != "") { dialog.srcInput.value = fileName; doOverallEnabling(); } // Put focus into the input field dialog.srcInput.focus();}