rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
window.content.focus();
NotifyDocumentStateChanged:function( isNowDirty ) { /* Notify our dirty detector so this window won't be closed if another document is opened */ if (isNowDirty) docWasModified = true; // hack! Should not need this, but there is some controller bug that this // works around. window.updat...
window.updateCommands("save");
NotifyDocumentStateChanged:function( isNowDirty ) { /* Notify our dirty detector so this window won't be closed if another document is opened */ if (isNowDirty) docWasModified = true; // hack! Should not need this, but there is some controller bug that this // works around. window.updat...
window.content.focus();
NotifyDocumentStateChanged:function( isNowDirty ) { /* Notify our dirty detector so this window won't be closed if another document is opened */ if (isNowDirty) docWasModified = true; // hack! Should not need this updateCommands, but there is some controller // bug that this works around....
var ObserverService = Components.classes["component:
var ObserverService = Components.classes["@mozilla.org/observer-service;1"].getService();
function NotifyQuitApplication(){ var ObserverService = Components.classes["component://netscape/observer-service"].getService(); ObserverService = ObserverService.QueryInterface(Components.interfaces.nsIObserverService); if (ObserverService) { try { ObserverService.Notify(null, "quit-application", null); } cat...
if (gOnSaveListeners.length) { gEditCard.card.editCardToDatabase(gEditCard.abURI); }
gEditCard.card.editCardToDatabase(gEditCard.abURI);
function NotifySaveListeners(){ for ( var i = 0; i < gOnSaveListeners.length; i++ ) gOnSaveListeners[i](); if (gOnSaveListeners.length) { // the save listeners might have tweaked the card // in which case we need to commit it. gEditCard.card.editCardToDatabase(gEditCard.abURI); }}
if (pbi) pbi.addObserver(this.domain, this, false);
pbi.addObserver(this.domain, this, false);
function nsButtonPrefListener(){ try { var pbi = pref.QueryInterface(Components.interfaces.nsIPrefBranchInternal); if (pbi) pbi.addObserver(this.domain, this, false); } catch(ex) { dump("Failed to observe prefs: " + ex + "\n"); }}
this.disableCapture = false; this.disablePrefill = false;
function nsContextMenu( xulMenu ) { this.target = null; this.menu = null; this.onTextInput = false; this.onImage = false; this.onLink = false; this.onSaveableLink = false; this.link = false; this.inFrame = false; this.hasBGImage = false; this.inDirList = false; ...
this.onMetaDataItem = false;
function nsContextMenu( xulMenu ) { this.target = null; this.menu = null; this.onTextInput = false; this.onImage = false; this.onLink = false; this.onMailtoLink = false; this.onSaveableLink = false; this.onMathML = false; this.link = false...
this.disableCapture = false;
function nsContextMenu( xulMenu ) { this.target = null; this.menu = null; this.onTextInput = false; this.onImage = false; this.onLink = false; this.onSaveableLink = false; this.link = false; this.inFrame = false; this.hasBGImage = false; this.inDirList = false; ...
this.autoDownload = false;
function nsContextMenu( xulMenu ) { this.target = null; this.menu = null; this.popupURL = null; this.onTextInput = false; this.onImage = false; this.onLink = false; this.onMailtoLink = false; this.onSaveableLink = false; this.onMetaDataItem = false;...
this.target = null; this.menu = null; this.popupURL = null; this.onTextInput = false; this.onImage = false; this.onLoadedImage = false; this.onLink = false; this.onMailtoLink = false; this.onSaveableLink = false; this.onMetaDataItem = false; this.onMathML = false; this...
this.target = null; this.menu = null; this.popupURL = null; this.onTextInput = false; this.onImage = false; this.onLoadedImage = false; this.onLink = false; this.onMailtoLink = false; this.onSaveableLink = false; this.onMetaDataItem = false; thi...
function nsContextMenu( xulMenu ) { this.target = null; this.menu = null; this.popupURL = null; this.onTextInput = false; this.onImage = false; this.onLoadedImage = false; this.onLink = false; this.onMailtoLink = false; this.onSaveableLink = false;...
return nsSetDefaultBrowser.prototype.module;
return ModuleAndFactory;
function NSGetModule(compMgr, fileSpec) { return nsSetDefaultBrowser.prototype.module;}
this.uri = makeURL(aURL);
this.uri = makeURI(aURL);
function nsHeaderSniffer(aURL, aCallback, aData, aSkipPrompt){ this.mCallback = aCallback; this.mData = aData; this.mSkipPrompt = aSkipPrompt; this.uri = makeURL(aURL); this.linkChecker = Components.classes["@mozilla.org/network/urichecker;1"] .createInstance(Components.interfaces.nsIURIChecker); this.link...
if (status == 1)
if (status ==0x804b0001)
function nsLinkCheckTimeOut(){ // We might have gotten here via a late timeout if (gNumLinksToCheck <= 0) return; dump("Timed out! Heard from " + gNumLinksCalledBack + " of " + gNumLinksToCheck + "\n"); for (var i=0; i < gNumLinksToCheck; ++i) { var linkChecker = gLinksBeingChecked[i].QueryInterface(C...
else if (status == 2)
else if (status == 0x804b0002)
function nsLinkCheckTimeOut(){ // We might have gotten here via a late timeout if (gNumLinksToCheck <= 0) return; dump("Timed out! Heard from " + gNumLinksCalledBack + " of " + gNumLinksToCheck + "\n"); for (var i=0; i < gNumLinksToCheck; ++i) { var linkChecker = gLinksBeingChecked[i].QueryInterface(C...
else if (status == 3)
else if (status == 0) dump(" " + linkChecker.name + " OK!\n"); else
function nsLinkCheckTimeOut(){ // We might have gotten here via a late timeout if (gNumLinksToCheck <= 0) return; dump("Timed out! Heard from " + gNumLinksCalledBack + " of " + gNumLinksToCheck + "\n"); for (var i=0; i < gNumLinksToCheck; ++i) { var linkChecker = gLinksBeingChecked[i].QueryInterface(C...
else dump(" " + linkChecker.name + " OK!\n");
function nsLinkCheckTimeOut(){ // We might have gotten here via a late timeout if (gNumLinksToCheck <= 0) return; dump("Timed out! Heard from " + gNumLinksCalledBack + " of " + gNumLinksToCheck + "\n"); for (var i=0; i < gNumLinksToCheck; ++i) { var linkChecker = gLinksBeingChecked[i].QueryInterface(C...
function nsOutlinerController(outliner, outlinerBody)
function nsOutlinerController(outliner)
function nsOutlinerController(outliner, outlinerBody){ this.outlinerId = outliner.id; this.outlinerBodyId = outlinerBody.id; outliner.controllers.appendController(this);}
this.outlinerBodyId = outlinerBody.id;
function nsOutlinerController(outliner, outlinerBody){ this.outlinerId = outliner.id; this.outlinerBodyId = outlinerBody.id; outliner.controllers.appendController(this);}
var datasource = this.getOutlinerBody().database;
var datasource = this.getOutliner().database;
function nsOutlinerController_delete(){ var rangeCount = this.getOutlinerSelection().getRangeCount(); if (rangeCount < 1) return false; if (!gRDFC) gRDFC = Components.classes[rdfc_contractid].getService(nsIRDFContainer); var datasource = this.getOutlinerBody().database; var min = new Object(); var ...
var root = this.getOutlinerBody().getAttribute('ref');
var root = this.getOutliner().getAttribute('ref');
function nsOutlinerController_delete(){ var rangeCount = this.getOutlinerSelection().getRangeCount(); if (rangeCount < 1) return false; if (!gRDFC) gRDFC = Components.classes[rdfc_contractid].getService(nsIRDFContainer); var datasource = this.getOutlinerBody().database; var min = new Object(); var ...
} if (!gPromptService) { gPromptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(nsIPromptService);
function nsPolicyViewer(aDoc){ if (!gIOService) { gIOService = Components.classes["@mozilla.org/network/io-service;1"].getService(nsIIOService); } if (!gPromptService) { gPromptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(nsIPromptService); } try { this.mMa...
this.wsm.attributes = ["pref", "preftype", "prefstring", "prefattribute", "disabled"];
this.wsm.attributes = ["preftype", "prefstring", "prefattribute", "disabled", "localname"];
function nsPrefWindow( frame_id ){ if ( !frame_id ) throw "Error: frame_id not supplied!"; this.contentFrame = frame_id this.wsm = new nsWidgetStateManager( frame_id ); this.wsm.attributes = ["pref", "preftype", "prefstring", "prefattribute", "disabled"]; this.pref = null; this.cancelH...
psService.savePrintSettingsToPrefs(gPrintSettings, true, gPrintSettings.kInitSaveAll);
psService.savePrintSettingsToPrefs(gPrintSettings, true, gPrintSettings.kInitSaveAll); psService.savePrintSettingsToPrefs(gPrintSettings, false, gPrintSettings.kInitSavePrinterName);
function NSPrint(){ try { var webBrowserPrint = content .QueryInterface(Components.interfaces.nsIInterfaceRequestor) .getInterface(Components.interfaces.nsIWebBrowserPrint); if (webBrowserPrint) { gPrintSettings = GetPrintSettings(); webBrowserPrint.print(gPrintSettings, null); i...
try { var webBrowserPrint = content .QueryInterface(Components.interfaces.nsIInterfaceRequestor) .getInterface(Components.interfaces.nsIWebBrowserPrint); if (webBrowserPrint) { gPrintSettings = GetPrintSettings(); webBrowserPrint.print(gPrintSettings, null); if (gPrintSettingsAreGlobal && gSavePrintSettings) { var psSe...
PrintUtils.print();
function NSPrint(){ try { var webBrowserPrint = content .QueryInterface(Components.interfaces.nsIInterfaceRequestor) .getInterface(Components.interfaces.nsIWebBrowserPrint); if (webBrowserPrint) { gPrintSettings = GetPrintSettings(); webBrowserPrint.print(gPrintSettings, null); i...
var didOK = false; try { gPrintSettings = GetPrintSettings(); var webBrowserPrint = null; if (content) { webBrowserPrint = content .QueryInterface(Components.interfaces.nsIInterfaceRequestor) .getInterface(Components.interfaces.nsIWebBrowserPrint); } didOK = goPageSetup(window, gPrintSettings); if (didOK) { if (webBr...
PrintUtils.showPageSetup();
function NSPrintSetup(){ var didOK = false; try { gPrintSettings = GetPrintSettings(); var webBrowserPrint = null; if (content) { webBrowserPrint = content .QueryInterface(Components.interfaces.nsIInterfaceRequestor) .getInterface(Components.interfaces.nsIWebBrowserPrint); } didOK = ...
this.mApp = null;
this.mMIMEInfo = null;
function nsProgressDialog() { // Initialize data properties. this.mParent = null; this.mOperation = null; this.mStartTime = ( new Date() ).getTime(); this.observer = null; this.mLastUpdate = Number.MIN_VALUE; // To ensure first onProgress causes update. this.mInterval = 750; // Def...
const RDF_PROGID = "component:
const RDF_CONTRACTID = "@mozilla.org/rdf/rdf-service;1";
function nsSidebar(){ const RDF_PROGID = "component://netscape/rdf/rdf-service"; const nsIRDFService = Components.interfaces.nsIRDFService; this.rdf = Components.classes[RDF_PROGID].getService(nsIRDFService); this.datasource_uri = getSidebarDatasourceURI(PANELS_RDF_FILE); debug('datasource_uri is ' +...
this.rdf = Components.classes[RDF_PROGID].getService(nsIRDFService);
this.rdf = Components.classes[RDF_CONTRACTID].getService(nsIRDFService);
function nsSidebar(){ const RDF_PROGID = "component://netscape/rdf/rdf-service"; const nsIRDFService = Components.interfaces.nsIRDFService; this.rdf = Components.classes[RDF_PROGID].getService(nsIRDFService); this.datasource_uri = getSidebarDatasourceURI(PANELS_RDF_FILE); debug('datasource_uri is ' +...
var tree = this.getTree();
function nsTreeController_copy(tree){ var tree = this.getTree(); var select_list = tree.selectedItems; if (!select_list) return false; if (select_list.length < 1) return false; var datasource = tree.database; // Build a url that encodes all the select nodes // as well as their parent nodes ...
if (this.copy()) {
if (this.copy(tree)) {
function nsTreeController_cut(tree){ if (this.copy()) { this.doDelete(tree); return true; // copy succeeded, don't care if delete failed } else return false; // copy failed, so did cut}
textfield: { get: wsm.get_Textfield, set: wsm.set_Textfield },
textbox: { get: wsm.get_Textbox, set: wsm.set_Textbox},
function nsWidgetStateManager ( aFrameID ) { this.dataManager = { /** Persisted Data Hash Table * Page_ID -> Element_ID -> Property -> Value **/ pageData: [], setPageData: function ( aPageTag, aDataObject ) { this.pageData[aPageTag] = ...
{ get: wsm.get_Textbox, set: wsm.set_Textbox},
{ get: wsm.get_Textbox, set: wsm.set_Textbox }, listitem: { get: wsm.get_Listitem, set: wsm.set_Listitem },
function nsWidgetStateManager ( aFrameID ) { this.dataManager = { /** Persisted Data Hash Table * Page_ID -> Element_ID -> Property -> Value **/ pageData: [], setPageData: function ( aPageTag, aDataObject ) { this.pageData[aPageTag] = aData...
text = text.replace(/\n/g, " "); text = text.replace(/\r/g, " "); if (text.match(/^\s*\{.*\}\s*$/)) { text = "[" + text + "][0]"; } return eval(text);
return eval("(" + text + ")");
function objectEval(text) { text = text.replace(/\n/g, " "); text = text.replace(/\r/g, " "); if (text.match(/^\s*\{.*\}\s*$/)) { text = "[" + text + "][0]"; } return eval(text);}
objectMatchesEntry: function(aObject, aIndex)
objectMatchesEntry: function objectMatchesEntry(aObject, aLinkedViewer, aIndex)
objectMatchesEntry: function(aObject, aIndex) { return this.mFilters[aIndex](aObject); },
return this.mFilters[aIndex](aObject);
return this.mFilters[aIndex](aObject, aLinkedViewer);
objectMatchesEntry: function(aObject, aIndex) { return this.mFilters[aIndex](aObject); },
UpdateMailPaneConfig(true);
{ if (prefName == "mail.pane_config.dynamic") UpdateMailPaneConfig(true); else if (prefName == "mail.showFolderPaneColumns") UpdateFolderColumnVisibility(); }
observe: function(subject, topic, prefName) { // verify that we're changing the mail pane config pref if (topic == "nsPref:changed") UpdateMailPaneConfig(true); }
if (aTopic == "network:offline-status-changed")
if (aTopic == "profile-approve-change")
observe: function(aSubject, aTopic, aData) { debug("observe: " + aTopic); if (aTopic == "network:offline-status-changed") { debug("network:offline-status-changed: " + aData); // if we're not shutting down, and startup mode is "remember online state" if (!gShuttingDown && gOfflineStartupMode =...
debug("network:offline-status-changed: " + aData); if (!gShuttingDown && gOfflineStartupMode == kRememberLastState) { debug("remembering offline state: "); var prefs = Components.classes["@mozilla.org/preferences-service;1"]. getService(Components.interfaces.nsIPrefBranch); prefs.setBoolPref("network.online", aData ==...
debug("remembering offline state"); var prefs = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); prefs.setBoolPref("network.online", !ioServi...
observe: function(aSubject, aTopic, aData) { debug("observe: " + aTopic); if (aTopic == "network:offline-status-changed") { debug("network:offline-status-changed: " + aData); // if we're not shutting down, and startup mode is "remember online state" if (!gShuttingDown && gOfflineStartupMode =...
} else if (aTopic == "xpcom-shutdown" || aTopic == "quit-application") { gShuttingDown = true;
observerService.addObserver(this, "profile-approve-change", false);
observe: function(aSubject, aTopic, aData) { debug("observe: " + aTopic); if (aTopic == "network:offline-status-changed") { debug("network:offline-status-changed: " + aData); // if we're not shutting down, and startup mode is "remember online state" if (!gShuttingDown && gOfflineStartupMode =...
observe: function(subject, topic, state) { if (topic != "dl-start") return; var open = gPrefService.getBoolPref("browser.download.openSidebar"); if (open) { var sidebar = document.getElementById("sidebar-box"); if (sidebar.hidden || (sidebar.getAttribute("sidebarcommand") != "viewDownloadsSidebar")) toggleSidebar("view...
observe: function(aSubject, aTopic, aData) { setTimeout(FinishPrintPreview, 0); },
observe: function(subject, topic, state) { if (topic != "dl-start") return; var open = gPrefService.getBoolPref("browser.download.openSidebar"); if (open) { var sidebar = document.getElementById("sidebar-box"); if (sidebar.hidden || (sidebar.getAttribute("sidebarcommand") != "viewDownloadsSidebar...
if (gBrowser.mTabContainer.childNodes.length == 1) {
if (gBrowser.tabContainer.childNodes.length == 1) {
observe: function(subject, topic, prefName) { // verify that we're changing the tab browser strip auto hide pref if (topic != "nsPref:changed") return; var stripVisibility = !pref.getBoolPref(prefName); if (gBrowser.mTabContainer.childNodes.length == 1) { gBrowser.setStripVisibilityTo(stripVisi...
cmd.removeAttribute("collapsed");
cmd.collapsed = false;
observe: function(subject, topic, prefName) { if (!IsHTMLEditor()) return; // verify that we're changing a button pref if (topic != "nsPref:changed") return; if (prefName.substr(0, this.domain.length) != this.domain) return; var cmd = document.getElementById("cmd_highlight"); if (cmd) { v...
cmd.setAttribute("collapsed", "true");
cmd.collapsed = true;
observe: function(subject, topic, prefName) { if (!IsHTMLEditor()) return; // verify that we're changing a button pref if (topic != "nsPref:changed") return; if (prefName.substr(0, this.domain.length) != this.domain) return; var cmd = document.getElementById("cmd_highlight"); if (cmd) { v...
updateStyleSheetForObject(name);
updateStyleSheetForObject(name, gCachedStyleSheet);
observe: function(aSubject, aTopic, aPrefName) { var name = aPrefName; // We only want the actual category name. 24 is the length of the // leading 'calendar.category.color.' term name = name.substr(24, aPrefName.length - 24); updateStyleSheetForObject(name); }
if (aSubject) {
if (aData == "update-check-success") {
observe: function (aSubject, aTopic, aData) { var canFinish = false; dump("*** items = " + gUpdateWizard.items + "\n"); switch (aTopic) { case "Update:Extension:Started": break; case "Update:Extension:Item-Started": break; case "Update:Extension:Item-Ended": if (aSubject) { va...
nextButton.disabled = false;
observe: function (aSubject, aTopic, aData) { switch (aTopic) { case "Migration:Started": dump("*** started\n"); break; case "Migration:ItemBeforeMigrate": dump("*** before " + aData + "\n"); var label = document.getElementById(aData + "_migrated"); if (label) label.setAttrib...
if (topic != "network:offline-status-changed") return; if (state == "offline") gIsOffline = true; else gIsOffline = false;
if (topic != "network:offline-status-changed") return; gIsOffline = state == "offline";
observe: function(subject, topic, state) { // sanity checks if (topic != "network:offline-status-changed") return; if (state == "offline") gIsOffline = true; else gIsOffline = false; MessageComposeOfflineStateChanged(gIsOffline); try { setupLdapAutocompleteSession(); } catch (ex)...
var titleString = vxHistory.mBundle.getString("historyWindowTitle"); titleString = titleString.replace(/%FORM_NAME%/, documentTitle);
var titleString = vxHistory.mBundle.getFormattedString("historyWindowTitle", [ documentTitle ]);
Observe: function (aSubject, aTopic, aData) { // only update if we need to switch datasources. _ddf(aData.mDocumentID, vxHistory.mDocumentID); if (aData.mDocumentID === vxHistory.mDocumentID) { _dd("Not re-rooting for the same ID"); return false; } vxHistory.mDocumentID = aData.mDocumentID...
mTimer.init(this, kUpdateCheckDelay, kIScriptableTimer.PRIORITY_NORMAL,
mTimer.init(this, kUpdateCheckDelay, true,
observe: function(aSubject, aTopic, aData) { debug("observe: " + aTopic); if (aTopic == "domwindowopened") { try { const kIScriptableTimer = Components.interfaces.nsIScriptableTimer; mTimer = Components.classes["@mozilla.org/timer;1"]. createInstance(kIScriptableTimer); ...
button.removeAttribute("hidden");
button.setAttribute("hidden","false");
Observe: function(subject, topic, prefName) { // verify that we're changing a button pref if (topic != "nsPref:changed") return; if (prefName.substr(0, this.domain.length) != this.domain) return; var buttonName = prefName.substr(this.domain.length+1); var buttonId = buttonName + "-button"; var ...
case "calendar.week.d0sundaysoff": case "calendar.week.d1mondaysoff": case "calendar.week.d2tuesdaysoff": case "calendar.week.d2wednesdaysoff": case "calendar.week.d2thursdaysoff": case "calendar.week.d2fridaysoff": case "calendar.week.d2saturdaysoff": if (this.CalendarPreferences.calendarWindow.currentView != null)
observe: function(subject, topic, prefName) { // when calendar pref was changed, we reinitialize switch( prefName ) { case "calendar.event.defaultstarthour": case "calendar.event.defaultendhour": case "calendar.weeks.inview": case "calendar.previo...
switch (aTopic) { case "nsPref:changed": if (aPrefName != this.promptDomain) return; this._setSanitizeItem(); break; case "quit-application-granted": if (gPrefService.getBoolPref(this.shutdownDomain) && !gPrefService.prefHasUserValue(this.didSanitizeDomain)) { this.sanitize(null); gPrefService.setBoolPref(this.didSanit...
this._updateSanitizeItem();
observe: function (aSubject, aTopic, aPrefName) { switch (aTopic) { case "nsPref:changed": if (aPrefName != this.promptDomain) return; this._setSanitizeItem(); break; case "quit-application-granted": if (gPrefService.getBoolPref(this.shutdownDomain) && !gPrefService.prefH...
if (gBrowser.mTabContainer.childNodes.length == 1)
if (gBrowser.mTabContainer.childNodes.length == 1) {
observe: function(subject, topic, prefName) { // verify that we're changing the tab browser strip auto hide pref if (topic != "nsPref:changed") return; var stripVisibility = !pref.getBoolPref(prefName); if (gBrowser.mTabContainer.childNodes.length == 1) gBrowser.setStripVisibilityTo(stripVisibi...
pref.setBoolPref("browser.tabs.forceHide", false); }
observe: function(subject, topic, prefName) { // verify that we're changing the tab browser strip auto hide pref if (topic != "nsPref:changed") return; var stripVisibility = !pref.getBoolPref(prefName); if (gBrowser.mTabContainer.childNodes.length == 1) gBrowser.setStripVisibilityTo(stripVisibi...
dump( "Unknown topic: " + topic + "\n" );
alert( "Unknown topic: " + topic + "\nData: " + data );
Observe: function( subject, topic, data ) { switch ( topic ) { case progId+";onProgress": var words = data.split( " " ); onProgress( words[0], words[1] ); break; case progId+";onStatus": onStatus( data ); break; ...
var stripVisibility = !pref.getBoolPref(prefName); if (gBrowser.tabContainer.childNodes.length == 1) {
if (gBrowser.tabContainer.childNodes.length == 1 && window.toolbar.visible) { var stripVisibility = !pref.getBoolPref(prefName);
observe: function(subject, topic, prefName) { // verify that we're changing the tab browser strip auto hide pref if (topic != "nsPref:changed") return; var stripVisibility = !pref.getBoolPref(prefName); if (gBrowser.tabContainer.childNodes.length == 1) { gBrowser.setStripVisibilityTo(stripVisib...
printStatus("XML.ignoreWhitespace=" + XML.ignoreWhitespace); var x = new XML("<a></a> ");
printStatus("XML.ignoreWhitespace=" + XML.ignoreWhitespace); var x = new XML("<a></a> "); } catch(ex2) { actual = ex2 + ''; } print('expect = ' + expect); print('actual = ' + actual); TEST(1, expect, actual); END();
observe: function () { try { printBugNumber (bug); printStatus (summary); printStatus('Browser only: requires UniversalXPConnect'); printStatus("XML.ignoreWhitespace=" + ...
catch(ex2) { actual = ex2 + ''; } TEST(1, expect, actual); END(); }
observe: function () { try { printBugNumber (bug); printStatus (summary); printStatus('Browser only: requires UniversalXPConnect'); printStatus("XML.ignoreWhitespace=" + ...
break;
observe: function(subject, topic, prefName) { // when calendar pref was changed, we reinitialize switch( prefName ) { case "calendar.event.defaultstarthour": case "calendar.event.defaultendhour": case "calendar.weeks.inview": case "calendar.previo...
setTimeout("close()", 5000);
setTimeout(close, 5000);
observe: function (aSubject, aTopic, aData) { switch (aTopic) { case "Migration:Started": dump("*** started\n"); break; case "Migration:ItemBeforeMigrate": dump("*** before " + aData + "\n"); var label = document.getElementById(aData + "_migrated"); if (label) label.setAttrib...
document.getElementById("togglePasswords").disabled = false;
observe: function(subject, topic, state) { if (topic == "signonChanged") { if (state == "signons") { signons.length = 0; if (lastSignonSortColumn == "host") { lastSignonSortAscending = !lastSignonSortAscending; // prevents sort from being reversed } LoadSignons(); } e...
}
},
observe: function(subject, topic, prefName) { // when calendar pref was changed, we reinitialize switch( prefName ) { case "calendar.event.defaultstarthour": case "calendar.event.defaultendhour": case "calendar.weeks.inview": case "calendar.previo...
var buttonName = prefName.substr(this.domain.length+1);
observe: function(subject, topic, prefName) { // verify that we're changing a button pref if (topic != "nsPref:changed") return; var buttonName = prefName.substr(this.domain.length+1); hideButton(buttonName,pref.getBoolPref(prefName)) }
hideButton(buttonName,pref.getBoolPref(prefName))
document.getElementById("button-" + prefName.substr(this.domain.length+1)).hidden = !(pref.getBoolPref(prefName));
observe: function(subject, topic, prefName) { // verify that we're changing a button pref if (topic != "nsPref:changed") return; var buttonName = prefName.substr(this.domain.length+1); hideButton(buttonName,pref.getBoolPref(prefName)) }
} break; case "calendar.weeks.inview": if (this.CalendarPreferences.calendarWindow.multiweekView != null) { var newWeeks = document.createElement( "textbox" ); newWeeks.setAttribute("value", subject.getIntPref( prefName ) ); this.CalendarPreferences.calendarWindow.multiweekView .changeNumberOfWeeks(newWeeks);
observe: function(subject, topic, prefName) { subject = subject.QueryInterface(Components.interfaces.nsIPrefBranch2); // when calendar pref was changed, we reinitialize switch( prefName ) { case "calendar.previousweeks.inview": case "calendar.week.d0sundaysoff":...
this.printengine.PrintPreview();
PrintUtils.printPreview(onEnterPrintPreview, onExitPrintPreview);
observe: function(subject, topic, prefName) { this.printengine.PrintPreview(); }
case progId+";onProgress":
case contractId+";onProgress":
Observe: function( subject, topic, data ) { switch ( topic ) { case progId+";onProgress": var words = data.split( " " ); onProgress( words[0], words[1] ); break; case progId+";onStatus": // Ignore useless "Transferring data..."...
case progId+";onStatus":
case contractId+";onStatus":
Observe: function( subject, topic, data ) { switch ( topic ) { case progId+";onProgress": var words = data.split( " " ); onProgress( words[0], words[1] ); break; case progId+";onStatus": // Ignore useless "Transferring data..."...
case progId+";onCompletion":
case contractId+";onCompletion":
Observe: function( subject, topic, data ) { switch ( topic ) { case progId+";onProgress": var words = data.split( " " ); onProgress( words[0], words[1] ); break; case progId+";onStatus": // Ignore useless "Transferring data..."...
case progId+";onError":
case contractId+";onError":
Observe: function( subject, topic, data ) { switch ( topic ) { case progId+";onProgress": var words = data.split( " " ); onProgress( words[0], words[1] ); break; case progId+";onStatus": // Ignore useless "Transferring data..."...
MessageComposeOfflineStateChanged(state == "offline");
if (state == "offline") isOffline = true; else isOffline = false; MessageComposeOfflineStateChanged(isOffline); setupLdapAutocompleteSession();
Observe: function(subject, topic, state) { // sanity checks if (topic != "network:offline-status-changed") return; MessageComposeOfflineStateChanged(state == "offline"); }
if (topic != "network:offline-status-changed") return; setOfflineUI(state == "offline");
var ioService = Components.classes[kIOServiceProgID] .getService(Components.interfaces.nsIIOService); if (state == "network.proxy.type" && !ioService.offline) setProxyTypeUI();
observe: function(subject, topic, state) { // sanity checks if (topic != "network:offline-status-changed") return; setOfflineUI(state == "offline"); }
$.fn.offset = function(refElem) { if (!this[0]) throw '$.fn.offset requires an element.';
jQuery.fn.offset = function(refElem) { if (!this[0]) throw 'jQuery.fn.offset requires an element.';
$.fn.offset = function(refElem) { if (!this[0]) throw '$.fn.offset requires an element.'; refElem = (refElem) ? $(refElem)[0] : null; var x = 0, y = 0, elm = this[0], parent = this[0], pos = null, borders = [0,0], isElm = true, sl = 0, st = 0; do { if (parent.tagName == 'BODY' || parent.tagName == 'HTML') { // Safa...
refElem = (refElem) ? $(refElem)[0] : null;
refElem = (refElem) ? jQuery(refElem)[0] : null;
$.fn.offset = function(refElem) { if (!this[0]) throw '$.fn.offset requires an element.'; refElem = (refElem) ? $(refElem)[0] : null; var x = 0, y = 0, elm = this[0], parent = this[0], pos = null, borders = [0,0], isElm = true, sl = 0, st = 0; do { if (parent.tagName == 'BODY' || parent.tagName == 'HTML') { // Safa...
if (($.browser.safari || $.browser.msie) && pos != 'absolute') { x += parseInt($.css(parent, 'marginLeft')) || 0; y += parseInt($.css(parent, 'marginTop')) || 0;
if ((jQuery.browser.safari || jQuery.browser.msie) && pos != 'absolute') { x += parseInt(jQuery.css(parent, 'marginLeft')) || 0; y += parseInt(jQuery.css(parent, 'marginTop')) || 0;
$.fn.offset = function(refElem) { if (!this[0]) throw '$.fn.offset requires an element.'; refElem = (refElem) ? $(refElem)[0] : null; var x = 0, y = 0, elm = this[0], parent = this[0], pos = null, borders = [0,0], isElm = true, sl = 0, st = 0; do { if (parent.tagName == 'BODY' || parent.tagName == 'HTML') { // Safa...
pos = $.css(parent, 'position'); border = [parseInt($.css(parent, 'borderLeftWidth')) || 0, parseInt($.css(parent, 'borderTopWidth')) || 0];
pos = jQuery.css(parent, 'position'); border = [parseInt(jQuery.css(parent, 'borderLeftWidth')) || 0, parseInt(jQuery.css(parent, 'borderTopWidth')) || 0];
$.fn.offset = function(refElem) { if (!this[0]) throw '$.fn.offset requires an element.'; refElem = (refElem) ? $(refElem)[0] : null; var x = 0, y = 0, elm = this[0], parent = this[0], pos = null, borders = [0,0], isElm = true, sl = 0, st = 0; do { if (parent.tagName == 'BODY' || parent.tagName == 'HTML') { // Safa...
if (($.browser.safari || $.browser.opera) && !isElm && (pos == 'absolute' || pos == 'relative')) {
if ((jQuery.browser.safari || jQuery.browser.opera) && !isElm && (pos == 'absolute' || pos == 'relative')) {
$.fn.offset = function(refElem) { if (!this[0]) throw '$.fn.offset requires an element.'; refElem = (refElem) ? $(refElem)[0] : null; var x = 0, y = 0, elm = this[0], parent = this[0], pos = null, borders = [0,0], isElm = true, sl = 0, st = 0; do { if (parent.tagName == 'BODY' || parent.tagName == 'HTML') { // Safa...
var offset = $(refElem).offset();
var offset = jQuery(refElem).offset();
$.fn.offset = function(refElem) { if (!this[0]) throw '$.fn.offset requires an element.'; refElem = (refElem) ? $(refElem)[0] : null; var x = 0, y = 0, elm = this[0], parent = this[0], pos = null, borders = [0,0], isElm = true, sl = 0, st = 0; do { if (parent.tagName == 'BODY' || parent.tagName == 'HTML') { // Safa...
borderTop: parseInt($.css(elm, 'borderTopWidth')) || 0, borderLeft: parseInt($.css(elm, 'borderLeftWidth')) || 0, marginTop: parseInt($.css(elm, 'marginTopWidth')) || 0, marginLeft: parseInt($.css(elm, 'marginLeftWidth')) || 0,
borderTop: parseInt(jQuery.css(elm, 'borderTopWidth')) || 0, borderLeft: parseInt(jQuery.css(elm, 'borderLeftWidth')) || 0, marginTop: parseInt(jQuery.css(elm, 'marginTopWidth')) || 0, marginLeft: parseInt(jQuery.css(elm, 'marginLeftWidth')) || 0,
$.fn.offset = function(refElem) { if (!this[0]) throw '$.fn.offset requires an element.'; refElem = (refElem) ? $(refElem)[0] : null; var x = 0, y = 0, elm = this[0], parent = this[0], pos = null, borders = [0,0], isElm = true, sl = 0, st = 0; do { if (parent.tagName == 'BODY' || parent.tagName == 'HTML') { // Safa...
var x = 0, y = 0, elm = this[0], parent = this[0], pos = null, borders = [0,0], isElm = true, sl = 0, st = 0;
var x = 0, y = 0, elem = this[0], parent = this[0], sl = 0, st = 0;
jQuery.fn.offset = function(refElem) { if (!this[0]) throw 'jQuery.fn.offset requires an element.'; refElem = (refElem) ? jQuery(refElem)[0] : null; var x = 0, y = 0, elm = this[0], parent = this[0], pos = null, borders = [0,0], isElm = true, sl = 0, st = 0; do { if (parent.tagName == 'BODY' || parent.tagName == 'HTM...
if ((jQuery.browser.safari || jQuery.browser.msie) && pos != 'absolute') {
if ((jQuery.browser.safari || jQuery.browser.msie) && jQuery.css(parent, 'position') != 'absolute') {
jQuery.fn.offset = function(refElem) { if (!this[0]) throw 'jQuery.fn.offset requires an element.'; refElem = (refElem) ? jQuery(refElem)[0] : null; var x = 0, y = 0, elm = this[0], parent = this[0], pos = null, borders = [0,0], isElm = true, sl = 0, st = 0; do { if (parent.tagName == 'BODY' || parent.tagName == 'HTM...
pos = jQuery.css(parent, 'position'); border = [parseInt(jQuery.css(parent, 'borderLeftWidth')) || 0, parseInt(jQuery.css(parent, 'borderTopWidth')) || 0]; sl = parent.scrollLeft; st = parent.scrollTop; x += (parent.offsetLeft || 0) + border[0] - sl; y += (parent.offsetTop || 0) + border[1] - st; if ((jQuery.br...
x += parent.offsetLeft || 0; y += parent.offsetTop || 0; if (jQuery.browser.mozilla || jQuery.browser.msie) { x += parseInt(jQuery.css(parent, 'borderLeftWidth')) || 0; y += parseInt(jQuery.css(parent, 'borderTopWidth')) || 0;
jQuery.fn.offset = function(refElem) { if (!this[0]) throw 'jQuery.fn.offset requires an element.'; refElem = (refElem) ? jQuery(refElem)[0] : null; var x = 0, y = 0, elm = this[0], parent = this[0], pos = null, borders = [0,0], isElm = true, sl = 0, st = 0; do { if (parent.tagName == 'BODY' || parent.tagName == 'HTM...
parent = parent.offsetParent; isElm = false; } while(parent); if (refElem) {
var op = parent.offsetParent; do { sl += parent.scrollLeft || 0; st += parent.scrollTop || 0; parent = parent.parentNode; } while (parent != op); } while (parent); if (refElem) {
jQuery.fn.offset = function(refElem) { if (!this[0]) throw 'jQuery.fn.offset requires an element.'; refElem = (refElem) ? jQuery(refElem)[0] : null; var x = 0, y = 0, elm = this[0], parent = this[0], pos = null, borders = [0,0], isElm = true, sl = 0, st = 0; do { if (parent.tagName == 'BODY' || parent.tagName == 'HTM...
if (jQuery.browser.safari || jQuery.browser.opera) { x += parseInt(jQuery.css(elem, 'borderLeftWidth')) || 0; y += parseInt(jQuery.css(elem, 'borderTopWidth')) || 0; }
jQuery.fn.offset = function(refElem) { if (!this[0]) throw 'jQuery.fn.offset requires an element.'; refElem = (refElem) ? jQuery(refElem)[0] : null; var x = 0, y = 0, elm = this[0], parent = this[0], pos = null, borders = [0,0], isElm = true, sl = 0, st = 0; do { if (parent.tagName == 'BODY' || parent.tagName == 'HTM...
top: y, left: x, width: elm.offsetWidth, height: elm.offsetHeight, borderTop: parseInt(jQuery.css(elm, 'borderTopWidth')) || 0, borderLeft: parseInt(jQuery.css(elm, 'borderLeftWidth')) || 0, marginTop: parseInt(jQuery.css(elm, 'marginTopWidth')) || 0, marginLeft: parseInt(jQuery.css(elm, 'marginLeftWidth')) || 0,
top: y - st, left: x - sl, width: elem.offsetWidth, height: elem.offsetHeight, borderTop: parseInt(jQuery.css(elem, 'borderTopWidth')) || 0, borderLeft: parseInt(jQuery.css(elem, 'borderLeftWidth')) || 0, marginTop: parseInt(jQuery.css(elem, 'marginTopWidth')) || 0, marginLeft: parseInt(jQuery.css(elem, 'marginLe...
jQuery.fn.offset = function(refElem) { if (!this[0]) throw 'jQuery.fn.offset requires an element.'; refElem = (refElem) ? jQuery(refElem)[0] : null; var x = 0, y = 0, elm = this[0], parent = this[0], pos = null, borders = [0,0], isElm = true, sl = 0, st = 0; do { if (parent.tagName == 'BODY' || parent.tagName == 'HTM...
var t = $.grep($.sibling(a),function(b){return b.nodeName == a.nodeName;}); if ( e ) { n = t.length - n - 1; } return typeof n != 'undefined' ? t[n] == a : t.length;
var t = $.grep($.sibling(a),function(b){ return b.nodeName == a.nodeName; }); if ( e ) n = t.length - n - 1; return n != undefined ? t[n] == a : t.length;
$.ofType = function(a,n,e) { var t = $.grep($.sibling(a),function(b){return b.nodeName == a.nodeName;}); if ( e ) { n = t.length - n - 1; } return typeof n != 'undefined' ? t[n] == a : t.length;};
return true;
function OkButtonCallback() { nntpServer.maxArticles = numberElement.value; nntpServer.markOldRead = markreadElement.checked;}
var capture = document.getElementById("menu_capture");
this.disableCapture = false; var rv = false;
okToCapture: function () { var capture = document.getElementById("menu_capture"); if (!window._content.document) { return false; } var formsArray = window._content.document.forms; var form; for (form=0; form<formsArray.length; form++) { var elementsArray = formsArray[form...
var value = elementsArray[element].value; if ((type=="" || type=="text") && value!="") { return true;
if (type=="" || type=="text") { var value = elementsArray[element].value; rv = true; if (value != "") { return rv; }
okToCapture: function () { var capture = document.getElementById("menu_capture"); if (!window._content.document) { return false; } var formsArray = window._content.document.forms; var form; for (form=0; form<formsArray.length; form++) { var elementsArray = formsArray[form...
return false;
if (rv) { this.disableCapture = true; } return rv;
okToCapture: function () { var capture = document.getElementById("menu_capture"); if (!window._content.document) { return false; } var formsArray = window._content.document.forms; var form; for (form=0; form<formsArray.length; form++) { var elementsArray = formsArray[form...
if (!formsArray) { capture.setAttribute("disabled", "true"); return; }
function okToCapture() { var capture = document.getElementById("menu_capture"); if (!capture) { return; } if (!window._content || !window._content.document) { capture.setAttribute("disabled", "true"); return; } var formsArray = window._content.document.forms; var form; for (form=0; form<formsArray.leng...
var formsArray = window._content.document.forms; if (!formsArray) { capture.setAttribute("disabled", "true"); return; } var form; for (form=0; form<formsArray.length; form++) { var elementsArray = formsArray[form].elements; var element; for (element=0; element<elementsArray.length; element++) { var type = elementsArray...
var formsArray; var framesArray = window._content.frames; if (framesArray.length != 0) { var frame; for (frame=0; frame<framesArray.length; frame++) { formsArray = framesArray[frame].document.forms; if (okToCapture2(formsArray)) {
function okToCapture() { var capture = document.getElementById("menu_capture"); if (!capture) { return; } if (!window._content || !window._content.document) { capture.setAttribute("disabled", "true"); return; } var formsArray = window._content.document.forms; if (!formsArray) { capture.setAttribute("...
capture.setAttribute("disabled", "true");
formsArray = window._content.document.forms; if (okToCapture2(formsArray)) { capture.setAttribute("disabled", "false"); } else { capture.setAttribute("disabled", "true"); } return;
function okToCapture() { var capture = document.getElementById("menu_capture"); if (!capture) { return; } if (!window._content || !window._content.document) { capture.setAttribute("disabled", "true"); return; } var formsArray = window._content.document.forms; if (!formsArray) { capture.setAttribute("...
var prefill = document.getElementById("menu_prefill");
okToPrefill: function () { var prefill = document.getElementById("menu_prefill"); if (!window._content.document) { return false; } var formsArray = window._content.document.forms; var form; for (form=0; form<formsArray.length; form++) { var elementsArray = formsArray[form...
if (!formsArray) { prefill.setAttribute("disabled", "true"); return; }
function okToPrefill() { var prefill = document.getElementById("menu_prefill"); if (!prefill) { return; } if (!window._content || !window._content.document) { prefill.setAttribute("disabled", "true"); return; } var formsArray = window._content.document.forms; var form; for (form=0; form<formsArray.leng...
var formsArray = window._content.document.forms; if (!formsArray) { prefill.setAttribute("disabled", "true"); return; } var form; for (form=0; form<formsArray.length; form++) { var elementsArray = formsArray[form].elements; var element; for (element=0; element<elementsArray.length; element++) { var type = elementsArray...
var formsArray; var framesArray = window._content.frames; if (framesArray.length != 0) { var frame; for (frame=0; frame<framesArray.length; frame++) { formsArray = framesArray[frame].document.forms; if (okToPrefill2(formsArray)) {
function okToPrefill() { var prefill = document.getElementById("menu_prefill"); if (!prefill) { return; } if (!window._content || !window._content.document) { prefill.setAttribute("disabled", "true"); return; } var formsArray = window._content.document.forms; if (!formsArray) { prefill.setAttribute("...
prefill.setAttribute("disabled", "true");
formsArray = window._content.document.forms; if (okToPrefill2(formsArray)) { prefill.setAttribute("disabled", "false"); } else { prefill.setAttribute("disabled", "true"); } return;
function okToPrefill() { var prefill = document.getElementById("menu_prefill"); if (!prefill) { return; } if (!window._content || !window._content.document) { prefill.setAttribute("disabled", "true"); return; } var formsArray = window._content.document.forms; if (!formsArray) { prefill.setAttribute("...
if (gSearchInput.showingSearchCriteria && !(returnKeyHit && gSearchInput.value == "")) return;
function onAbSearchInput(returnKeyHit){ SearchInputChanged(); if (gSearchTimer) { clearTimeout(gSearchTimer); gSearchTimer = null; } if (returnKeyHit) { gSearchInput.select(); onEnterInSearchBar(); } else { gSearchTimer = setTimeout("onEnterInSearchBar();", 800); }}
var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(); promptService = promptService.QueryInterface(Components.interfaces.nsIPromptService); if (promptService) { promptService.alert(window, gFilterBundle.getString("cannotHaveDuplicateFilterTitle"), gFilterBundle.getString("cann...
if (gPromptService) gPromptService.alert(window, gFilterBundle.getString("cannotHaveDuplicateFilterTitle"), gFilterBundle.getString("cannotHaveDuplicateFilterMessage") );
function onAccept(){ if (duplicateFilterNameExists(gFilterNameElement.value)) { var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(); promptService = promptService.QueryInterface(Components.interfaces.nsIPromptService); if (promptService) { ...