rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
e.channel = new CIRCChannel(this, e.params[1]); e.channel.topicBy = e.user.properNick;
e.channel = new CIRCChannel(this, null, e.params[1]); e.channel.topicBy = e.user.unicodeName;
function serv_topic (e){ e.channel = new CIRCChannel(this, e.params[1]); e.channel.topicBy = e.user.properNick; e.channel.topicDate = new Date(); e.channel.topic = toUnicode(e.params[2], e.channel); e.destObject = e.channel; e.set = "channel"; return true;}
e.channel.topicBy = e.user.nick;
e.channel.topicBy = e.user.properNick;
function serv_topic (e){ e.channel = new CIRCChannel (this, e.params[1]); e.channel.topicBy = e.user.nick; e.channel.topicDate = new Date(); e.channel.topic = toUnicode(e.params[2], e.channel.charset); e.destObject = e.channel; e.set = "channel"; return true; }
e.user = new CIRCUser(this, e.params[1])
e.user = new CIRCUser(this, null, e.params[1])
function serv_usermode (e){ e.user = new CIRCUser(this, e.params[1]) e.user.modestr = e.params[2]; e.destObject = this.parent; e.set = "network"; // usermode usually happens on connect, after the MOTD, so it's a good // place to kick off the lag timer. this.updateLagTimer(); return true;}
this.sendData ("WHOIS " + target + "\n");
this.sendData("WHOIS " + fromUnicode(target, this) + "\n");
function serv_whois (target) { this.sendData ("WHOIS " + target + "\n");}
if (isMailAccount && isMailAccount.value){
if (isMailAccount && isMailAccount.value && !gHideIncoming){
function serverPageInit() { gOnMailServersPage = (document.documentElement.currentPage.id == "serverpage"); gOnNewsServerPage = (document.documentElement.currentPage.id == "newsserver"); if (gOnNewsServerPage) { var newsServer = document.getElementById("newsServer"); var pageData = parent.GetPageData(); tr...
setServerType();
function serverPageInit() { gOnMailServersPage = (document.documentElement.currentPage.id == "serverpage"); gOnNewsServerPage = (document.documentElement.currentPage.id == "newsserver"); if (gOnNewsServerPage) { var newsServer = document.getElementById("newsServer"); var pageData = parent.GetPageData(); tr...
var smtpServer = parent.smtpService.defaultServer;
var smtpServer = null; try { smtpServer = parent.smtpService.defaultServer; } catch(ex){}
function serverPageInit() { gOnMailServersPage = (document.documentElement.currentPage.id == "serverpage"); gOnNewsServerPage = (document.documentElement.currentPage.id == "newsserver"); // Server type selection (pop3 or imap) is for mail accounts only var isMailAccount = parent.GetPageData().accounttype.mailaccoun...
var pageData = parent.GetPageData()
var pageData = parent.GetPageData();
function serverPageInit() { gOnMailServersPage = (document.documentElement.currentPage.id == "serverpage"); gOnNewsServerPage = (document.documentElement.currentPage.id == "newsserver"); if (gOnNewsServerPage) { var newsServer = document.getElementById("newsServer"); var pageData = parent.GetPageData() try...
var isMailAccount = pageData.accounttype.mailaccount; if (isMailAccount && isMailAccount.value && !gHideIncoming){
var isMailAccount = pageData.accounttype.mailaccount.value; var isOtherAccount = pageData.accounttype.otheraccount.value; if (isMailAccount && !gHideIncoming) {
function serverPageInit() { gOnMailServersPage = (document.documentElement.currentPage.id == "serverpage"); gOnNewsServerPage = (document.documentElement.currentPage.id == "newsserver"); if (gOnNewsServerPage) { var newsServer = document.getElementById("newsServer"); var pageData = parent.GetPageData(); tr...
} else if (isOtherAccount) { document.getElementById("incomingServerSeparator").hidden = true; document.getElementById("deferStorageBox").hidden = true;
function serverPageInit() { gOnMailServersPage = (document.documentElement.currentPage.id == "serverpage"); gOnNewsServerPage = (document.documentElement.currentPage.id == "newsserver"); if (gOnNewsServerPage) { var newsServer = document.getElementById("newsServer"); var pageData = parent.GetPageData(); tr...
var smtpTextBox = document.getElementById("smtphostname");
function serverPageInit() { gOnMailServersPage = (document.documentElement.currentPage.id == "serverpage"); gOnNewsServerPage = (document.documentElement.currentPage.id == "newsserver"); // Server type selection (pop3 or imap) is for mail accounts only var isMailAccount = parent.GetPageData().accounttype.mailaccoun...
if (smtpTextBox && smtpTextBox.value == "" && smtpServer.hostname) smtpTextBox.value = smtpServer.hostname;
function serverPageInit() { gOnMailServersPage = (document.documentElement.currentPage.id == "serverpage"); gOnNewsServerPage = (document.documentElement.currentPage.id == "newsserver"); // Server type selection (pop3 or imap) is for mail accounts only var isMailAccount = parent.GetPageData().accounttype.mailaccoun...
((hostnameIsIllegal(incomingServerName.value)) ||
((hostnameIsIllegal(incomingServerName.value) && !gHideIncoming) ||
function serverPageValidate() { var smtpserver = document.getElementById("smtphostname"); var incomingServerName = document.getElementById("incomingServer"); var newsServerName = document.getElementById("newsServer"); if ((gOnMailServersPage && ((hostnameIsIllegal(incomingServerName.value)) || (hostnam...
setPageData(pageData, "server", "hostname", incomingServerName.value);
if (!gHideIncoming) { setPageData(pageData, "server", "hostname", incomingServerName.value); }
function serverPageValidate() { var smtpserver = document.getElementById("smtphostname"); var incomingServerName = document.getElementById("incomingServer"); var newsServerName = document.getElementById("newsServer"); if ((gOnMailServersPage && ((hostnameIsIllegal(incomingServerName.value)) || (hostnam...
[s.parent.name, s.me.properNick, s.connection.host,
[s.parent.name, s.me.unicodeName, s.connection.host,
function serverStatus (s) { if (!s.connection.isConnected) { display(getMsg(MSG_NOT_CONNECTED, s.parent.name), MT_STATUS); return; } var serverType = (s.parent.primServ == s) ? MSG_PRIMARY : MSG_SECONDARY; display(getMsg(MSG_CONNECTION_INFO, ...
supports = nsJSSupportsUtils.createSupportsWString();
supports = Components.classes["@mozilla.org/supports-wstring;1"] .createInstance(Components.interfaces.nsISupportsWString);
set: function (aTransferDataSet) { var trans = this.createTransferable(); for (var i = 0; i < aTransferDataSet.dataList.length; ++i) { var currData = aTransferDataSet.dataList[i]; var currFlavour = currData.flavour.contentType; trans.addDataFlavor(currFlavour); ...
set icalString(value) {
set icalComponent(event) {
set icalString(value) { if (this.mImmutable) throw Components.results.NS_ERROR_FAILURE; var event = icalFromString(value); if (event.componentType != "VEVENT"); { event = event.getFirstSubcomponent("VEVENT"); if (!event) throw Components.results.N...
var event = icalFromString(value);
set icalString(value) { if (this.mImmutable) throw Components.results.NS_ERROR_FAILURE; var event = icalFromString(value); if (event.componentType != "VEVENT"); { event = event.getFirstSubcomponent("VEVENT"); if (!event) throw Components.results.N...
},
}
set icalString(value) { if (this.mImmutable) throw Components.results.NS_ERROR_FAILURE; var event = icalFromString(value); if (event.componentType != "VEVENT"); { event = event.getFirstSubcomponent("VEVENT"); if (!event) throw Components.results.N...
this.log( "setting calId to " + id ); this.m_calId = id;
this.log( "overriding calId to " + id ); this.m_overriddencalId = id;
set calId( id ) { this.log( "setting calId to " + id ); this.m_calId = id; },
setLocalizedPref(BROWSER_SEARCH_PREF + "selectedEngine", this._currentEngine.name);
var currentEnginePref = BROWSER_SEARCH_PREF + "selectedEngine"; var prefB = Cc["@mozilla.org/preferences-service;1"]. getService(Ci.nsIPrefService).QueryInterface(Ci.nsIPrefBranch); if (this._currentEngine == this.defaultEngine) { if (prefB.prefHasUserValue(currentEnginePref)) prefB.clearUserPref(currentEnginePref); ...
set currentEngine(val) { ENSURE_ARG(val instanceof Ci.nsISearchEngine, "Invalid argument passed to currentEngine setter"); var newCurrentEngine = this.getEngineByName(val.name); ENSURE(newCurrentEngine, "Can't find engine in store!", Cr.NS_ERROR_UNEXPECTED); this._currentEngine = n...
this.mOlBox.view = new ComputedStyleView(aObject);
this.mTree.view = new ComputedStyleView(aObject);
set subject(aObject) { this.mOlBox.view = new ComputedStyleView(aObject); this.mObsMan.dispatchEvent("subjectChange", { subject: aObject }); },
this.mMemoryCalendar.uri = aUri;
set uri(aUri) { // Lock other changes to the item list. this.locked = true; // set to prevent writing after loading, without any changes this.loading = true; this.mUri = aUri; var ioService = Components.classes["@mozilla.org/network/io-service;1"] ...
set icalComponent() {
set icalComponent(event) {
set icalComponent() { this.modify(); if (event.componentType != "VTODO") { event = event.getFirstSubcomponent("VTODO"); if (!event) throw Components.results.NS_ERROR_INVALID_ARG; } this.setItemBaseFromICS(event); this.mapPropsFromICS(event, thi...
},
}
set value(value) { if (value != this._value) this._pb.setCharPref(this._pref, this._serializable.serialize(value)); return value; },
return val;
set engines(val) { this._engines = val; },
mStampDate: null, get stampDate() { return this.mStampDate; }, set stampDate(v) { if (this.mImmutable) throw Components.results.NS_ERROR_FAILURE; else this.mStampDate = v; }
set icalString(value) { if (this.mImmutable) throw Components.results.NS_ERROR_FAILURE; var ical = icalFromString(value); var event = ical.getFirstSubcomponent(Components.interfaces.calIIcalComponent.VEVENT_COMPONENT); if (!event) throw Components.results.NS_ERROR_INVALID_ARG; this.setItemBaseFromICS(event); var prop...
mStampDate: null, get stampDate() { return this.mStampDate; }, set stampDate(v) { if (this.mImmutable) throw Components.results.NS_ERROR_FAILURE; else this.mStampDate = v; }
var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var channel = ioService.newChannelFromURI(fixupUri(this.mUri)); if (channel instanceof Components.interfaces.nsIHttpChannel) { this.mHooks = new httpHooks(); } else { this.mHooks = new dummyHooks();...
set uri(aUri) { this.mUri = aUri; this.mMemoryCalendar.uri = this.mUri; this.refresh(); },
window.setTimeout(function(aItem) { aItem.toggleOpenState() }, 1, ti);
set subject(aObject) { this.mSubject = aObject; this.emptyTree(this.mTreeKids); var ti = this.addTreeItem(this.mTreeKids, "target", aObject, aObject); this.openTreeItem(ti); window.setTimeout(function(aItem) { aItem.toggleOpenState() }, 1, ti); this.mObsMan.dispatchEvent("subjectChange", { subject...
if (type == this.BASE64) this._value = this._createType(this.STRING); else this._value = this._createType(type);
if (type == this.BASE64) this._value = this._createType(this.STRING, {}); else this._value = this._createType(type, {});
set type(type) { this._type = type; if (type == this.BASE64) this._value = this._createType(this.STRING); else this._value = this._createType(type); },
this.setTextValue("nodeType", aObject.nodeType);
this.setTextValue("nodeType", bundle.getString(aObject.nodeType));
set subject(aObject) { // the node value's textbox won't fire onchange when we change subjects, so // let's fire it. this won't do anything if it wasn't actually changed viewer.pane.panelset.execCommand('cmdEditNodeValue'); this.mSubject = aObject; var deck = document.getElementById("dkContent"); ...
this.log( "overriding calId to " + id ); this.m_overriddencalId = id;
this.log( "setting calId to " + id ); this.m_calId = id; this.m_calProps = null; this.getCalProps_( true );
set calId( id ) { this.log( "overriding calId to " + id ); this.m_overriddencalId = id; },
element.selectedItem = element.getElementsByAttribute("value", aDataObject.value)[0];
element.selectedItem = aDataObject.value;
set_Menulist: function (aElementID, aDataObject) { var element = gCurrentWindow.document.getElementById(aElementID); // set all generic properties wsm.generic_Set(element, aDataObject); // set menulist specific properties if ("value" in aDataObject) { try { element.selectedItem = element.g...
element.selectedItem = aDataObject.value;
element.value = aDataObject.value;
set_Menulist: function (aElementID, aDataObject) { var element = gCurrentWindow.document.getElementById(aElementID); // set all generic properties wsm.generic_Set(element, aDataObject); // set menulist specific properties if ("value" in aDataObject) { try { element.selectedItem = aDataObje...
if( 'disabled' in aDataObject ) { element.disabled = aDataObject.disabled; }
set_Radiogroup: function ( aElementID, aDataObject ) { var element = wsm.contentArea.document.getElementById( aElementID ); wsm.generic_Set( element, aDataObject ); if( 'value' in aDataObject ) { element.selectedItem = element.getElementsByAttribute( "v...
UpdateSortIndicators(sortColumn, sortDirection);
function SetAbView(uri, sortColumn, sortDirection){ CloseAbView(); if (!sortColumn) sortColumn = kDefaultSortColumn; if (!sortDirection) sortDirection = kDefaultAscending; gAbView = Components.classes["@mozilla.org/addressbook/abview;1"].createInstance(Components.interfaces.nsIAbView); var actualSortColumn =...
if (selectedItemId == "mailaccount") setMailAccountTypeData(); else if (selectedItemId == "newsaccount") setNewsAccountTypeData();
var pageData = parent.GetPageData(); setPageData(pageData, "accounttype", "mailaccount", mail); setPageData(pageData, "accounttype", "newsaccount", news); setPageData(pageData, "accounttype", "otheraccount", !(news || mail));
function setAccountTypeData() { var rg = document.getElementById("acctyperadio"); var selectedItemId = rg.selectedItem.id; if (selectedItemId == "mailaccount") setMailAccountTypeData(); else if (selectedItemId == "newsaccount") setNewsAccountTypeData();}
if (!accountValues[type])
if (!(type in accountValues))
function setAccountValue(accountValues, type, slot, value) { if (!accountValues[type]) accountValues[type] = new Array; //dump("Form->Array: accountValues[" + type + "][" + slot + "] = " + value + "\n"); accountValues[type][slot] = value;}
function setApplicationIconForAttachment(attachment, listitem)
function setApplicationIconForAttachment(attachment, listitem, largeView)
function setApplicationIconForAttachment(attachment, listitem){ // generate a moz-icon url for the attachment so we'll show a nice icon next to it. listitem.setAttribute('image', "moz-icon:" + "//" + attachment.displayName + "?size=16&contentType=" + attachment.contentType);}
listitem.setAttribute('image', "moz-icon:" + "
var iconSize = largeView ? kLargeIcon : kSmallIcon; listitem.setAttribute('image', "moz-icon:" + "
function setApplicationIconForAttachment(attachment, listitem){ // generate a moz-icon url for the attachment so we'll show a nice icon next to it. listitem.setAttribute('image', "moz-icon:" + "//" + attachment.displayName + "?size=16&contentType=" + attachment.contentType);}
for (var a in attrs) obj.setAttribute (a, attrs[a]);
if (attrs) { for (var a in attrs) obj.setAttribute (a, attrs[a]); }
function setAttribs (obj, c, attrs) { for (var a in attrs) obj.setAttribute (a, attrs[a]); obj.setAttribute ("class", c); obj.setAttribute ("msg-type", msgtype); obj.setAttribute ("msg-dest", toAttr); obj.setAttribute ("dest-type", toType); obj.setAttribute ("...
obj.setAttribute("msg-type", msgtype);
obj.setAttribute("msg-type", mtname); if (monospace) obj.setAttribute("monospace", "true");
function setAttribs (obj, c, attrs) { if (attrs) { for (var a in attrs) obj.setAttribute (a, attrs[a]); } obj.setAttribute("class", c); obj.setAttribute("msg-type", msgtype); }
if (!jsdScript.isValid) return false;
function setBP (scriptWrapper) { var jsdScript = scriptWrapper.jsdScript; if (!jsdScript.isValid) return false; if (line >= jsdScript.baseLineNumber && line <= jsdScript.baseLineNumber + jsdScript.lineExtent && jsdScript.isLineExecutable (line, PCMAP_SOURCETE...
jsdScript.isLineExecutable (line, PCMAP_SOURCETEXT))
(jsdScript.isLineExecutable (line, PCMAP_SOURCETEXT) || jsdScript.baseLineNumber == line))
function setBP (scriptWrapper) { var jsdScript = scriptWrapper.jsdScript; if (!jsdScript.isValid) return false; if (line >= jsdScript.baseLineNumber && line <= jsdScript.baseLineNumber + jsdScript.lineExtent && jsdScript.isLineExecutable (line, PCMAP_SOURCETE...
scriptWrapper.setBreakpoint(jsdScript.lineToPc(line, PCMAP_SOURCETEXT), parentBP);
var pc = jsdScript.lineToPc(line, PCMAP_SOURCETEXT); scriptWrapper.setBreakpoint(pc, parentBP, props);
function setBP (scriptWrapper) { var jsdScript = scriptWrapper.jsdScript; if (!jsdScript.isValid) return false; if (line >= jsdScript.baseLineNumber && line <= jsdScript.baseLineNumber + jsdScript.lineExtent && jsdScript.isLineExecutable (line, PCMAP_SOURCETE...
if (bpList.length) display (getMsg(MSN_BP_CREATED, [fileName, line, bpList.length])); else display (getMsg(MSN_ERR_BP_NOLINE, [fileName, line]), MT_ERROR);
display (getMsg(MSN_BP_CREATED, [fileName, line, bpList.length]));
function setBreakpoint (fileName, line){ var ary = console._scripts[fileName]; if (!ary) { display (getMsg(MSN_ERR_NOSCRIPT, fileName), MT_ERROR); return false; } var bpList = new Array(); for (var i = 0; i < ary.length; ++i) { if (ary[i].baseLineNumber <= line && ...
scriptRec.sourceText.sourceText[line - 1])
scriptRec.sourceText.lines[line - 1])
function setBreakpoint (fileName, line){ var scriptRec = console.scripts[fileName]; if (!scriptRec) { display (getMsg(MSN_ERR_NOSCRIPT, fileName), MT_ERROR); return null; } var bpr = console.breakpoints.locateChildByFileLine (fileName, line); if (bpr) { display (getMsg(MSN_...
scriptRec.sourceText.sourceText[line - 1].bpRecord = bpr;
scriptRec.sourceText.lines[line - 1].bpRecord = bpr;
function setBreakpoint (fileName, line){ var scriptRec = console.scripts[fileName]; if (!scriptRec) { display (getMsg(MSN_ERR_NOSCRIPT, fileName), MT_ERROR); return null; } var bpr = console.breakpoints.locateChildByFileLine (fileName, line); if (bpr) { display (getMsg(MSN_...
gProfileDirURL = Components.classes["@mozilla.org/network/standard-url;1"].createInstance(Components.interfaces.nsIFileURL); gIconFileURL = Components.classes["@mozilla.org/network/standard-url;1"].createInstance(Components.interfaces.nsIFileURL);
function setBuddyIcon(card, buddyIcon){ try { var myScreenName = gPrefs.getCharPref("aim.session.screenname"); if (myScreenName && card.primaryEmail) { if (!gProfileDirURL) { // lazily create these file urls, and keep them around gProfileDirURL = Components.classes["@mozilla.org/network/standa...
gProfileDirURL.file = profile.getProfileDir(profile.currentProfile);
gProfileDirURL = gIOService.newFileURI(profile.getProfileDir(profile.currentProfile));
function setBuddyIcon(card, buddyIcon){ try { var myScreenName = gPrefs.getCharPref("aim.session.screenname"); if (myScreenName && card.primaryEmail) { if (!gProfileDirURL) { // lazily create these file urls, and keep them around gProfileDirURL = Components.classes["@mozilla.org/network/standa...
gIconFileURL.spec = iconURLStr;
var file = gFileHandler.getFileFromURLSpec(iconURLStr);
function setBuddyIcon(card, buddyIcon){ try { var myScreenName = gPrefs.getCharPref("aim.session.screenname"); if (myScreenName && card.primaryEmail) { if (!gProfileDirURL) { // lazily create these file urls, and keep them around gProfileDirURL = Components.classes["@mozilla.org/network/standa...
if (gIconFileURL.file.exists()) {
if (file.exists()) {
function setBuddyIcon(card, buddyIcon){ try { var myScreenName = gPrefs.getCharPref("aim.session.screenname"); if (myScreenName && card.primaryEmail) { if (!gProfileDirURL) { // lazily create these file urls, and keep them around gProfileDirURL = Components.classes["@mozilla.org/network/standa...
if (calendarList.selectedIndex == -1) calendarList.selectedIndex = 0;
function setCalendarManagerUI(){ var calendarList = document.getElementById("list-calendars-listbox"); var child; while ((child = calendarList.lastChild) && (child.tagName == "listitem")) { calendarList.removeChild(child); } var composite = getCompositeCalendar(); var calmgr = getCalendarManage...
calendarList.selectedIndex = oldSelection;
function setCalendarManagerUI(){ var calendarList = document.getElementById("list-calendars-listbox"); var child; while ((child = calendarList.lastChild) && (child.tagName == "listitem")) { calendarList.removeChild(child); } var composite = getCompositeCalendar(); var calmgr = getCalendarManage...
top.window.title = displayName ? gAddressBookBundle.getFormattedString(editCard.titleProperty + "WithDisplayName", [displayName]) : gAddressBookBundle.getString(editCard.titleProperty);
document.title = displayName ? gAddressBookBundle.getFormattedString(editCard.titleProperty + "WithDisplayName", [displayName]) : gAddressBookBundle.getString(editCard.titleProperty);
function SetCardDialogTitle(displayName){ top.window.title = displayName ? gAddressBookBundle.getFormattedString(editCard.titleProperty + "WithDisplayName", [displayName]) : gAddressBookBundle.getString(editCard.titleProperty); }
document.title = displayName ? gAddressBookBundle.getFormattedString(editCard.titleProperty + "WithDisplayName", [displayName]) : gAddressBookBundle.getString(editCard.titleProperty);
document.title = displayName ? gAddressBookBundle.getFormattedString(gEditCard.titleProperty + "WithDisplayName", [displayName]) : gAddressBookBundle.getString(gEditCard.titleProperty);
function SetCardDialogTitle(displayName){ document.title = displayName ? gAddressBookBundle.getFormattedString(editCard.titleProperty + "WithDisplayName", [displayName]) : gAddressBookBundle.getString(editCard.titleProperty); }
setCellText: function(row, colID, value) {},
setCellText: function(row, col, value) {},
setCellText: function(row, colID, value) {},
return true;
function setCheckbox(aChkMsg, aChkValue){ if (aChkMsg) { // XXX Would love to use hidden instead of collapsed, but the checkbox // fails to size itself properly when I do this. document.getElementById("checkboxContainer").removeAttribute("collapsed"); var checkboxElement = document.getElementById("chec...
return false;
function setCheckbox(aChkMsg, aChkValue){ if (aChkMsg) { // XXX Would love to use hidden instead of collapsed, but the checkbox // fails to size itself properly when I do this. document.getElementById("checkboxContainer").removeAttribute("collapsed"); var checkboxElement = document.getElementById("chec...
document.getElementById(checkboxID).checked = true;
if (checkboxID && checkboxID.length > 0) { document.getElementById(checkboxID).checked = true; }
function SetCheckbox(checkboxID){ // Set associated checkbox document.getElementById(checkboxID).checked = true; if (currentPanel == CellPanel) CellDataChanged = true;}
if (backgroundImage) styleValue += ";"+backImageStyle+backgroundImage+");";
if (gBackgroundImage) styleValue += ";"+backImageStyle+gBackgroundImage+");";
function SetColorPreview(ColorWellID, color){ switch( ColorWellID ) { case "textCW": gDialog.NormalText.setAttribute(styleStr,colorStyle+color); break; case "linkCW": gDialog.LinkText.setAttribute(styleStr,colorStyle+color); break; case "activeCW": gDialog.ActiveLinkText.setAttribute...
var color = gDialog.ColorInput.value.trimString(); if (color.length > 0)
var color = TrimString(gDialog.ColorInput.value); if (color)
function SetColorSwatch(){ // TODO: DON'T ALLOW SPACES? var color = gDialog.ColorInput.value.trimString(); if (color.length > 0) { gDialog.ColorSwatch.setAttribute("style",("background-color:"+color)); gDialog.ColorSwatch.removeAttribute("default"); } else { gDialog.ColorSwatch.setAttribute("style",("ba...
var newTitle = document.getElementById('msgSubject').value;
var newTitle = GetMsgSubjectElement().value;
function SetComposeWindowTitle(){ var newTitle = document.getElementById('msgSubject').value; /* dump("newTitle = " + newTitle + "\n"); */ if (newTitle == "" ) newTitle = sComposeMsgsBundle.getString("defaultSubject"); newTitle += GetCharsetUIString(); document.title = sComposeMsgsBundle.getString("windowTitleP...
newTitle = gComposeMsgsBundle.getString("defaultSubject");
newTitle = sComposeMsgsBundle.getString("defaultSubject");
function SetComposeWindowTitle(event){ /* dump("event = " + event + "\n"); */ /* only set the title when they hit return (or tab?) */ var newTitle = document.getElementById('msgSubject').value; /* dump("newTitle = " + newTitle + "\n"); */ if (newTitle == "" ) { newTitle = gComposeMsgsBundle.getString("default...
window.title = gComposeMsgsBundle.getString("windowTitlePrefix") + " " + newTitle;
window.title = sComposeMsgsBundle.getString("windowTitlePrefix") + " " + newTitle;
function SetComposeWindowTitle(event){ /* dump("event = " + event + "\n"); */ /* only set the title when they hit return (or tab?) */ var newTitle = document.getElementById('msgSubject').value; /* dump("newTitle = " + newTitle + "\n"); */ if (newTitle == "" ) { newTitle = gComposeMsgsBundle.getString("default...
window.title = sComposeMsgsBundle.getString("windowTitlePrefix") + " " + newTitle;
document.title = sComposeMsgsBundle.getString("windowTitlePrefix") + " " + newTitle;
function SetComposeWindowTitle(){ var newTitle = document.getElementById('msgSubject').value; /* dump("newTitle = " + newTitle + "\n"); */ if (newTitle == "" ) newTitle = sComposeMsgsBundle.getString("defaultSubject"); newTitle += GetCharsetUIString(); window.title = sComposeMsgsBundle.getString("windowTitlePre...
gColor = color.trimString().toLowerCase();
gColor = TrimString(color).toLowerCase();
function SetCurrentColor(color){ // TODO: Validate color? if(!color) color = ""; gColor = color.trimString().toLowerCase(); if (gColor == "mixed") gColor = ""; gDialog.ColorInput.value = gColor; SetColorSwatch();}
if(!color) color = "";
function SetCurrentColor(color){ // TODO: Validate color? dialog.ColorInput.value = color.trimString().toLowerCase(); SetColorSwatch();}
dialog.ColorInput.value = color.trimString().toLowerCase();
color = color.trimString().toLowerCase(); if (color == "mixed") color = ""; dialog.ColorInput.value = color;
function SetCurrentColor(color){ // TODO: Validate color? if(!color) color = ""; dialog.ColorInput.value = color.trimString().toLowerCase(); SetColorSwatch();}
updateAppMotif(obj.prefs["motif.current"]);
function setCurrentObject (obj){ function clearList() { client.rdf.Unassert (client.rdf.resNullChan, client.rdf.resChanUser, client.rdf.resNullUser, true); }; if (!ASSERT(obj.messages, "INVALID OBJECT passed to setCurrentObject **")) return; if ("currentObject" i...
var output = document.getElementById ("output"); output.removeChild (output.firstChild); output.appendChild (obj.messages);
if (client.output.firstChild) client.output.removeChild (client.output.firstChild); client.output.appendChild (obj.messages);
function setCurrentObject (obj){ if (!obj.messages) { dd ("** INVALID OBJECT passed to setCurrentObject **"); return false; } var tb = getTBForObject(client.currentObject); if (tb) tb.setAttribute ("src", client.NACT_IMG); var output = document.getElementById ("output"); output...
quickList.removeChild (quickList.firstChild);
if (quickList.firstChild) quickList.removeChild (quickList.firstChild);
function setCurrentObject (obj){ if (!obj.messages) { dd ("** INVALID OBJECT passed to setCurrentObject **"); return false; } var tb = getTBForObject(client.currentObject); if (tb) tb.setAttribute ("src", client.NACT_IMG); var output = document.getElementById ("output"); output...
updateNetwork(); updateChannel();
function setCurrentObject (obj){ if (!obj.messages) { dd ("** INVALID OBJECT passed to setCurrentObject **"); return false; } var tb = getTBForObject(client.currentObject); if (tb) tb.setAttribute ("src", client.NACT_IMG); var output = document.getElementById ("output"); output...
if (client.PRINT_DIRECTION == 1) scrollDown(obj.frame, false);
scrollDown(obj.frame, false);
function setCurrentObject (obj){ function clearList() { client.rdf.Unassert (client.rdf.resNullChan, client.rdf.resChanUser, client.rdf.resNullUser, true); }; if (!ASSERT(obj.messages, "INVALID OBJECT passed to setCurrentObject **")) return; if ("currentObject" i...
userList.treeBoxObject.selection.clearSelection ();
userList.treeBoxObject.selection.select(-1);
function setCurrentObject (obj){ function clearList() { client.rdf.Unassert (client.rdf.resNullChan, client.rdf.resChanUser, client.rdf.resNullUser, true); }; if (!ASSERT(obj.messages, "INVALID OBJECT passed to setCurrentObject **")) return; if ("currentO...
tb = getTabForObject(obj, true);
tb = dispatch("create-tab-for-view", { view: obj });
function setCurrentObject (obj){ function clearList() { client.rdf.Unassert (client.rdf.resNullChan, client.rdf.resChanUser, client.rdf.resNullUser, true); }; if (!ASSERT(obj.messages, "INVALID OBJECT passed to setCurrentObject **")) return; if ("currentO...
var direction = window.getComputedStyle(contentArea, null).direction; client.input.style.direction = direction;
client.input.setAttribute("dir", contentArea.getAttribute("dir"));
function setCurrentObject (obj){ function clearList() { client.rdf.Unassert (client.rdf.resNullChan, client.rdf.resChanUser, client.rdf.resNullUser, true); }; if (!ASSERT(obj.messages, "INVALID OBJECT passed to setCurrentObject **")) return; if ("currentO...
var fileurl = ioService.getURLSpecFromFile(file);
var fileHandler = ioService.getProtocolHandler("file").QueryInterface(Components.interfaces.nsIFileProtocolHandler); var fileurl = fileHandler.getURLSpecFromFile(file);
setDefault: function() { // Get RDF service. var rdf = Components.classes[ "@mozilla.org/rdf/rdf-service;1" ] .getService( Components.interfaces.nsIRDFService ); // Now ask if it knows about this mime type. var exists = false; var fileLocator = Components.classe...
this.initExplanation();
this.initAppAndSaveToDiskValues();
setDefault: function() { // Get RDF service. var rdf = Components.classes[ "@mozilla.org/rdf/rdf-service;1" ] .getService( Components.interfaces.nsIRDFService ); // Now ask if it knows about this mime type. var exists = false; var fileLocator = Components.classe...
if (this.mDefaultCalendar == cal)
if (this.mDefaultCalendar && this.mDefaultCalendar.uri.equals(cal.uri))
setDefaultCalendar: function (cal, usePref) { if (this.mDefaultCalendar == cal) // .equals(uri) ?? return; if (usePref && this.mPrefPrefix) { this.mCalMgr.deleteCalendarPref(this.mDefaultCalendar, this.mDefaultPref); this.mCal...
this.mCalMgr.deleteCalendarPref(this.mDefaultCalendar,
getCalendarManager().deleteCalendarPref(this.mDefaultCalendar,
setDefaultCalendar: function (cal, usePref) { if (this.mDefaultCalendar && this.mDefaultCalendar.uri.equals(cal.uri)) return; if (usePref && this.mPrefPrefix) { if (this.mDefaultCalendar) { this.mCalMgr.deleteCalendarPref(this.mDefaultCalendar, ...
this.mCalMgr.setCalendarPref(cal, this.mDefaultPref,
getCalendarManager().setCalendarPref(cal, this.mDefaultPref,
setDefaultCalendar: function (cal, usePref) { if (this.mDefaultCalendar && this.mDefaultCalendar.uri.equals(cal.uri)) return; if (usePref && this.mPrefPrefix) { if (this.mDefaultCalendar) { this.mCalMgr.deleteCalendarPref(this.mDefaultCalendar, ...
this.mCalMgr.deleteCalendarPref(this.mDefaultCalendar, this.mDefaultPref);
if (this.mDefaultCalendar) { this.mCalMgr.deleteCalendarPref(this.mDefaultCalendar, this.mDefaultPref); }
setDefaultCalendar: function (cal, usePref) { if (this.mDefaultCalendar && this.mDefaultCalendar.uri.equals(cal.uri)) return; if (usePref && this.mPrefPrefix) { this.mCalMgr.deleteCalendarPref(this.mDefaultCalendar, this.mDefaultPref); ...
function SetDefaultCharacterSet(node)
function SetDefaultCharacterSet(charset)
function SetDefaultCharacterSet(node){ dump("Charset Overlay menu item pressed: " + node.getAttribute('id') + "\n"); BrowserSetDefaultCharacterSet(node.getAttribute('id'));}
dump("Charset Overlay menu item pressed: " + node.getAttribute('id') + "\n"); BrowserSetDefaultCharacterSet(node.getAttribute('id'));
dump("Charset Overlay menu item pressed: " + charset + "\n"); BrowserSetDefaultCharacterSet(charset);
function SetDefaultCharacterSet(node){ dump("Charset Overlay menu item pressed: " + node.getAttribute('id') + "\n"); BrowserSetDefaultCharacterSet(node.getAttribute('id'));}
document.getElementById("details").setAttribute("value", details);
document.getElementById("details").value = details;
function setDetails(){ var index = parseInt(document.getElementById("nicknames").value); details = dialogParams.GetString(index+itemCount+3); document.getElementById("details").setAttribute("value", details);}
this.mDialogURL = ioService.getURLSpecFromFile(basefile);
this.mDialogURL = fileHandler.getURLSpecFromFile(basefile);
setDialogURL: function(aURL) { this.mDialogURL = aURL; // This block below doesn't work for now because none of the local file implementations // implement SetURL. So, for now, the url in the search file MUST be absolute :( /* this.mDialogURL = aURL; var baseFile = inSearchUtils.createLocalFile(this...
dump("Switching back to visible toolbar. gFormatToolbarHidden = "+gFormatToolbarHidden+"\n");
function SetDisplayMode(mode){ if (gIsHTMLEditor) { // Already in requested mode: // return false to indicate we didn't switch if (mode == gEditorDisplayMode) return false; gEditorDisplayMode = mode; // Save the last non-source mode so we can cancel source editing easily if (mode != DisplayMod...
if (selectedTab) {
if (selectedTab)
function SetDisplayMode(mode){ if (gIsHTMLEditor) { // Already in requested mode: // return false to indicate we didn't switch if (mode == gEditorDisplayMode) return false; gEditorDisplayMode = mode; // Save the last non-source mode so we can cancel source editing easily if (mode != DisplayMod...
}
function SetDisplayMode(mode){ if (gIsHTMLEditor) { // Already in requested mode: // return false to indicate we didn't switch if (mode == gEditorDisplayMode) return false; gEditorDisplayMode = mode; // Save the last non-source mode so we can cancel source editing easily if (mode != DisplayMod...
var htmlEditor = gEditor.QueryInterface(Components.interfaces.nsIHTMLEditor); if (htmlEditor)
if (!gIsHTMLEditor) return false; if (mode == gEditorDisplayMode) return false; gEditorDisplayMode = mode; if (mode != DisplayModeSource) PreviousNonSourceDisplayMode = mode; editorShell.SetDisplayMode(mode); var selectedTab = null; if (mode == DisplayModePreview) selectedTab = gPreviewModeButton; if (mode ==...
function SetDisplayMode(mode){ var htmlEditor = gEditor.QueryInterface(Components.interfaces.nsIHTMLEditor); if (htmlEditor) { // Already in requested mode: // return false to indicate we didn't switch if (mode == gEditorDisplayMode) return false; gEditorDisplayMode = mode; // Save the last non-...
if (mode == gEditorDisplayMode) return false;
gContentWindowDeck.setAttribute("selectedIndex","1");
function SetDisplayMode(mode){ var htmlEditor = gEditor.QueryInterface(Components.interfaces.nsIHTMLEditor); if (htmlEditor) { // Already in requested mode: // return false to indicate we didn't switch if (mode == gEditorDisplayMode) return false; gEditorDisplayMode = mode; // Save the last non-...
gEditorDisplayMode = mode; if (mode != DisplayModeSource) PreviousNonSourceDisplayMode = mode; editorShell.SetDisplayMode(mode); var selectedTab = null; if (mode == DisplayModePreview) selectedTab = gPreviewModeButton; if (mode == DisplayModeNormal) selectedTab = gNormalModeButton; if (mode == DisplayModeAllTags)...
gFormatToolbarHidden = gFormatToolbar.getAttribute("hidden"); if (gFormatToolbarHidden != "true")
function SetDisplayMode(mode){ var htmlEditor = gEditor.QueryInterface(Components.interfaces.nsIHTMLEditor); if (htmlEditor) { // Already in requested mode: // return false to indicate we didn't switch if (mode == gEditorDisplayMode) return false; gEditorDisplayMode = mode; // Save the last non-...
gContentWindowDeck.setAttribute("selectedIndex","1"); gFormatToolbarHidden = gFormatToolbar.getAttribute("hidden"); if (gFormatToolbarHidden != "true") { gFormatToolbar.setAttribute("hidden", "true"); } gSourceContentWindow.focus(); } else { gContentWindowDeck.setAttribute("selectedIndex","0"); if (gFormatToolbar...
gFormatToolbar.setAttribute("hidden", "true");
function SetDisplayMode(mode){ var htmlEditor = gEditor.QueryInterface(Components.interfaces.nsIHTMLEditor); if (htmlEditor) { // Already in requested mode: // return false to indicate we didn't switch if (mode == gEditorDisplayMode) return false; gEditorDisplayMode = mode; // Save the last non-...
window.updateCommands("mode_switch");
gSourceContentWindow.focus(); } else { gContentWindowDeck.setAttribute("selectedIndex","0");
function SetDisplayMode(mode){ var htmlEditor = gEditor.QueryInterface(Components.interfaces.nsIHTMLEditor); if (htmlEditor) { // Already in requested mode: // return false to indicate we didn't switch if (mode == gEditorDisplayMode) return false; gEditorDisplayMode = mode; // Save the last non-...
document.getElementById("viewPreviewMode").setAttribute("checked","false"); document.getElementById("viewNormalMode").setAttribute("checked","false"); document.getElementById("viewAllTagsMode").setAttribute("checked","false"); document.getElementById("viewSourceMode").setAttribute("checked","false");
if (gFormatToolbarHidden != "true") { gFormatToolbar.setAttribute("hidden", gFormatToolbarHidden); }
function SetDisplayMode(mode){ var htmlEditor = gEditor.QueryInterface(Components.interfaces.nsIHTMLEditor); if (htmlEditor) { // Already in requested mode: // return false to indicate we didn't switch if (mode == gEditorDisplayMode) return false; gEditorDisplayMode = mode; // Save the last non-...
var menuID; switch(mode) { case DisplayModePreview: menuID = "viewPreviewMode"; break; case DisplayModeNormal: menuID = "viewNormalMode"; break; case DisplayModeAllTags: menuID = "viewAllTagsMode"; break; case DisplayModeSource: menuID = "viewSourceMode"; break; } if (menuID) document.getElementById(menuID).setAttribut...
gContentWindow.focus(); }
function SetDisplayMode(mode){ var htmlEditor = gEditor.QueryInterface(Components.interfaces.nsIHTMLEditor); if (htmlEditor) { // Already in requested mode: // return false to indicate we didn't switch if (mode == gEditorDisplayMode) return false; gEditorDisplayMode = mode; // Save the last non-...
return true;
window.updateCommands("mode_switch"); document.getElementById("viewPreviewMode").setAttribute("checked","false"); document.getElementById("viewNormalMode").setAttribute("checked","false"); document.getElementById("viewAllTagsMode").setAttribute("checked","false"); document.getElementById("viewSourceMode").setAttribut...
function SetDisplayMode(mode){ var htmlEditor = gEditor.QueryInterface(Components.interfaces.nsIHTMLEditor); if (htmlEditor) { // Already in requested mode: // return false to indicate we didn't switch if (mode == gEditorDisplayMode) return false; gEditorDisplayMode = mode; // Save the last non-...
return false;
if (menuID) document.getElementById(menuID).setAttribute("checked","true"); return true;
function SetDisplayMode(mode){ var htmlEditor = gEditor.QueryInterface(Components.interfaces.nsIHTMLEditor); if (htmlEditor) { // Already in requested mode: // return false to indicate we didn't switch if (mode == gEditorDisplayMode) return false; gEditorDisplayMode = mode; // Save the last non-...
CollapseItem("editMenu", true); CollapseItem("insertMenu", true); CollapseItem("formatMenu", true); CollapseItem("tableMenu", true); SetViewMenuForHTMLSource(true); DisableItem("viewToolbar", true); DisableItem("viewSep1", true); DisableItem("viewSep1", true); DisableItem("composerCharsetMenu", true); DisableItem("...
DisableMenusForHTMLSource(true);
function SetDisplayMode(mode){ if (gIsHTMLEditor) { // Already in requested mode: // return false to indicate we didn't switch if (mode == gEditorDisplayMode) return false; gEditorDisplayMode = mode; // Save the last non-source mode so we can cancel source editing easily if (mode != DisplayMod...