rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
this.m_bSuppressAlarms = SUPPRESS_ALARMS;
function calWcapCalendar( calId, session ) { this.wrappedJSObject = this; this.m_calId = calId; this.m_session = session;}
gICalLib.removeObserver( this.calendarEventDataSourceObserver );
this.eventSource.removeObserver( this.calendarEventDataSourceObserver );
CalendarWindow.prototype.close = function calWin_close( ){ gICalLib.removeObserver( this.calendarEventDataSourceObserver ); }
return ( a.displayEndDate - b.displayEndDate );
return ( a.end.compare(b.end) );
CalendarWindow.prototype.compareDisplayEventEnd = function calWin_compareDisplayEventStart(a, b) { return ( a.displayEndDate - b.displayEndDate );}
if( document.getElementById( "event-filter-menulist" ).selectedItem.value == "current" ) { setTimeout( "refreshEventTree( false );", 150 ); }
CalendarWindow.prototype.setSelectedDate = function calWin_setSelectedDate( date ){ // Copy the date because we might mess with it in place this.selectedDate = new Date( date );}
document.getElementById("menu-numberofweeks-inview").setAttribute("disabled", true);
CalendarWindow.prototype.switchToDayView = function calWin_switchToDayView( ){ document.getElementById("month_view_command").removeAttribute("checked"); document.getElementById("multiweek_view_command").removeAttribute("checked"); document.getElementById("week_view_command").removeAttribute("checked"); docu...
document.getElementById("menu-numberofweeks-inview").setAttribute("disabled", true);
CalendarWindow.prototype.switchToMonthView = function calWin_switchToMonthView( ){ document.getElementById("week_view_command").removeAttribute("checked"); document.getElementById("multiweek_view_command").removeAttribute("checked"); document.getElementById("day_view_command").removeAttribute("checked"); do...
document.getElementById("menu-numberofweeks-inview").removeAttribute("disabled");
CalendarWindow.prototype.switchToMultiweekView = function calWin_switchToMultiweekView( ){ document.getElementById("month_view_command").removeAttribute("checked"); document.getElementById("week_view_command").removeAttribute("checked"); document.getElementById("day_view_command").removeAttribute("checked"); ...
document.getElementById("menu-numberofweeks-inview").setAttribute("disabled", true);
CalendarWindow.prototype.switchToWeekView = function calWin_switchToWeekView( ){ document.getElementById("month_view_command").removeAttribute("checked"); document.getElementById("multiweek_view_command").removeAttribute("checked"); document.getElementById("day_view_command").removeAttribute("checked"); doc...
if ( dialog.cancel.disabled ) { return; }
toolkit.CloseWindow( window );
function cancel() { if ( dialog.cancel.disabled ) { return; } //toolkit.CloseWindow( window );}
toolkit.CloseWindow( window );
window.close();
function cancel() { toolkit.CloseWindow( window );}
MicrosummaryPicker.destroy();
if (MicrosummaryPicker.enabled) MicrosummaryPicker.destroy();
function Cancel(){ MicrosummaryPicker.destroy(); return true;}
param.SetInt(0, 0);
args.hitOK = false;
function CancelButtonCallback() { param.SetInt(0, 0); /* user hit Cancel */ return true;}
ResetWindowTitleWithFilename();
function CancelHTMLSource(){ // Don't convert source text back into the DOM document gSourceContentWindow.value = ""; SetDisplayMode(PreviousNonSourceDisplayMode);}
gProgressDialog.SetProgressStatusCancel();
function CancelPublishing(){ try { gPersistObj.cancelSave(); // Cancel all networking transactions } catch (e) {} // If canceling publishing do not do any commands after this gCommandAfterPublishing = null; if (gProgressDialog) { // Close Progress dialog // (this will call FinishPublishing()) gPr...
if (gSpellChecker) { try { gSpellChecker.UninitSpellChecker(); } finally { gSpellChecker = null; } }
ExitSpellChecker();
function CancelSpellCheck(){ if (gSpellChecker) { try { gSpellChecker.UninitSpellChecker(); } finally { gSpellChecker = null; } } // Signal to calling window that we canceled window.opener.cancelSendMessage = true; return true;}
return sourceIndex != -1 && sourceIndex != targetIndex && (orientation == Ci.nsITreeView.DROP_BEFORE || orientation == Ci.nsITreeView.DROP_AFTER);
return (sourceIndex != -1 && sourceIndex != targetIndex && sourceIndex != (targetIndex + orientation));
canDrop: function(targetIndex, orientation) { var sourceIndex = this.getSourceIndexFromDrag(); return sourceIndex != -1 && sourceIndex != targetIndex && (orientation == Ci.nsITreeView.DROP_BEFORE || orientation == Ci.nsITreeView.DROP_AFTER); },
canHandleContent: function(contentType, command, windowTarget, desiredContentType)
canHandleContent: function(contentType, command, desiredContentType)
canHandleContent: function(contentType, command, windowTarget, desiredContentType) { var docShell = this.contentWindow.docShell; var contentListener; try { contentListener = docShell.QueryInterface(Components.interfaces.nsIInterfaceRequ...
return contentListener.canHandleContent(contentType, command, windowTarget, desiredContentType);
return contentListener.canHandleContent(contentType, command, desiredContentType);
canHandleContent: function(contentType, command, windowTarget, desiredContentType) { var docShell = this.contentWindow.docShell; var contentListener; try { contentListener = docShell.QueryInterface(Components.interfaces.nsIInterfaceRequ...
if (firstSlash >= 0) url = "http: url.substring(firstSlash + 1, url.length); else url = "http:
var existingSuffix = url.indexOf(suffix.substring(0, suffix.length - 1)); if (firstSlash >= 0) { if (existingSuffix == -1 || existingSuffix > firstSlash) url = url.substring(0, firstSlash) + suffix + url.substring(firstSlash + 1); } else url = url + (existingSuffix == -1 ? suffix : "/"); url = "http:
function canonizeUrl(aTriggeringEvent, aPostDataRef) { if (!gURLBar || !gURLBar.value) return; var url = gURLBar.value; // Only add the suffix when the URL bar value isn't already "URL-like". // Since this function is called from handleURLBarCommand, which receives // both mouse (from the go button) and keyboar...
if( appCore ) { status = appCore.walletRequestToCapture(window._content); }
var walletService = Components.classes["@mozilla.org/wallet/wallet-service;1"].getService(Components.interfaces.nsIWalletService); walletService.WALLET_RequestToCapture(window._content);
capture : function () { if( appCore ) { status = appCore.walletRequestToCapture(window._content); } },
if( appCore ) { status = appCore.walletRequestToCapture(window._content); }
var walletService = Components.classes["@mozilla.org/wallet/wallet-service;1"].getService(Components.interfaces.nsIWalletService); walletService.WALLET_RequestToCapture(window._content);
function capture(){ if( appCore ) { status = appCore.walletRequestToCapture(window._content); }}
var sockServiceClass =
const sockClassByName = Components.classes["@mozilla.org/network/socket-transport-service;1"]; const sockClassByID =
function CBSConnection (binary){ var sockServiceClass = Components.classesByID["{c07e81e0-ef12-11d2-92b6-00105a1b0d64}"]; if (!sockServiceClass) throw ("Couldn't get socket service class."); var sockService = sockServiceClass.getService(); if (!sockService) throw ("Couldn't get socket s...
var sockServiceClass = (sockClassByName || sockClassByID);
function CBSConnection (binary){ var sockServiceClass = Components.classesByID["{c07e81e0-ef12-11d2-92b6-00105a1b0d64}"]; if (!sockServiceClass) throw ("Couldn't get socket service class."); var sockService = sockServiceClass.getService(); if (!sockService) throw ("Couldn't get socket s...
this.binaryMode = binary || false;
if (typeof binary != "undefined") this.binaryMode = binary; else this.binaryMode = this.workingBinaryStreams;
function CBSConnection (binary){ /* Since 2003-01-17 18:14, Mozilla has had this contract ID for the STS. * Prior to that it didn't have one, so we also include the CID for the * STS back then - DO NOT UPDATE THE ID if it changes in Mozilla. */ const sockClassByName = Components.classes["@mozil...
if (!ASSERT(!this.binaryMode || this.workingBinaryStreams, "Unable to use binary streams in this build.")) { return null; }
function CBSConnection (binary){ /* Since 2003-01-17 18:14, Mozilla has had this contract ID for the STS. * Prior to that it didn't have one, so we also include the CID for the * STS back then - DO NOT UPDATE THE ID if it changes in Mozilla. */ const sockClassByName = Components.classes["@mozil...
return null;
throw ("Unable to use binary streams in this build.");
function CBSConnection (binary){ /* Since 2003-01-17 18:14, Mozilla has had this contract ID for the STS. * Prior to that it didn't have one, so we also include the CID for the * STS back then - DO NOT UPDATE THE ID if it changes in Mozilla. */ const sockClassByName = Components.classes["@mozil...
sourcefile.copyTo(destination, "");
try { sourcefile.copyTo(destination, ""); } catch (ex) { if (debug) { var bundle = document.getElementById("bundle_cckwizard"); gPromptService.alert(window, bundle.getString("windowTitle"), ex + "\n\nSource: " + source + "\n\nDestination: " + destination.path ); } throw("Stopping Javascript execution"); }
function CCKCopyFile(source, destination){ if (source.length == 0) return false; var sourcefile = Components.classes["@mozilla.org/file/local;1"] .createInstance(Components.interfaces.nsILocalFile); sourcefile.initWithPath(source); var destfile = destination.clone(); destfile.append(sour...
if (!file.exists())
if (!file.exists()) { DoEnabling(); toggleProxySettings();
function CCKReadConfigFile(srcdir){ var file = srcdir.clone(); file.append("cck.config"); if (!file.exists()) return; var stream = Components.classes["@mozilla.org/network/file-input-stream;1"] .createInstance(Components.interfaces.nsIFileInputStream); stream.init(file, 0x01, 0644, 0);...
if (firstpart == "ProxyType") { DoEnabling(); } if (firstpart == "shareAllProxies") { toggleProxySettings(); }
function CCKReadConfigFile(srcdir){ var file = srcdir.clone(); file.append("cck.config"); if (!file.exists()) return; var stream = Components.classes["@mozilla.org/network/file-input-stream;1"] .createInstance(Components.interfaces.nsIFileInputStream); stream.init(file, 0x01, 0644, 0);...
DoEnabling(); toggleProxySettings();
function CCKReadConfigFile(srcdir){ var file = srcdir.clone(); file.append("cck.config"); if (!file.exists()) return; var stream = Components.classes["@mozilla.org/network/file-input-stream;1"] .createInstance(Components.interfaces.nsIFileInputStream); stream.init(file, 0x01, 0644, 0);...
if (listitem.value.length) {
if (listitem.getAttribute("value").length) {
function CCKWriteDefaultJS(destdir){ var throbber1 = 'pref("browser.throbber.url", "'; var homepage1 = 'pref("browser.startup.homepage", "'; var homepage2 = 'pref("startup.homepage_override_url", "chrome://cck/content/cck.properties");\n'; var chromeurl = "chrome://cck/content/cck.properties";...
line = 'pref("' + listitem.label + '", ' + '"' + listitem.value + '"' + ');\n';
line = 'pref("' + listitem.getAttribute("label") + '", ' + '"' + listitem.getAttribute("value") + '"' + ');\n';
function CCKWriteDefaultJS(destdir){ var throbber1 = 'pref("browser.throbber.url", "'; var homepage1 = 'pref("browser.startup.homepage", "'; var homepage2 = 'pref("startup.homepage_override_url", "chrome://cck/content/cck.properties");\n'; var chromeurl = "chrome://cck/content/cck.properties";...
line = 'pref("' + listitem.label + '", ' + listitem.value + ');\n';
line = 'pref("' + listitem.getAttribute("label") + '", ' + listitem.getAttribute("value") + ');\n';
function CCKWriteDefaultJS(destdir){ var throbber1 = 'pref("browser.throbber.url", "'; var homepage1 = 'pref("browser.startup.homepage", "'; var homepage2 = 'pref("startup.homepage_override_url", "chrome://cck/content/cck.properties");\n'; var chromeurl = "chrome://cck/content/cck.properties";...
function chan_adduser (nick, modes)
function chan_adduser (unicodeName, modes)
function chan_adduser (nick, modes){ return new CIRCChanUser (this, nick, modes);}
return new CIRCChanUser (this, nick, modes);
return new CIRCChanUser(this, unicodeName, null, modes);
function chan_adduser (nick, modes){ return new CIRCChanUser (this, nick, modes);}
return this.users[this.parent.me.nick].isHalfOp;
return this.users[this.parent.me.canonicalName].isHalfOp;
function chan_amhalfop(){ return this.users[this.parent.me.nick].isHalfOp;}
return this.users[this.parent.me.nick].isOp;
return this.users[this.parent.me.canonicalName].isOp;
function chan_amop(){ return this.users[this.parent.me.nick].isOp;}
return this.parent.users[this.parent.parent.me.nick].isVoice;
return this.parent.users[this.parent.parent.me.canonicalName].isVoice;
function chan_amvoice(){ return this.parent.users[this.parent.parent.me.nick].isVoice;}
dd ("channel.display");
var msgRow = newInlineText ( {network: this.parent.parent.name , channel: this.name, user: nick, msgtype: msgtype}, "msg", "html:tr");
function chan_display (message, msgtype, nick){ var ary = message.split ("\n"); dd ("channel.display"); var msgContainer = newInlineText ("", "msg"); msgContainer.setAttribute ("network", this.parent.parent.name); msgContainer.setAttribute ("channel", this.name); msgContainer.setAttribute ("user",...
var msgContainer = newInlineText ("", "msg"); msgContainer.setAttribute ("network", this.parent.parent.name); msgContainer.setAttribute ("channel", this.name); msgContainer.setAttribute ("user", nick); msgContainer.setAttribute ("msgtype", msgtype);
if (nick) { var realNick; if (this.users[nick]) realNick = this.users[nick].properNick; else if (nick == "!ME") realNick = this.parent.me.properNick; else realNick = nick + "?"; switch (msgtype) { case "ACTION": nickText = newInlineText ("*" + realNick + "* ", "msg-user", "html:td"); break; case "NOTICE": nickText ...
function chan_display (message, msgtype, nick){ var ary = message.split ("\n"); dd ("channel.display"); var msgContainer = newInlineText ("", "msg"); msgContainer.setAttribute ("network", this.parent.parent.name); msgContainer.setAttribute ("channel", this.name); msgContainer.setAttribute ("user",...
var msg = newInlineText ("[" + msgtype + "]", "msg-type"); msg.setAttribute ("network", this.parent.parent.name); msg.setAttribute ("channel", this.name); msg.setAttribute ("user", nick); msg.setAttribute ("msgtype", msgtype); msgContainer.appendChild (msg);
case "PRIVMSG": nickText = newInlineText ("<" + realNick + "> ", "msg-user", "html:td"); break; } } if (nickText) { this.parity = (typeof this.parity != "undefined") ? this.parity : false; if ((this.lastNickDisplayed) && (nick != this.lastNickDisplayed)) { this.parity = !this.parity; this.lastNickDisplayed = nick; }...
function chan_display (message, msgtype, nick){ var ary = message.split ("\n"); dd ("channel.display"); var msgContainer = newInlineText ("", "msg"); msgContainer.setAttribute ("network", this.parent.parent.name); msgContainer.setAttribute ("channel", this.name); msgContainer.setAttribute ("user",...
var msg = newInlineText (ary[l], "msg-data"); msg.setAttribute ("network", this.parent.parent.name); msg.setAttribute ("channel", this.name); msg.setAttribute ("user", nick); msg.setAttribute ("msgtype", msgtype); if (nick) { var nickText; var realNick = (nick == "!ME") ? this.parent.me.properNick : this.users[nick].p...
msgData.appendChild (newInlineText (ary[l])); msgData.appendChild (document.createElement ("html:br"));
function chan_display (message, msgtype, nick){ var ary = message.split ("\n"); dd ("channel.display"); var msgContainer = newInlineText ("", "msg"); msgContainer.setAttribute ("network", this.parent.parent.name); msgContainer.setAttribute ("channel", this.name); msgContainer.setAttribute ("user",...
addHistory (this, msgContainer);
msgRow.appendChild (msgData); addHistory (this, msgRow);
function chan_display (message, msgtype, nick){ var ary = message.split ("\n"); dd ("channel.display"); var msgContainer = newInlineText ("", "msg"); msgContainer.setAttribute ("network", this.parent.parent.name); msgContainer.setAttribute ("channel", this.name); msgContainer.setAttribute ("user",...
var target; if (this.normalizedName.match(/^#[^!+&]/)) target = ecmaEscape(this.normalizedName.substr(1));
var target = this.encodedName; if (target.match(/^#[^!+&]/)) target = ecmaEscape(target.substr(1));
function chan_geturl (){ var target; if (this.normalizedName.match(/^#[^!+&]/)) target = ecmaEscape(this.normalizedName.substr(1)); else target = ecmaEscape(this.normalizedName); return this.parent.parent.getURL(target);}
target = ecmaEscape(this.normalizedName);
target = ecmaEscape(target); target = target.replace("/", "%2f");
function chan_geturl (){ var target; if (this.normalizedName.match(/^#[^!+&]/)) target = ecmaEscape(this.normalizedName.substr(1)); else target = ecmaEscape(this.normalizedName); return this.parent.parent.getURL(target);}
nick = this.parent.toLowerCase(fromUnicode(nick, this.parent));
function chan_getuser (nick) { nick = this.parent.toLowerCase(nick); if (nick in this.users) return this.users[nick]; return null;}
if (this.secret) str += "s";
function chan_modestr (f){ var str = ""; if (this.invite) str += "i"; if (this.moderated) str += "m"; if (!this.publicMessages) str += "n"; if (!this.publicTopic) str += "t"; if (this.pvt) str += "p"; if (this.key) str += "k"; if (this.limit != -1) ...
delete this.parent.channels[this.normalizedName];
delete this.parent.channels[this.canonicalName];
function chan_rehome(newParent){ delete this.parent.channels[this.normalizedName]; this.parent = newParent; this.parent.channels[this.normalizedName] = this;}
this.parent.channels[this.normalizedName] = this;
this.parent.channels[this.canonicalName] = this;
function chan_rehome(newParent){ delete this.parent.channels[this.normalizedName]; this.parent = newParent; this.parent.channels[this.normalizedName] = this;}
delete this.users[this.parent.toLowerCase(nick)];
nick = this.parent.toLowerCase(nick); if (nick in this.users) delete this.users[nick]; nick = this.parent.toLowerCase(fromUnicode(nick, this.parent)); if (nick in this.users) delete this.users[nick];
function chan_removeuser (nick){ delete this.users[this.parent.toLowerCase(nick)]; // see ya}
fp.init(window, "Choose Application...", nsIFilePicker.modeOpen);
var winTitle = document.getElementById('changeApp').getAttribute('filepickertitle'); fp.init(window, winTitle, nsIFilePicker.modeOpen);
function changeApp(){ const nsIFilePicker = Components.interfaces.nsIFilePicker; var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker); fp.init(window, "Choose Application...", nsIFilePicker.modeOpen); fp.appendFilters(nsIFilePicker.filterApps); if (fp.show() == nsIFilePicker.ret...
var caption = document.getElementById( "caption" ); while( caption.hasChildNodes() ) { caption.removeChild( caption.firstChild ); } newCaption = document.createTextNode( aCaption ); caption.appendChild( newCaption );
var caption = document.getElementById( "header" ); caption.setAttribute( "value", aCaption );
function ChangeCaption( aCaption ){ var caption = document.getElementById( "caption" ); while( caption.hasChildNodes() ) { caption.removeChild( caption.firstChild ); } newCaption = document.createTextNode( aCaption ); caption.appendChild( newCaption );}
CategoryGroup.setAttribute("category", category);
function ChangeCategory(newCategory){ if (category != newCategory || initialize) { category = newCategory; // Note: Must do L before M to set LatinL.selectedIndex UpdateLatinL(); UpdateLatinM(); UpdateCharacter(); // Set persistent attribute CategoryGroup.setAttribute("category", category);...
document.getElementById("is_editable").removeAttribute("hidden");
function changeContextMenuForToDo(event){ if (event.target.id != "taskitem-context-menu") return; var toDoItem = getToDoFromEvent(event); // If only one task is selected, enable 'Edit Task' var tree = document.getElementById(ToDoUnifinderTreeName); var start = new Object(); var end = new Object(); va...
},
}
changeCustomFolder: function () { const nsIFilePicker = Components.interfaces.nsIFilePicker; var fp = Components.classes["@mozilla.org/filepicker;1"] .createInstance(nsIFilePicker); // extract the window title var winTitle = this._bundle.getString("fpTitleChooseDL"); fp.init(wind...
UpdateStatusCardCounts(uri);
function ChangeDirectoryByDOMNode(dirNode){ var uri = dirNode.getAttribute("id"); if (resultsTree) { if (uri != resultsTree.getAttribute("ref")) { ClearResultsTreeSelection(); resultsTree.setAttribute("ref", uri); WaitUntilDocumentIsLoaded(); SortToPreviousSettings(); SelectFirstCard(); ...
var uri = dirNode.getAttribute('id'); if ( resultsTree ) { if ( uri != resultsTree.getAttribute('ref') ) { ClearResultsTreeSelection(); resultsTree.setAttribute('ref', uri); WaitUntilDocumentIsLoaded(); SortToPreviousSettings(); SelectFirstCard(); } }
var uri = dirNode.getAttribute("id"); if (resultsTree) { if (uri != resultsTree.getAttribute("ref")) { ClearResultsTreeSelection(); resultsTree.setAttribute("ref", uri); WaitUntilDocumentIsLoaded(); SortToPreviousSettings(); SelectFirstCard(); } }
function ChangeDirectoryByDOMNode(dirNode){ var uri = dirNode.getAttribute('id'); if ( resultsTree ) { if ( uri != resultsTree.getAttribute('ref') ) { ClearResultsTreeSelection(); resultsTree.setAttribute('ref', uri); WaitUntilDocumentIsLoaded(); SortToPreviousSettings(); SelectFirstCard(); } }}
return;
function ChangeDirectoryByURI(uri){ if (!uri) uri = kPersonalAddressbookURI; if (gAbView && GetAbViewURI() == uri) return; var sortColumn = gAbResultsTree.getAttribute("sortCol"); var sortDirection = document.getElementById(sortColumn).getAttribute("sortDirection"); var actualSortColumn = SetAbView(uri, ...
if (gAbView && gAbView.URI == uri)
if (gAbView && GetAbViewURI() == uri)
function ChangeDirectoryByURI(uri){ if (!uri) uri = kPersonalAddressbookURI; if (gAbView && gAbView.URI == uri) return; var dataNode = document.getElementById(uri); var sortColumn = dataNode ? dataNode.getAttribute("sortColumn") : kDefaultSortColumn; var sortDirection = dataNode ? dataNode.getAttribute("so...
var dataNode = document.getElementById(uri); var sortColumn = dataNode ? dataNode.getAttribute("sortColumn") : kDefaultSortColumn; var sortDirection = dataNode ? dataNode.getAttribute("sortDirection") : kDefaultAscending;
var sortColumn = gAbResultsTree.getAttribute("sortCol"); var sortDirection = document.getElementById(sortColumn).getAttribute("sortDirection");
function ChangeDirectoryByURI(uri){ if (!uri) uri = kPersonalAddressbookURI; if (gAbView && gAbView.URI == uri) return; var dataNode = document.getElementById(uri); var sortColumn = dataNode ? dataNode.getAttribute("sortColumn") : kDefaultSortColumn; var sortDirection = dataNode ? dataNode.getAttribute("so...
document.getElementById("allowScripts").disabled = state; document.getElementById("allowWindowMoveResize").disabled = state; document.getElementById("allowImageSrcChange").disabled = state; document.getElementById("allowWindowStatusChange").disabled = state; document.getElementById("allowWindowFlip").disabled = state; ...
setDisableState("allowScripts", state); setDisableState("allowWindowMoveResize", state); setDisableState("allowImageSrcChange", state); setDisableState("allowWindowStatusChange", state); setDisableState("allowWindowFlip", state); setDisableState("allowHideStatusBar", state); setDisableState("allowContextmenuDisable", s...
function changeDisabledState(state){ //Set the states of the groupbox children state based on the "javascript enabled" checkbox value document.getElementById("allowScripts").disabled = state; document.getElementById("allowWindowMoveResize").disabled = state; document.getElementById("allowImageSrcChange").disabled =...
var changemenu = 2 ;
changemenu = 2 ;
function changeDisplayToDoInViewCheckbox( menuindex ) { var check = document.getElementById( "display-todo-inview-checkbox-" + menuindex ).getAttribute("checked") ; switch(menuindex){ case 1: var changemenu = 2 ; break; case 2: var changemenu = 1 ; break; default: return(false); } if(check == "tru...
var changemenu = 1 ;
changemenu = 1 ;
function changeDisplayToDoInViewCheckbox( menuindex ) { var check = document.getElementById( "display-todo-inview-checkbox-" + menuindex ).getAttribute("checked") ; switch(menuindex){ case 1: var changemenu = 2 ; break; case 2: var changemenu = 1 ; break; default: return(false); } if(check == "tru...
ChangeFolderByURI(uri, isThreaded == "true", "");
ChangeFolderByURI(uri, isThreaded == "true", sortResource, sortDirection);
function ChangeFolderByDOMNode(folderNode){ var uri = folderNode.getAttribute('id'); dump(uri + "\n"); var isThreaded = folderNode.getAttribute('threaded'); if (uri) ChangeFolderByURI(uri, isThreaded == "true", "");}
if (msgfolder.isServer) window.title = msgfolder.name; else if (msgfolder.server) window.title = msgfolder.name + " on " + msgfolder.server.prettyName; else window.title = msgfolder.name;
function ChangeFolderByURI(uri, isThreaded, sortID){ dump('In ChangeFolderByURI\n'); var resource = RDF.GetResource(uri); var msgfolder = resource.QueryInterface(Components.interfaces.nsIMsgFolder); if (msgfolder.isServer) window.title = msgfolder.name; else if (msgfolder.server) window.title = msgf...
try { setTitleFromFolder(msgfolder); } catch (ex) { dump("error setting title: " + ex + "\n"); }
function ChangeFolderByURI(uri, isThreaded, sortID){ dump('In ChangeFolderByURI\n'); var resource = RDF.GetResource(uri); var msgfolder = resource.QueryInterface(Components.interfaces.nsIMsgFolder); if (msgfolder.isServer) window.title = msgfolder.name; else if (msgfolder.server) window.title = msgf...
UpdateStatusQuota(null);
function ChangeFolderByURI(uri, viewType, viewFlags, sortType, sortOrder){ viewDebug("In ChangeFolderByURI uri = " + uri + " sortType = " + sortType + "\n"); if (uri == gCurrentLoadingFolderURI) return; // hook for extra toolbar items var observerService = Components.classes["@mozilla.org/observer-service;1"].ge...
window.title = "Netscape: " + msgfolder.name + " on " + msgfolder.server.prettyName;
if (msgfolder.isServer) window.title = "Netscape: " + msgfolder.name; else window.title = "Netscape: " + msgfolder.name + " on " + msgfolder.server.prettyName;
function ChangeFolderByURI(uri){ var resource = RDF.GetResource(uri); var msgfolder = resource.QueryInterface(Components.interfaces.nsIMsgFolder); window.title = "Netscape: " + msgfolder.name + " on " + msgfolder.server.prettyName; var folder = GetThreadTreeFolder(); var beforeTime = new Date(); folder....
printf("Error loading with many headers to download\n");
dump("Error loading with many headers to download\n");
function ChangeFolderByURI(uri, isThreaded, sortID){ dump('In ChangeFolderByURI\n'); var resource = RDF.GetResource(uri); var msgfolder = resource.QueryInterface(Components.interfaces.nsIMsgFolder); if (msgfolder.isServer) window.title = msgfolder.name; else if (msgfolder.server) window.title = msgf...
function ChangeFolderByURI(uri, isThreaded, sortID)
function ChangeFolderByURI(uri, isThreaded, sortID, sortDirection)
function ChangeFolderByURI(uri, isThreaded, sortID){ dump('In ChangeFolderByURI\n'); var resource = RDF.GetResource(uri); var msgfolder = resource.QueryInterface(Components.interfaces.nsIMsgFolder); try { setTitleFromFolder(msgfolder, null); } catch (ex) { dump("error setting title: " + ex + "\n"); ...
RerootFolder(uri, msgfolder, isThreaded, sortID);
RerootFolder(uri, msgfolder, isThreaded, sortID, sortDirection);
function ChangeFolderByURI(uri, isThreaded, sortID){ dump('In ChangeFolderByURI\n'); var resource = RDF.GetResource(uri); var msgfolder = resource.QueryInterface(Components.interfaces.nsIMsgFolder); try { setTitleFromFolder(msgfolder, null); } catch (ex) { dump("error setting title: " + ex + "\n"); ...
if (gAccountCentralLoaded) { HideAccountCentral(); } if (gFakeAccountPageLoaded) { HideFakeAccountPage(); }
ShowThreadPane();
function ChangeFolderByURI(uri, viewType, viewFlags, sortType, sortOrder){ //dump("In ChangeFolderByURI uri = " + uri + " sortType = " + sortType + "\n"); if (uri == gCurrentLoadingFolderURI) return; SetUpToolbarButtons(uri); // hook for extra toolbar items var observerService = Components.classes["@mozilla.org...
event.preventBubble();
event.stopPropagation();
function changeLanguage(event){ // We need to change the dictionary language and if we are using inline spell check, // recheck the message var spellChecker = Components.classes['@mozilla.org/spellchecker/myspell;1'].getService(Components.interfaces.mozISpellCheckingEngine); if (spellChecker.dictionary != event.tar...
ChangeText();
function ChangeLocation(){ // Unselect the treelists UnselectNamedAnchor(); UnselectHeadings();}
gPrefs.setIntPref("mail.pane_config.dynamic", newLayout);
gPrefBranch.setIntPref("mail.pane_config.dynamic", newLayout);
function ChangeMailLayout(newLayout){ gPrefs.setIntPref("mail.pane_config.dynamic", newLayout); return true;}
var style = attr + ":" + val/10 + unitString() + ";";
val /= gDoingMetric ? 100 : 10; var style = attr + ":" + val + unitString() + ";";
function changeMargin( node ){ // Correct invalid input. checkDouble(node); // Reset the margin height/width for this node. var val = node.value; var nodeToStyle; var attr="width"; if ( node == gDialog.topInput ) { nodeToStyle = gDialog.marginTop; val = checkMargin( val, gPageHeight, gDialog.bottomInput );...
gDBView.reloadMessage();
function ChangeMessagePaneVisibility(now_hidden){ // we also have to hide the File/Attachments menuitem var node = document.getElementById("fileAttachmentMenu"); if (node) node.hidden = now_hidden; if (gDBView) { // the collapsed state is the state after we released the mouse // so we take it as it is ...
var changemenu = 2 ;
changemenu = 2 ;
function changeOnlyWorkdayCheckbox( menuindex ) { var check = document.getElementById( "only-workday-checkbox-" + menuindex ).getAttribute("checked") ; switch(menuindex){ case 1: var changemenu = 2 ; break; case 2: var changemenu = 1 ; break; default: return(false); } if(check == "true") { docu...
var changemenu = 1 ;
changemenu = 1 ;
function changeOnlyWorkdayCheckbox( menuindex ) { var check = document.getElementById( "only-workday-checkbox-" + menuindex ).getAttribute("checked") ; switch(menuindex){ case 1: var changemenu = 2 ; break; case 2: var changemenu = 1 ; break; default: return(false); } if(check == "true") { docu...
"chrome,resizable=1,modal=1,dialog=1",params);
"chrome,centerscreen,modal", params);
function changePassword(){ getSelectedItem(); var params = Components.classes[nsDialogParamBlock].createInstance(nsIDialogParamBlock); params.SetString(1,selected_slot.tokenName); window.openDialog("changepassword.xul", "", "chrome,resizable=1,modal=1,dialog=1",params); showSlotInfo(); ...
window.open("chrome: internal_token.tokenName, "chrome,resizable=1,modal=1,dialog=1");
var params = Components.classes[nsDialogParamBlock].getService(nsIDialogParamBlock); params.SetString(1,"_blank"); window.openDialog("chrome: "chrome,resizable=1,modal=1,dialog=1",params);
function ChangePW(){ window.open("chrome://pippki/content/changepassword.xul", internal_token.tokenName, "chrome,resizable=1,modal=1,dialog=1");}
"chrome,resizable=1,modal=1,dialog=1",params);
"chrome,centerscreen,modal",params);
function ChangePW(){ var params = Components.classes[nsDialogParamBlock].createInstance(nsIDialogParamBlock); params.SetString(1,""); window.openDialog("chrome://pippki/content/changepassword.xul","", "chrome,resizable=1,modal=1,dialog=1",params);}
dialog.SuggestedList.selectedIndex = -1;
var newIndex = -1; var replaceWord = TrimString(dialog.ReplaceWordInput.value); if (replaceWord) { var count = 0; var treeChildren = dialog.SuggestedList.firstChild.nextSibling; if (treeChildren && treeChildren.childNodes) count = treeChildren.childNodes.length; for (var i = 0; i < count; i++) { var wordInList = GetTr...
function ChangeReplaceWord(){ // Calling this triggers SelectSuggestedWord(), // so temporarily suppress the effect of that var saveAllow = allowSelectWord; allowSelectWord = false; // Unselect the word in the suggested list when user edits the replacement word dialog.SuggestedList.selectedIndex = -1; allowSele...
userResolution.setAttribute("label", rv.newdpi + " dpi");
userResolution.setAttribute("label", dpi.replace(/\$val/, rv.newdpi));
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...
function changeSelectionColor(aAttention) { try { var ds = getBrowser().docShell; } catch(e) { return; } var dsEnum = ds.getDocShellEnumerator(Components.interfaces.nsIDocShellTreeItem.typeContent, Components.interfaces.nsIDocShell.ENUMERATE_FORWARDS); while (dsEnum.hasMoreElements()) { ds = dsEnum.getNext().QueryInt...
changeSelectionColor: function (aAttention) { try { var ds = getBrowser().docShell; } catch(e) { return; } var dsEnum = ds.getDocShellEnumerator( Components.interfaces.nsIDocShellTreeItem.typeContent, Components.interfaces.nsIDocShell.ENUMERATE_FORWARDS); while (dsEnum.hasMoreElements()) { ds = dsEnum.getNext().Query...
function changeSelectionColor(aAttention){ try { var ds = getBrowser().docShell; } catch(e) { // If we throw here, the browser we were in is already destroyed. // See bug 273200. return; } var dsEnum = ds.getDocShellEnumerator(Components.interfaces.nsIDocShellTreeItem.typeContent, ...
var ds = getBrowser().docShell;
try { var ds = getBrowser().docShell; } catch(e) { return; }
function changeSelectionColor(aAttention){ var ds = getBrowser().docShell; var dsEnum = ds.getDocShellEnumerator(Components.interfaces.nsIDocShellTreeItem.typeContent, Components.interfaces.nsIDocShell.ENUMERATE_FORWARDS); while (dsEnum.hasMoreElements()) { ds = dsEnum.getNe...
event.preventBubble();
event.stopPropagation();
function ChangeSelectionWithoutContentLoad(event, tree){ var treeBoxObj = tree.treeBoxObject; var treeSelection = treeBoxObj.view.selection; var row = treeBoxObj.getRowAt(event.clientX, event.clientY); // make sure that row.value is valid so that it doesn't mess up // the call to ensureRowIsVisible(). ...
event.preventBubble();
event.stopPropagation();
function ChangeSelectionWithoutContentLoad(event, tree){ var treeBoxObj = tree.treeBoxObject; var treeSelection = tree.view.selection; var row = treeBoxObj.getRowAt(event.clientX, event.clientY); // make sure that row.value is valid so that it doesn't mess up // the call to ensureRowIsVisible(). if((r...
if (insertLinkAtCaret)
if (insertNew)
function ChangeText(){ if (insertLinkAtCaret) { var text = dialog.linkTextInput.value.trimString(); SetElementEnabledById( "ok", (text.length > 0)); }}
var text = dialog.linkTextInput.value.trimString(); SetElementEnabledById( "ok", (text.length > 0));
var enable = true; if (insertLinkAtCaret) enable = dialog.linkTextInput.value.trimString().length > 0; if (enable) enable = dialog.hrefInput.value.trimString().length > 0; SetElementEnabledById( "ok", enable);
function ChangeText(){ if (insertLinkAtCaret) { var text = dialog.linkTextInput.value.trimString(); SetElementEnabledById( "ok", (text.length > 0)); }}
return( false );
{ showTooltip = false; return; } showTooltip = true;
function changeToolTipTextForEvent( event ){ var thisEvent = getCalendarEventFromEvent( event ); var Html = document.getElementById( "savetip" ); while( Html.hasChildNodes() ) { Html.removeChild( Html.firstChild ); } if( !thisEvent ) return( false ); var HolderBox = getPreviewText( thi...
}
} else { showTooltip = false; }
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.titl...
var DateHtml = document.createElement( "description" );
DateHtml = document.createElement( "description" );
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) ...
var DateText = document.createTextNode( "Due Date: "+gCalendarWindow.dateFormater.getFormatedDate( dueDate ) );
DateText = document.createTextNode( "Due Date: "+gCalendarWindow.dateFormater.getFormatedDate( dueDate ) );
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 ((cu = c.users[c.parent.me.nick]))
if ((cu = c.users[c.parent.me.canonicalName]))
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 = MSG_VOICEOP; else if (cu.isOp) mtype = MSG_OPERATOR; ...
"irc: escape(c.encodedName) + "/"]),
(c.parent.isSecure ? "irc: + escape(net) + "/" + 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 = MSG_VOICEOP; else if (cu.isOp) mtype = MSG_OPERATOR; ...
var charset = window._content.document.characterSet;
var charset = window.content.document.characterSet;
function charsetLoadListener (event){ var charset = window._content.document.characterSet; if (charset.length > 0 && (charset != gLastBrowserCharset)) { if (!gCharsetMenu) gCharsetMenu = Components.classes['@mozilla.org/rdf/datasource;1?name=charset-menu'].getService().QueryInterface(Components.in...
promptService.confirmEx(window, dialogTitle, dialogMsg, (promptService.BUTTON_TITLE_SAVE * promptService.BUTTON_POS_0) + (promptService.BUTTON_TITLE_CANCEL * promptService.BUTTON_POS_1) + (allowDontSave ? (promptService.BUTTON_TITLE_IS_STRING * promptService.BUTTON_POS_2) : 0), null, null, (allowDontSave ? GetString("D...
var promptFlags = (promptService.BUTTON_TITLE_SAVE * promptService.BUTTON_POS_0) + (promptService.BUTTON_TITLE_CANCEL * promptService.BUTTON_POS_1) + (allowDontSave ? (promptService.BUTTON_TITLE_DONT_SAVE * promptService.BUTTON_POS_2) : 0); promptService.confirmEx( window, dialogTitle, dialogMsg, promptFlags, null, nul...
function CheckAndSaveDocument(reasonToSave, allowDontSave){ var document = editorShell.editorDocument; if (!editorShell.documentModified && !gHTMLSourceChanged) 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 promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(); promptService = promptService.QueryInterface(Components.interfaces.nsIPromptService);
var promptService = GetPromptService(); if (!promptService) return false;
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) ...
if (gEditor.QueryInterface(Components.interfaces.nsIHTMLEditor))
if (gIsHTMLEditor)
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) ...