rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
if (editCard.card.displayName.length) editCard.generateDisplayName = false; }
function OnLoadNewCard(){ InitEditCard(); doSetOKCancel(NewCardOKButton, 0); var cardproperty = Components.classes["@mozilla.org/addressbook/cardproperty;1"].createInstance(Components.interfaces.nsIAbCard); editCard.card = cardproperty; editCard.titleProperty = "newCardTitle" if ("arguments" in window && window.a...
if (window.arguments[0].primaryEmail) editCard.card.primaryEmail = window.arguments[0].primaryEmail; if (window.arguments[0].displayName) editCard.card.displayName = window.arguments[0].displayName;
function OnLoadNewCard(){ InitEditCard(); doSetOKCancel(NewCardOKButton, 0); var cardproperty = Components.classes["component://netscape/addressbook/cardproperty"].createInstance(); cardproperty = cardproperty.QueryInterface(Components.interfaces.nsIAbCard); editCard.card = cardproperty; editCard.okCallback = 0; editC...
var hasimages = makeImageTree(page, root); makeFormTree(page, root);
function onLoadPageInfo() { var page = window.opener.frames[0].document; //var page = window.frames.content.document; var root = document.getElementById("cont"); makeDocument(page, root); var hasimages = makeImageTree(page, root); makeFormTree(page, root); if(hasimages) { var iframe = document.createElement("...
if(hasimages) { var iframe = document.createElement("iframe"); iframe.setAttribute("name", "view"); iframe.setAttribute("src", "about:blank"); iframe.setAttribute("flex", "4"); root.appendChild(iframe);
var formTreeHolder = document.getElementById("formtreecontainer"); var hasForm = makeFormTree(page, formTreeHolder); if (hasForm) { var formBox = document.getElementById("formtreecontainer"); formBox.removeAttribute("collapsed"); } var imageTreeHolder = document.getElementById("imagetreecontainer"); var hasimages = ma...
function onLoadPageInfo() { var page = window.opener.frames[0].document; //var page = window.frames.content.document; var root = document.getElementById("cont"); makeDocument(page, root); var hasimages = makeImageTree(page, root); makeFormTree(page, root); if(hasimages) { var iframe = document.createElement("...
gStrings.mediaBGImg = theBundle.getString("mediaBGImg");
function onLoadPageInfo(){ //dump("===============================================================================\n"); theBundle = document.getElementById("pageinfobundle"); gStrings.unknown = theBundle.getString("unknown"); gStrings.notSet = theBundle.getString("notset"); gStrings.emptyString = theBundle.getStri...
var tabControl = document.getElementById("tabcontrol");
var tabControl = document.getElementById("tabbox");
function onLoadPageInfo(){ //dump("===============================================================================\n"); var theBundle = document.getElementById("pageinfobundle"); var unknown = theBundle.getString("unknown"); var docTitle = ""; if("arguments" in window && window.arguments.length >= 1 && window.argu...
var tabControl = document.getElementById("tabcontrol");
var tabbox = document.getElementById("tabbox");
function onLoadPageInfo(){ var page; if ((window.arguments.length >= 1) && window.arguments[0]) page = window.arguments[0]; else page = window.opener.frames[0].document; var root = document.getElementById("cont"); makeDocument(page, root); var formTreeHolder = document.getElementById("formTreeContainer"); ...
if (tabControl && tab) { tabControl.selectedTab = tab;
if (tabbox && tab) { tabbox.selectedTab = tab;
function onLoadPageInfo(){ var page; if ((window.arguments.length >= 1) && window.arguments[0]) page = window.arguments[0]; else page = window.opener.frames[0].document; var root = document.getElementById("cont"); makeDocument(page, root); var formTreeHolder = document.getElementById("formTreeContainer"); ...
gHtmlDocument = window._content.document ;
gHtmlDocument = window.content.document ;
function OnLoadPrintEngine(){ gContent = document.getElementById("content") ; if ( window.arguments && window.arguments[0] != null ) { HTMLViewFunction = window.arguments[0] ; HTMLFunctionArgs = window.arguments[1] ; gMyTitle = window.arguments[2] ; gShowprivate = window.arguments[3] ; gArgs = window...
gHtmlDocument = window.content.document ;
gHtmlDocument = window.content.document; gHtmlString = "";
function OnLoadPrintEngine(){ gContent = document.getElementById("content") ; if ( window.arguments && window.arguments[0] != null ) { HTMLViewFunction = window.arguments[0] ; HTMLFunctionArgs = window.arguments[1] ; gMyTitle = window.arguments[2] ; gShowprivate = window.arguments[3] ; gArgs = window...
if (!gTempFile) { const nsIFile = Components.interfaces.nsIFile; var dirService = Components.classes["@mozilla.org/file/directory_service;1"] .getService(Components.interfaces.nsIProperties); gTempFile = dirService.get("TmpD", nsIFile); gTempFile.append("calendarPrint.html"); gTempFile.createUnique(nsIFile.NORMAL_FILE_...
function OnLoadPrintEngine(){ gContent = document.getElementById("content") ; if ( window.arguments && window.arguments[0] != null ) { HTMLViewFunction = window.arguments[0] ; HTMLFunctionArgs = window.arguments[1] ; gMyTitle = window.arguments[2] ; gShowprivate = window.arguments[3] ; gArgs = window...
if (window.arguments && window.arguments[0]) { if ( window.arguments[0].composeWindow ) top.composeWindow = window.arguments[0].composeWindow; if ( window.arguments[0].msgCompFields ) top.msgCompFields = window.arguments[0].msgCompFields; if ( window.arguments[0].toAddress ) toAddress = window.arguments[0].toAddress; ...
if (window.arguments && window.arguments[0]) { if ( window.arguments[0].composeWindow ) top.composeWindow = window.arguments[0].composeWindow; if ( window.arguments[0].msgCompFields ) top.msgCompFields = window.arguments[0].msgCompFields; if ( window.arguments[0].toAddress ) toAddress = window.arguments[0].toAddress; ...
function OnLoadSelectAddress(){ gAddressBookBundle = document.getElementById("bundle_addressBook"); prefixTo = gAddressBookBundle.getString("prefixTo") + ": "; prefixCc = gAddressBookBundle.getString("prefixCc") + ": "; prefixBcc = gAddressBookBundle.getString("prefixBcc") + ": "; InitCommonJS(); var toAddress="", ...
AddAddressFromComposeWindow(toAddress, prefixTo); AddAddressFromComposeWindow(ccAddress, prefixCc); AddAddressFromComposeWindow(bccAddress, prefixBcc); } SelectFirstAddressBook(); DialogResultsPaneSelectionChanged(); DialogBucketPaneSelectionChanged();
dump("onload top.composeWindow: " + top.composeWindow + "\n"); dump("onload toAddress: " + toAddress + "\n"); AddAddressFromComposeWindow(toAddress, prefixTo); AddAddressFromComposeWindow(ccAddress, prefixCc); AddAddressFromComposeWindow(bccAddress, prefixBcc); } SelectFirstAddressBook(); DialogResultsPaneSelection...
function OnLoadSelectAddress(){ gAddressBookBundle = document.getElementById("bundle_addressBook"); prefixTo = gAddressBookBundle.getString("prefixTo") + ": "; prefixCc = gAddressBookBundle.getString("prefixCc") + ": "; prefixBcc = gAddressBookBundle.getString("prefixBcc") + ": "; InitCommonJS(); var toAddress="", ...
SelectFirstAddressBook();
function OnLoadSelectAddress(){ var toAddress="", ccAddress="", bccAddress=""; doSetOKCancel(SelectAddressOKButton, 0); // look in arguments[0] for parameters if (window.arguments && window.arguments[0]) { // keep parameters in global for later if ( window.arguments[0].composeWindow ) top.composeWindow = window.arg...
gAddressBookBundle = document.getElementById("bundle_addressBook"); prefixTo = gAddressBookBundle.getString("prefixTo") + ": "; prefixCc = gAddressBookBundle.getString("prefixCc") + ": "; prefixBcc = gAddressBookBundle.getString("prefixBcc") + ": ";
function OnLoadSelectAddress(){ InitCommonJS(); var toAddress="", ccAddress="", bccAddress=""; doSetOKCancel(SelectAddressOKButton, 0); top.addressbook = Components.classes["@mozilla.org/addressbook;1"].createInstance(); top.addressbook = top.addressbook.QueryInterface(Components.interfaces.nsIAddressBook); top.gDialog...
ShowThreads(false);
setTimeout("ShowThreads(false);", 0);
function OnLoadThreadPane(threadTree){ gThreadTree = threadTree; //Sort by date by default MsgSortByDate(); // add folderSource to thread pane folderDataSource = folderDataSource.QueryInterface(Components.interfaces.nsIRDFDataSource); threadTree.database.AddDataSource(folderDataSource); //Add message data source mes...
function onLoadViaOpenDialog() { if ( document.getElementById("Browser:Throbber").getAttribute("busy") == "true" ) { dump( "Stopping load of default initial page\n" ); appCore.stop(); } dump( "Loading page specified via openDialog\n" ); dump("Check if a view source window \n"); if( window.arguments[1]=="view-source" )...
function onLoadViaOpenDialog() { if ( document.getElementById("Browser:Throbber").getAttribute("busy") == "true" ) appCore.stop(); if( window.arguments[1] == "view-source" ) { var element = document.getElementById("main-window"); var preface = element.getAttribute("viewsourcetitlepreface"); element.setAttribute( "titl...
function onLoadViaOpenDialog() { // See if load in progress (loading default page). if ( document.getElementById("Browser:Throbber").getAttribute("busy") == "true" ) { dump( "Stopping load of default initial page\n" ); appCore.stop(); } dump( "Loading page specified via openDialog\n" ); d...
appCore.loadUrl( window.arguments[0] ); }
function onLoadViaOpenDialog() { // See if load in progress (loading default page). if ( document.getElementById("Browser:Throbber").getAttribute("busy") == "true" ) { dump( "Stopping load of default initial page\n" ); appCore.stop(); } dump( "Loading page specified via openDialog\n" ); d...
if ( document.getElementById("broadcaster_throbber").getAttribute("busy") == "true" ) {
if ( document.getElementById("Browser:Throbber").getAttribute("busy") == "true" ) {
function onLoadViaOpenDialog() { // See if load in progress (loading default page). if ( document.getElementById("broadcaster_throbber").getAttribute("busy") == "true" ) { dump( "Stopping load of default initial page\n" ); appCore.stop(); } dump( "Loading page specified via openDialog\n" ); ...
if ( document.getElementById("Throbber").getAttribute("busy") == "true" ) {
if ( document.getElementById("navigator-throbber").getAttribute("busy") == "true" ) {
function onLoadViaOpenDialog() { // See if load in progress (loading default page). if ( document.getElementById("Throbber").getAttribute("busy") == "true" ) { dump( "Stopping load of default initial page\n" ); appCore.stop(); } dump( "Loading page specified via openDialog\n" ); appCore.l...
window._content.focus();
window.content.focus();
function onLoadViewPartialSource(){ // check the view_source.wrap_long_lines pref and set the menuitem's checked attribute accordingly if (gPrefs) { try { var wraplonglinesPrefValue = gPrefs.getBoolPref('view_source.wrap_long_lines'); if (wraplonglinesPrefValue) { document.getElementById('menu_wra...
try { createBrowserInstance(); if (appCore == null) { dump("Giving up...\n"); window.close(); } appCore.setWebShellWindow(window); if ( window._content ) { dump("Setting content window\n"); appCore.setContentWindow( window._content ); } } catch(ex) { dump("Failed to create and initialiaze the AppCore...\n"); } var...
viewSource(window.arguments[0]);
function onLoadViewSource() { try { createBrowserInstance(); if (appCore == null) { // Give up. dump("Giving up...\n"); window.close(); } // Initialize browser instance.. appCore.setWebShellWindow(window); if ( window._content ) { ...
window._content.focus();
document.commandDispatcher.focusedWindow = content;
function onLoadViewSource() { viewSource(window.arguments[0]); window._content.focus();}
function onLoadWithArgs() { if ( appCore ) { if ( document.getElementById("Browser:Throbber").getAttribute("busy") == "true" ) { dump( "Stopping load of default initial page\n" ); appCore.stop(); } dump( "Loading page specified on ShowWindowWithArgs\n" ); appCore.loadInitialPage(); } else { dump( "onLoadWithArgs not...
function onLoadWithArgs() { if ( appCore ) { if ( document.getElementById("Browser:Throbber").getAttribute("busy") == "true" ) appCore.stop(); appCore.loadInitialPage(); } else explicitURL = true; }
function onLoadWithArgs() { // See if Startup has been run. if ( appCore ) { // See if load in progress (loading default page). if ( document.getElementById("Browser:Throbber").getAttribute("busy") == "true" ) { dump( "Stopping load of default initial page\n" ); appCore.stop(...
if ( document.getElementById("broadcaster_throbber").getAttribute("busy") == "true" ) {
if ( document.getElementById("Browser:Throbber").getAttribute("busy") == "true" ) {
function onLoadWithArgs() { // See if Startup has been run. if ( appCore ) { // See if load in progress (loading default page). if ( document.getElementById("broadcaster_throbber").getAttribute("busy") == "true" ) { dump( "Stopping load of default initial page\n" ); appCore.s...
if (this.mimeTypeIsTextBased(content.document.contentType))
if (content.document && this.mimeTypeIsTextBased(content.document.contentType))
onLocationChange : function(aWebProgress, aRequest, aLocation) { this.setOverLink("", null); var location = aLocation.spec; if (this.hideAboutBlank) { this.hideAboutBlank = false; if (location == "about:blank") location = ""; } // Disable menu entries for images, enable otherwise i...
if (/^\s*wyciwyg:\/\/\d+\ location = RegExp.rightContext;
onLocationChange : function(aWebProgress, aRequest, aLocation) { this.setOverLink("", null); var location = aLocation.spec; if (this.hideAboutBlank) { this.hideAboutBlank = false; if (location == "about:blank") location = ""; } // We should probably not do this if the value has change...
if (!this.userTyped.value)
if (!this.userTyped.value) {
onLocationChange : function(aWebProgress, aRequest, aLocation) { this.setOverLink("", null); var location = aLocation.spec; if (this.hideAboutBlank) { this.hideAboutBlank = false; if (location == "about:blank") location = ""; } // We should probably not do this if the value has change...
this.userTyped.value = false; }
onLocationChange : function(aWebProgress, aRequest, aLocation) { this.setOverLink("", null); var location = aLocation.spec; if (this.hideAboutBlank) { this.hideAboutBlank = false; if (location == "about:blank") location = ""; } // We should probably not do this if the value has change...
domWindow = aWebProgress.DOMWindow; if (domWindow == domWindow.top) { this.urlBar.value = aLocation.spec;
if(gSelectedTab==this.refTab) { domWindow = aWebProgress.DOMWindow; if (domWindow == domWindow.top) { this.urlBar.value = aLocation.spec; } this.refTab.setAttribute("lastLocation",aLocation.spec);
onLocationChange : function(aWebProgress, aRequest, aLocation) { domWindow = aWebProgress.DOMWindow; // Update urlbar only if there was a load on the root docshell if (domWindow == domWindow.top) { this.urlBar.value = aLocation.spec; } },
this.urlBar.value="SB: "+gRSSTag;
this.urlBar.value="sb:"+gRSSTag;
onLocationChange : function(aWebProgress, aRequest, aLocation) { /* Ideally we dont want to check this here. Better to have some other protocol view-rss in the chrome */ const rsschromemask = "chrome://minimo/content/rssview/rssblank.xhtml"; if(aLocation.spec.substr(0, rsschromemask.length) == rsschr...
SetPageProxyState("valid");
SetPageProxyState("valid", aLocation);
onLocationChange : function(aWebProgress, aRequest, aLocation) { var location = aLocation.spec; domWindow = aWebProgress.DOMWindow; if (this.hideAboutBlank) { this.hideAboutBlank = false; if (location == "about:blank") location = ""; } // We should probably not do this if the value ha...
this.locationChanged = true;
onLocationChange : function(aWebProgress, aRequest, aLocation) { this.setOverLink(""); var locationURI = null; var location = ""; if (aLocation) { try { if (!gURIFixup) gURIFixup = Components.classes["@mozilla.org/docshell/urifixup;1"] .getService(C...
browser.popupUrls = null; browser.popupFeatures = null;
onLocationChange : function(aWebProgress, aRequest, aLocation) { // XXX temporary hack for bug 104532. // Depends heavily on setOverLink implementation if (!aRequest) this.status = this.jsStatus = this.jsDefaultStatus = ""; this.setOverLink(""); var locationURI = null; var location = ""; ...
if (hostPort != browser.popupDomain) {
if (hostPort != browser.popupDomain)
onLocationChange : function(aWebProgress, aRequest, aLocation) { // XXX temporary hack for bug 104532. // Depends heavily on setOverLink implementation if (!aRequest) this.status = this.jsStatus = this.jsDefaultStatus = ""; this.setOverLink(""); var locationURI = null; var location = ""; ...
browser.popupUrls = null; browser.popupFeatures = null; }
onLocationChange : function(aWebProgress, aRequest, aLocation) { // XXX temporary hack for bug 104532. // Depends heavily on setOverLink implementation if (!aRequest) this.status = this.jsStatus = this.jsDefaultStatus = ""; this.setOverLink(""); var locationURI = null; var location = ""; ...
this.locationChanged = true;
onLocationChange : function(aWebProgress, aRequest, aLocation) { this.setOverLink("", null); var location = aLocation.spec; if (this.hideAboutBlank) { this.hideAboutBlank = false; if (location == "about:blank") location = ""; } // Disable menu entries for images, enable otherwise i...
this.locationField.value = location;
document.getElementById("urlbar").value = location;
onLocationChange : function(location) { if (this.hideAboutBlank) { this.hideAboutBlank = false; if (location == "about:blank") location = ""; } // We should probably not do this if the value has changed since the user // searched this.locationField.value = location; UpdateBackForw...
var location = aLocation.spec;
var location = ""; if (aLocation) { try { if (!gURIFixup) gURIFixup = Components.classes["@mozilla.org/docshell/urifixup;1"] .getService(Components.interfaces.nsIURIFixup); location = gURIFixup.createExposableURI(aLocation).spec; } catch(ex) { location = aLocation.spec; } }
onLocationChange : function(aWebProgress, aRequest, aLocation) { this.setOverLink("", null); var location = aLocation.spec; if (this.hideAboutBlank) { this.hideAboutBlank = false; if (location == "about:blank") location = ""; } // Disable menu entries for images, enable otherwise i...
if (/^\s*wyciwyg:\/\/\d+\ location = RegExp.rightContext;
onLocationChange : function(aWebProgress, aRequest, aLocation) { this.setOverLink("", null); var location = aLocation.spec; if (this.hideAboutBlank) { this.hideAboutBlank = false; if (location == "about:blank") location = ""; } // Disable menu entries for images, enable otherwise i...
if (hostPort != browser.popupDomain)
if (hostPort != browser.popupDomain) {
onLocationChange : function(aWebProgress, aRequest, aLocation) { // XXX temporary hack for bug 104532. // Depends heavily on setOverLink implementation if (!aRequest) this.status = this.jsStatus = this.jsDefaultStatus = ""; this.setOverLink(""); var locationURI = null; var location = ""; ...
browser.popupUrls = null; browser.popupFeatures = null; }
onLocationChange : function(aWebProgress, aRequest, aLocation) { // XXX temporary hack for bug 104532. // Depends heavily on setOverLink implementation if (!aRequest) this.status = this.jsStatus = this.jsDefaultStatus = ""; this.setOverLink(""); var locationURI = null; var location = ""; ...
{ prefstring:"downloadUnreadOnly", id:"nntp.downloadUnread"},
{ prefstring:"downloadUnreadOnly", id:"nntp.notDownloadRead"},
function onLockPreference(){ var isDownloadLocked = false; var isGetNewLocked = false; var initPrefString = "mail.server"; var finalPrefString; var prefService = Components.classes["@mozilla.org/preferences-service;1"]; prefService = prefService.getService(); prefService = prefService.QueryInterf...
{ prefstring:"disable_button.selectFolder", id:"selectFolderButton"}
{ prefstring:"disable_button.selectFolder", id:"selectNewsgroupsButton"}, { prefstring:"disable_button.selectFolder", id:"selectImapFoldersButton"}
function onLockPreference(){ var isDownloadLocked = false; var isGetNewLocked = false; var initPrefString = "mail.server"; var finalPrefString; var prefService = Components.classes["@mozilla.org/preferences-service;1"]; prefService = prefService.getService(); prefService = prefService.QueryInterf...
{ prefstring:"encryptionCertSelectButton", id:"encryptionCertSelectButton"}
{ prefstring:"encryptionCertSelectButton", id:"encryptionCertSelectButton"}, { prefstring:"sign_mail", id:"identity.sign_mail"}, { prefstring:"encryptionpolicy", id:"encryptionChoices"}
function onLockPreference(){ var initPrefString = "mail.identity"; var finalPrefString; var prefService = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService); var allPrefElements = [ { prefstring:"signingCertSelectButton", id:"signingCertSelectButton"}, ...
dump("we get here\n"); var mailSession = Components.classes[mailSessionProgID].getService(); if(mailSession) { mailSession = mailSession.QueryInterface(Components.interfaces.nsIMsgMailSession); if(mailSession) { mailSession.RemoveFolderListener(folderListener); } }
function OnMailWindowUnload(){ mailSession.RemoveMsgWindow(msgWindow); messenger.SetWindow(null, null); var msgDS = folderDataSource.QueryInterface(Components.interfaces.nsIMsgRDFDataSource); msgDS.window = null; msgDS = messageDataSource.QueryInterface(Components.interfaces.nsIMsgRDFDataSource); msgDS.window = null; m...
var dbview = GetDBView(); if (dbview) { dbview.close(); }
function OnMailWindowUnload(){ var mailSession = Components.classes[mailSessionContractID].getService(); if(mailSession) { mailSession = mailSession.QueryInterface(Components.interfaces.nsIMsgMailSession); if(mailSession) { mailSession.RemoveFolderListener(folderListener); } } mailSession.RemoveMs...
RemoveMailOfflineObserver();
function OnMailWindowUnload(){ var dbview = GetDBView(); if (dbview) { dbview.close(); } var mailSession = Components.classes[mailSessionContractID].getService(); if(mailSession) { mailSession = mailSession.QueryInterface(Components.interfaces.nsIMsgMailSession); if(mailSession) { mailSession.Re...
changePasswordSettings();
function onMasterPasswordLoad(){ var tokendb = Components.classes[nsPK11TokenDB].getService(nsIPK11TokenDB); internal_token = tokendb.getInternalKeyToken(); var askTimes = internal_token.getAskPasswordTimes(); switch (askTimes) { case nsIPK11Token.ASK_FIRST_TIME: askTimes = 0; break; case nsIPK11Token.ASK_EVERY_...
tokendb = Components.classes[nsPK11TokenDB].getService(nsIPK11TokenDB);
var tokendb = Components.classes[nsPK11TokenDB].getService(nsIPK11TokenDB);
function onMasterPasswordLoad(){ tokendb = Components.classes[nsPK11TokenDB].getService(nsIPK11TokenDB); internal_token = tokendb.getInternalKeyToken(); var askTimes = internal_token.getAskPasswordTimes(); switch (askTimes) { case nsIPK11Token.ASK_FIRST_TIME: askTimes = 0; break; case nsIPK11Token.ASK_EVERY_TIME...
dump(aMsgURL + ' is '
dump(aMsgURI + ' is '
onMessageClassified: function(aMsgURI, aClassification) { dump(aMsgURL + ' is ' + (aClassification == nsIJunkMailPlugin.JUNK ? 'JUNK' : 'GOOD') + '\n'); // XXX TODO, make the cut off 50, like in nsMsgSearchTerm.cpp var score = ...
{ gJunkmailComponent.endBatch();
onMessageClassified: function(aClassifiedMsgURI, aClassification) { // XXX TODO // update status bar, or a progress dialog // running junk mail controls manually, on a large folder // can take a while, and the user doesn't know when we are done. ...
}
onMessageClassified: function(aClassifiedMsgURI, aClassification) { // XXX TODO // update status bar, or a progress dialog // running junk mail controls manually, on a large folder // can take a while, and the user doesn't know when we are done. ...
saveJunkMsgForAction(aMsgHdr.folder.server, aMsgURI, aClassification);
onMessageClassified: function(aMsgURI, aClassification) { // XXX todo // update status bar, or a progress dialog // running junk mail controls manually, on a large folder // can take a while, and the user doesn't know when we are done. dump(aMsgURI +...
var command;
var command = getEventCommand(e); if (!client.commandManager.isCommandSatisfied(cx, command)) return false;
function onMessageViewClick(e){ if ((e.which != 1) && (e.which != 2)) return true; var cx = getMessagesContext(null, e.target); var command; if (e.which == 2) command = client.prefs["messages.middleClick"]; else if (e.metaKey || e.altKey) command = client.prefs["messages.metaClick"];...
if (e.which == 2) command = client.prefs["messages.middleClick"]; else if (e.metaKey || e.altKey) command = client.prefs["messages.metaClick"]; else if (e.ctrlKey) command = client.prefs["messages.ctrlClick"]; else command = client.prefs["messages.click"]; if (client.commandManager.isCommandSatisfied(cx, command)) { d...
dispatch(command, cx); dispatch("focus-input"); e.preventDefault(); return true;
function onMessageViewClick(e){ if ((e.which != 1) && (e.which != 2)) return true; var cx = getMessagesContext(null, e.target); var command; if (e.which == 2) command = client.prefs["messages.middleClick"]; else if (e.metaKey || e.altKey) command = client.prefs["messages.metaClick"];...
if (!this.mInBatch) this.mCalendar.writeICS();
onModifyItem: function(aNewItem, aOldItem) { for (var i = 0; i < this.mObservers.length; i++) this.mObservers[i].onModifyItem(aNewItem, aOldItem); if (!this.mInBatch) this.mCalendar.writeICS(); },
!this.mInBatch) toDoUnifinderRefresh();
!this.mInBatch) { var completedChange = (aNewItem.isCompleted != aOldItem.isCompleted); if (document.getElementById("hide-completed-checkbox").checked && completedChange) { if (aNewItem.isCompleted) { this.removeItemFromTree(aOldItem); } else { this.addItemToTree(aNewItem); } return; } this.removeItemFromTree(aOldI...
onModifyItem: function(aNewItem, aOldItem) { if (aNewItem instanceof Components.interfaces.calITodo && !this.mInBatch) toDoUnifinderRefresh(); },
refreshEventTree( false );
refreshEventTree( getAndSetEventTable() );
onModifyItem : function( calendarEvent, originalEvent ) { if( !gICalLib.batchMode ) { refreshEventTree( false ); } },
if (!this.mInBatch) refreshEventTree();
if (!aNewItem instanceof Components.interfaces.calIEvent || this.mInBatch) { return; } this.removeItemFromTree(aOldItem); this.addItemToTree(aNewItem);
onModifyItem: function(aNewItem, aOldItem) { if (!this.mInBatch) refreshEventTree(); },
doTransaction('move', item, item.calendar, originalItem, null);
doTransaction('move', item, calendar, originalItem, null);
var onModifyItem = function(item, calendar, originalItem) { // compare cal.uri because there may be multiple instances of // calICalendar or uri for the same spec, and those instances are // not ==. if (!originalItem.calendar || (originalItem.calendar.uri.equals(calendar.uri)...
function onMore(event)
function onMore(event, rowNumber)
function onMore(event){ if(gTotalSearchTerms==1) gSearchLessButton.removeAttribute("disabled", "false"); createSearchRow(gTotalSearchTerms++, gSearchScope, null); // the user just added a term, so scroll to it scrollToLastSearchTerm(gTotalSearchTerms);}
gSearchLessButton.removeAttribute("disabled", "false"); createSearchRow(gTotalSearchTerms++, gSearchScope, null);
document.getElementById("less0").setAttribute("disabled", "true"); else if (gTotalSearchTerms == 2) document.getElementById("less0").removeAttribute("disabled");
function onMore(event){ if(gTotalSearchTerms==1) gSearchLessButton.removeAttribute("disabled", "false"); createSearchRow(gTotalSearchTerms++, gSearchScope, null); // the user just added a term, so scroll to it scrollToLastSearchTerm(gTotalSearchTerms);}
scrollToLastSearchTerm(gTotalSearchTerms);
scrollToLastSearchTerm(gTotalSearchTerms == 1 ? 0 : rowNumber + 1);
function onMore(event, rowNumber){ createSearchRow(rowNumber, gSearchScope, null); gTotalSearchTerms++; if(gTotalSearchTerms==1) document.getElementById("less0").setAttribute("disabled", "true"); else if (gTotalSearchTerms == 2) document.getElementById("less0").removeAttribute("disabled"); ...
dialog.MoreFewerButton.setAttribute("value",GetString("MoreProperties"));
dialog.MoreFewerButton.setAttribute("label",GetString("MoreProperties"));
function onMoreFewer(){ if (SeeMore) { dialog.MoreSection.setAttribute("collapsed","true"); window.sizeToContent(); dialog.MoreFewerButton.setAttribute("more","0"); dialog.MoreFewerButton.setAttribute("value",GetString("MoreProperties")); SeeMore = false; } else { dialog.MoreSection.removeAttribu...
dialog.MoreFewerButton.setAttribute("value",GetString("FewerProperties"));
dialog.MoreFewerButton.setAttribute("label",GetString("FewerProperties"));
function onMoreFewer(){ if (SeeMore) { dialog.MoreSection.setAttribute("collapsed","true"); window.sizeToContent(); dialog.MoreFewerButton.setAttribute("more","0"); dialog.MoreFewerButton.setAttribute("value",GetString("MoreProperties")); SeeMore = false; } else { dialog.MoreSection.removeAttribu...
dialog.MoreFewerButton.setAttribute("value", GetString("MoreProperties"));
dialog.MoreFewerButton.setAttribute("label", GetString("MoreProperties"));
function onMoreFewerImage(){ if (SeeMore) { dialog.MoreSection.setAttribute("collapsed","true"); dialog.MoreFewerButton.setAttribute("value", GetString("MoreProperties")); dialog.MoreFewerButton.setAttribute("more","0"); SeeMore = false; // Show the "Advanced Edit" button on same line as "More Properti...
dialog.MoreFewerButton.setAttribute("value", ""); dialog.MoreFewerButton.setAttribute("value", GetString("FewerProperties"));
dialog.MoreFewerButton.setAttribute("label", GetString("FewerProperties"));
function onMoreFewerImage(){ if (SeeMore) { dialog.MoreSection.setAttribute("collapsed","true"); dialog.MoreFewerButton.setAttribute("value", GetString("MoreProperties")); dialog.MoreFewerButton.setAttribute("more","0"); SeeMore = false; // Show the "Advanced Edit" button on same line as "More Properti...
window.sizeToContent();
function onMoreFewerImage(){ if (SeeMore) { dialog.isCustomSize = dialog.customsizeRadio.checked; dialog.doConstrain = dialog.constrainCheckbox.checked; SetGlobalElementToCurrentDialogSettings(); dialog.MoreSection.setAttribute("collapsed","true"); window.sizeToContent(); dialog.MoreFewerButton....
dialog.AdvancedEditButton.removeAttribute("hidden"); dialog.AdvancedEditButton2.setAttribute("hidden","true");
dialog.AdvancedEditButton.removeAttribute("collapsed"); dialog.AdvancedEditButton2.setAttribute("collapsed","true"); window.sizeToContent();
function onMoreFewerImage(){ if (SeeMore) { dialog.isCustomSize = dialog.customsizeRadio.checked; dialog.doConstrain = dialog.constrainCheckbox.checked; SetGlobalElementToCurrentDialogSettings(); dialog.MoreSection.setAttribute("collapsed","true"); window.sizeToContent(); dialog.MoreFewerButton....
dialog.AdvancedEditButton.setAttribute("style","display: none"); window.sizeToContent();
function onMoreFewerImage(){ if (SeeMore) { dialog.isCustomSize = dialog.customsizeRadio.checked; dialog.doConstrain = dialog.constrainCheckbox.checked; SetGlobalElementToCurrentDialogSettings(); dialog.MoreSection.setAttribute("collapsed","true"); window.sizeToContent(); dialog.MoreFewerButton....
dialog.AdvancedEditButton.setAttribute("hidden","true");
dialog.AdvancedEditButton.setAttribute("collapsed","true");
function onMoreFewerImage(){ if (SeeMore) { dialog.isCustomSize = dialog.customsizeRadio.checked; dialog.doConstrain = dialog.constrainCheckbox.checked; SetGlobalElementToCurrentDialogSettings(); dialog.MoreSection.setAttribute("collapsed","true"); window.sizeToContent(); dialog.MoreFewerButton....
window.sizeToContent();
function onMoreFewerImage(){ if (SeeMore) { dialog.isCustomSize = dialog.customsizeRadio.checked; dialog.doConstrain = dialog.constrainCheckbox.checked; SetGlobalElementToCurrentDialogSettings(); dialog.MoreSection.setAttribute("collapsed","true"); window.sizeToContent(); dialog.MoreFewerButton....
dialog.AdvancedEditButton.setAttribute("hidden","true"); dialog.AdvancedEditButton2.removeAttribute("hidden","false");
function onMoreFewerImage(){ if (SeeMore) { dialog.isCustomSize = dialog.customsizeRadio.checked; dialog.doConstrain = dialog.constrainCheckbox.checked; SetGlobalElementToCurrentDialogSettings(); //dialog.MoreSection.setAttribute("style","display: none"); dialog.MoreSection.setAttribute("collapsed"...
var item = occurrence; var start; var endEx; if (occurrence.startDate) { start = occurrence.startDate.jsDate; endEx = occurrence.endDate.jsDate; } if (occurrence.entryDate) { start = occurrence.entryDate.jsDate; endEx = occurrence.dueDate.jsDate; }
function onMouseOverItem( occurrenceBoxMouseEvent ){ if ("occurrence" in occurrenceBoxMouseEvent.currentTarget) { // occurrence of repeating event or todo var occurrence = occurrenceBoxMouseEvent.currentTarget.occurrence; var item = occurrence; var start; var endEx; if (occurrence.startDate) { ...
var holderBox = null; if (isEvent(item)) { holderBox = getPreviewForEvent(item, start, endEx); } else if (isToDo(item)) { holderBox = getPreviewForTask(item, start, endEx);
var holderBox; if (isEvent(occurrence)) { holderBox = getPreviewForEvent(occurrence, occurrence.startDate, occurrence.endDate); } else if (isToDo(occurrence)) { holderBox = getPreviewForTask(occurrence);
function onMouseOverItem( occurrenceBoxMouseEvent ){ if ("occurrence" in occurrenceBoxMouseEvent.currentTarget) { // occurrence of repeating event or todo var occurrence = occurrenceBoxMouseEvent.currentTarget.occurrence; var item = occurrence; var start; var endEx; if (occurrence.startDate) { ...
OnMove : function(old_src,new_src,prop,target) {}
OnMove : function(old_src,new_src,prop,target) { debug ("*** sidebar observer: move"); }
OnMove : function(old_src,new_src,prop,target) {}
var wintype = document.firstChild.getAttribute('windowtype');
var wintype = document.documentElement.getAttribute('windowtype');
function OnMsgLoaded(aUrl){ if (!aUrl) return; var folder = aUrl.folder; var msgURI = GetLoadedMessage(); var msgHdr = null; if (!folder || !msgURI) return; // If we are in the middle of a delete or move operation, make sure that // if the user clicks on another message then that message ...
var folder = aUrl.folder;
var folder; try { folder = aUrl.folder; } catch (ex) {}
function OnMsgLoaded(aUrl){ if (!aUrl) return; var folder = aUrl.folder; var msgURI = GetLoadedMessage(); var msgHdr = null; if (!folder || !msgURI) return; // If we are in the middle of a delete or move operation, make sure that // if the user clicks on another message then that mess...
gNextMessageViewIndexAfterDelete = -2;
var treeSelection = GetThreadTree().view.selection; if (treeSelection.currentIndex != gSelectedIndexWhenDeleting) gNextMessageViewIndexAfterDelete = -2;
function OnMsgLoaded(aUrl){ if (!aUrl) return; var folder = aUrl.folder; var msgURI = GetLoadedMessage(); var msgHdr = null; if (!folder || !msgURI) return; // If we are in the middle of a delete or move operation, make sure that // if the user clicks on another message then that mess...
gMessageNotificationBar.setPhishingMsg(aUrl);
if (!checkMsgHdrPropertyIsNot("notAPhishMessage", kIsAPhishMessage)) gPhishingDetector.analyzeMsgForPhishingURLs(aUrl);
function OnMsgParsed(aUrl){ // browser doesn't do this, but I thought it could be a useful thing to test out... // If the find bar is visible and we just loaded a new message, re-run // the find command. This means the new message will get highlighted and // we'll scroll to the first word in the message that match...
window.arguments[0].refresh = true;
function onNewAccount() { var result = { refresh: false }; window.openDialog("chrome://messenger/content/AccountWizard.xul", "wizard", "chrome,modal", result); if (result.refresh) { refreshAccounts(); // propagate refresh if it's not already on // i.e. we'll never turn off refresh once it's on. windo...
window.openDialog("chrome:
MsgAccountWizard();
function onNewAccount() { window.openDialog("chrome://messenger/content/AccountWizard.xul", "wizard", "chrome,modal");}
document.commandDispatcher.updateCommands('mail-search');
UpdateMailSearch("new-search");
onNewSearch: function() { gSearchStopButton.setAttribute("label", gSearchBundle.getString("labelForStopButton")); document.commandDispatcher.updateCommands('mail-search'); gStatusFeedback.showProgress(0); gStatusFeedback.showStatusString(gSearchBundle.getString("searchingMessage")); gSta...
gButton.setAttribute("value", gSearchBundle.getString("labelForStopButton"));
gButton.setAttribute("label", gSearchBundle.getString("labelForStopButton"));
onNewSearch: function() { gButton.setAttribute("value", gSearchBundle.getString("labelForStopButton"));// if (gThreadTree)// gThreadTree.clearItemSelection(); document.commandDispatcher.updateCommands('mail-search'); gStatusFeedback.showProgress(0); gStatusFeedback.showStat...
var validate = wizardMap[currentPageTag].validate; if (validate) if (!validate(contentWindow, wizardContents)) return; if (typeof(contentWindow.ValidateContents) == "function") if (!contentWindow.ValidateContents()) return;
if (contentWindow.validate) if (!contentWindow.validate(wizardContents)) return;
function onNext(event) { if (!wizardMap[currentPageTag]) { dump("Error, could not find entry for current page: " + currentPageTag + "\n"); return; } // only run validation routine if it's there var validate = wizardMap[currentPageTag].validate; if (validate) if (!vali...
alert ("``We're accepting patches''");
alert (getMsg("onNotImplementedMsg"));
function onNotImplemented(){ alert ("``We're accepting patches''"); }
debug("some silly ok handler /*"+hPrefWindow.okHandlers[i]+"*/ failed: "+ e);
dump("some silly ok handler /*"+hPrefWindow.okHandlers[i]+"*/ failed: "+ e);
onOK: function () { var tag = document.getElementById( hPrefWindow.contentFrame ).getAttribute("tag"); if( tag == "" ) { tag = document.getElementById( hPrefWindow.contentFrame ).getAttribute("src"); } hPrefWindow.wsm.savePa...
editorShell.MakeOrChangeList(ListType); listElement = editorShell.GetElementOrParentByTagName("list",null);
if (!ListElement || MixedListSelection || ListType != originalListType) { editorShell.MakeOrChangeList(ListType); ListElement = editorShell.GetElementOrParentByTagName(ListType, null); }
function onOK(){ if (ValidateData()) { // Coalesce into one undo transaction editorShell.BeginBatchChanges(); // Making a list is tricky! // First, make the list editorShell.MakeOrChangeList(ListType); // Now we need to get ALL of the list nodes in the current selection // For now, let's get just...
if (listElement) editorShell.CloneAttributes(listElement, globalElement);
if (ListElement) editorShell.CloneAttributes(ListElement, globalElement);
function onOK(){ if (ValidateData()) { // Coalesce into one undo transaction editorShell.BeginBatchChanges(); // Making a list is tricky! // First, make the list editorShell.MakeOrChangeList(ListType); // Now we need to get ALL of the list nodes in the current selection // For now, let's get just...
gPrefs.SetCharPref("mailnews.customHeaders", hdrs);
gPrefs.setCharPref("mailnews.customHeaders", hdrs);
function onOk(){ if (gArrayHdrs.length) { var hdrs = gArrayHdrs.join(": "); gPrefs.SetCharPref("mailnews.customHeaders", hdrs); } window.close();}
editorShell.EndBatchChanges();
function onOK(){ if(ValidateData()) { if(titleWasEdited) { editorShell.SetDocumentTitle(title); } if(charsetWasChanged) { SetMetaElementContent(contenttypeElement, "text/html; charset=" + charset, insertNewContentType); editorShell.SetDocumentCharacterSet(charset); } window.opener.ok = ...
var str = editorShell.GetContentsAs("text/html", 1+1024); str = str.replace(/\u00a0/g, " "); str = str.replace(/\s*<br>\s*$/, ""); str = str.replace(/\s*<p>\s*$/, ""); str = str.replace(/^\s+/, ""); str = str.replace(/\s+$/, ""); str = str.replace(/\s+<p>\s+/g, "<br>"); str = str.replace(/\s+<br>\s+/g, "<br>");
function onOK(){ // 1 = OutputSelectionOnly, 1024 = OutputLFLineBreak // 256 = OutputEncodeEntities var str = editorShell.GetContentsAs("text/html", 1+1024); // Replace nbsp with spaces: str = str.replace(/\u00a0/g, " "); // Trim trailing <p> or <br> str = str.replace(/\s*<br>\s*$/, ""); str = str.replace(/\s*<...
if (sepCharacter.length == 0) { ShowInputErrorMessage(editorShell.GetString("NoSeparatorCharacter")); SetTextboxFocus(dialog.sepCharacterInput); return false; }
var str = editorShell.GetContentsAs("text/html", 1+1024); str = str.replace(/\u00a0/g, " "); str = str.replace(/\s*<\/p>\s*/g, ""); str = str.replace(/\s*<p>\s*|\s*<br>\s*/g, "<br>"); str = str.replace(/^(<br>)+/, ""); str = str.replace(/(<br>)+$/, ""); str = str.replace(/(<br>)+/g, "<br>"); str = str.r...
function onOK(){ // 1 = OutputSelectionOnly, 1024 = OutputLFLineBreak // 256 = OutputEncodeEntities var str = editorShell.GetContentsAs("text/html", 1+1024); // Replace nbsp with spaces: str = str.replace(/\u00a0/g, " "); // Trim trailing <p> or <br> str = str.replace(/\s*<br>\s*$/, ""); str = str.replace(/\s*<...
sepCharacter += "+";
sepCharacter += "\+";
function onOK(){ // 1 = OutputSelectionOnly, 1024 = OutputLFLineBreak // 256 = OutputEncodeEntities var str = editorShell.GetContentsAs("text/html", 1+1024); // Replace nbsp with spaces: str = str.replace(/\u00a0/g, " "); // Trim trailing <p> or <br> str = str.replace(/\s*<br>\s*$/, ""); str = str.replace(/\s*<...
replaceString += " <td>"; var pattern = new RegExp("\\" + sepCharacter, "g"); str = str.replace(pattern, replaceString);
replaceString += "<td>"; if (sepCharacter.length > 0) { var pattern = new RegExp("\\" + sepCharacter, "g"); str = str.replace(pattern, replaceString); } searchStart = 0; var stackIndex = 0; do { start = str.indexOf("<", searchStart); end = start + 1; if (start >= 0 && str.charAt(end) == ">") { str = str.slice(0, en...
function onOK(){ // 1 = OutputSelectionOnly, 1024 = OutputLFLineBreak // 256 = OutputEncodeEntities var str = editorShell.GetContentsAs("text/html", 1+1024); // Replace nbsp with spaces: str = str.replace(/\u00a0/g, " "); // Trim trailing <p> or <br> str = str.replace(/\s*<br>\s*$/, ""); str = str.replace(/\s*<...
str = "<table border=\"1\">\n<tr><td>" + str + "</tr>\n</table>\n";
str = "<table border=\"1\" width=\"100%\" cellpadding=\"2\" cellspacing=\"2\">\n<tr><td>" + str + "</tr>\n</table>\n";
function onOK(){ // 1 = OutputSelectionOnly, 1024 = OutputLFLineBreak // 256 = OutputEncodeEntities var str = editorShell.GetContentsAs("text/html", 1+1024); // Replace nbsp with spaces: str = str.replace(/\u00a0/g, " "); // Trim trailing <p> or <br> str = str.replace(/\s*<br>\s*$/, ""); str = str.replace(/\s*<...
var selection = editorShell.editorSelection; editorShell.NormalizeTable(null);
var table = null; if (nodeAfterTable) { var previous = nodeAfterTable.previousSibling; if (previous && previous.nodeName.toLowerCase() == "table") table = previous; } if (!table && nodeBeforeTable) { var next = nodeBeforeTable.nextSibling; if (next && next.nodeName.toLowerCase() == "table") table = next; } if (table) ...
function onOK(){ // 1 = OutputSelectionOnly, 1024 = OutputLFLineBreak // 256 = OutputEncodeEntities var str = editorShell.GetContentsAs("text/html", 1+1024); // Replace nbsp with spaces: str = str.replace(/\u00a0/g, " "); // Trim trailing <p> or <br> str = str.replace(/\s*<br>\s*$/, ""); str = str.replace(/\s*<...
dump("Ok pressed!\n");
function onOk() { dump("Ok pressed!\n"); onSave(); return true;}
var livemarkFeed = window.arguments[10];
var livemarkFeed = gArg.feedURL;
function onOK(){ RDFC.Init(BMDS, gSelectedFolder); var url, rSource; var livemarkFeed = window.arguments[10]; if (gGroup && gGroup.checked) { rSource = BMDS.createFolder(gName.value); const groups = window.arguments[5]; for (var i = 0; i < groups.length; ++i) { url = getNormalizedURL(groups[i].url); ...