rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
SetRelativeCheckbox(); | SetRelativeCheckbox(gDialog.makeRelativeLink); | function InitDialog(){ // Must use getAttribute, not "globalElement.href", // or foreign chars aren't coverted correctly! gDialog.hrefInput.value = globalElement.getAttribute("href"); // Set "Relativize" checkbox according to current URL state SetRelativeCheckbox();} |
moveToAlertPosition(); | var windowElement = document.getElementById("findDialog"); if (!windowElement.hasAttribute("screenX") || !windowElement.hasAttribute("screenY")) { sizeToContent(); moveToAlertPosition(); } | function initDialogObject(){ // Create dialog object and initialize. dialog = new Object; dialog.findKey = document.getElementById("dialog.findKey"); dialog.caseSensitive = document.getElementById("dialog.caseSensitive"); dialog.wrap = document.getElementById("dialog.wrap"); dialog.searchBack... |
this.addDNDListener(this.mOutliner, "ondragenter"); this.addDNDListener(this.mOutliner, "ondragover"); this.addDNDListener(this.mOutliner, "ondragexit"); this.addDNDListener(this.mOutliner, "ondraggesture"); this.addDNDListener(this.mOutliner, "ondragdrop"); | this.addDNDListener(this.mTree, "ondragenter"); this.addDNDListener(this.mTree, "ondragover"); this.addDNDListener(this.mTree, "ondragexit"); this.addDNDListener(this.mTree, "ondraggesture"); this.addDNDListener(this.mTree, "ondragdrop"); | initDND: function() { if (this.mAllowDND) { // addEventListener doesn't work for dnd events, apparently... so we use the attributes this.addDNDListener(this.mOutliner, "ondragenter"); this.addDNDListener(this.mOutliner, "ondragover"); this.addDNDListener(this.mOutliner, "ondragexit"); thi... |
var favoriteFolderMenu = document.getElementById('menu_favoriteFolder'); if (favoriteFolderMenu && !favoriteFolderMenu.disabled) { var folderTree = GetFolderTree(); var startIndex = {}; var endIndex = {}; folderTree.view.selection.getRangeAt(0, startIndex, endIndex); if (startIndex.value >= 0) { var numSelected = endIn... | function InitEditMessagesMenu(){ goSetMenuValue('cmd_delete', 'valueDefault'); goSetAccessKey('cmd_delete', 'valueDefaultAccessKey'); document.commandDispatcher.updateCommands('create-menu-edit');} | |
this.mStampDate = new CalDateTime(); this.mStampDate.jsDate = new Date(); | initEvent: function () { this.mStartDate = new CalDateTime(); this.mEndDate = new CalDateTime(); this.mStampDate = new CalDateTime(); this.mStampDate.jsDate = new Date(); }, | |
this.mTypeAheadCaseSensitive = prefService.getIntPref("accessibility.typeaheadfind.casesensitive"); | initFindBar: function () { getBrowser().addEventListener("keypress", findBar_OnBrowserKeyPress, false); getBrowser().addEventListener("mouseup", findBar_OnBrowserMouseUp, false); var prefService = Components.classes["@mozilla.org/prefere... | |
getBrowser().addEventListener("mousedown", onBrowserMouseDown, false); | getBrowser().addEventListener("mouseup", onBrowserMouseUp, false); | function initFindBar(){ getBrowser().addEventListener("keypress", onBrowserKeyPress, false); getBrowser().addEventListener("mousedown", onBrowserMouseDown, false); var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch... |
console.windows.hookedWindows = new Array(); | console.hookedWindows = new Array(); | function initHandlers(){ function wwObserve (subject, topic, data) { //dd ("wwObserver::Observe " + subject + ", " + topic); if (topic == "domwindowopened") console.onWindowOpen (subject); else console.onWindowClose (subject); }; console.wwObserver = {observe: wwOb... |
if (win.location.href != "chrome: | if (!isWindowFiltered(win)) | function initHandlers(){ function wwObserve (subject, topic, data) { //dd ("wwObserver::Observe " + subject + ", " + topic); if (topic == "domwindowopened") console.onWindowOpen (subject); else console.onWindowClose (subject); }; console.wwObserver = {observe: wwOb... |
obj.rdf = new RDFHelper(); obj.rdf.initTree("user-list"); obj.rdf.setTreeRoot("user-list", obj.rdf.resNullChan); | function initHost(obj){ client.commands = new CCommandManager(); addCommands (obj.commands); obj.networks = new Object(); obj.eventPump = new CEventPump (10); obj.networks["efnet"] = new CIRCNetwork ("efnet", [{name: "irc.magic.ca", port: 6667}, {name: "irc.freei... | |
new CIRCNetwork ("dalnet", [{name: "irc.dalnet.org", port:6667}], | new CIRCNetwork ("dalnet", [{name: "irc.dal.net", port:6667}], | function initHost(obj){ client.commands = new CCommandManager(); addCommands (obj.commands); obj.networks = new Object(); obj.eventPump = new CEventPump (200); obj.networks["efnet"] = new CIRCNetwork ("efnet", [{name: "irc.mcs.net", port: 6667}, {name: "irc.magic.ca"... |
this.mPanelSet.addObserver("panelsetready", this); | this.mPanelSet.addObserver("panelsetready", this, false); | initialize: function(aTarget) { this.mInitTarget = aTarget; this.initSearch(); var el = document.getElementById("bxBrowser"); el.addEventListener("load", BrowserLoadListener, true); this.toggleBrowser(true, false); this.toggleSearch(true, false); this.mClipboardHelper = XPCU.getService(kClip... |
initialize: function(aTarget) | initialize: function(aTarget, aURI) | initialize: function(aTarget) { this.mInitTarget = aTarget; //this.initSearch(); var el = document.getElementById("bxBrowser"); el.addEventListener("load", BrowserLoadListener, true); this.setBrowser(false, true); //this.setSearch(false, true); this.mClipboardHelper = XPCU.getService(kClipbo... |
if (aURI) { this.gotoURL(aURI); } | initialize: function(aTarget) { this.mInitTarget = aTarget; //this.initSearch(); var el = document.getElementById("bxBrowser"); el.addEventListener("load", BrowserLoadListener, true); this.setBrowser(false, true); //this.setSearch(false, true); this.mClipboardHelper = XPCU.getService(kClipbo... | |
opener.viewer.mDOMOutliner.onClientDrop = ColumnsDialogDragDropOut; | opener.viewer.mDOMTree.onClientDrop = ColumnsDialogDragDropOut; | initialize: function() { // bug 56270 - dragSession.sourceDocument is null -- // causes me to code this very temporary, very nasty hack // to make sure I get notified when a column is dropped opener.viewer.mDOMOutliner.onClientDrop = ColumnsDialogDragDropOut; this.buildContents(); // notify... |
this.setWhitespaceNodes(PrefUtils.getPref("inspector.dom.showWhitespaceNodes")); | initialize: function(aPane) { //this.initColumns(); this.mPanel = aPane; aPane.notifyViewerReady(this); this._toggleAnonContent(true, PrefUtils.getPref("inspector.dom.showAnon")); this.setFlashSelected(PrefUtils.getPref("inspector.blink.on")); }, | |
this.mPanelSet.addObserver("panelsetready", this); | this.mPanelSet.addObserver("panelsetready", this, false); | initialize: function() { this.mInitTarget = window.arguments && window.arguments.length > 0 ? window.arguments[0] : null; this.mPanelSet = document.getElementById("bxPanelSet"); this.mPanelSet.addObserver("panelsetready", this); this.mPanelSet.initialize(); }, |
var firstTerm = gSearchTerms[0]; | var firstTerm = gSearchTerms[0].obj; | function initializeBooleanWidgets() { var booleanAnd = true; // get the boolean value from the first term var firstTerm = gSearchTerms[0]; if (firstTerm) booleanAnd = firstTerm.booleanAnd; // target radio items have value="and" or value="or" targetValue = "or"; if (booleanAnd) targetValue = ... |
targetValue = "or"; | var targetValue = "or"; | function initializeBooleanWidgets() { var booleanAnd = true; // get the boolean value from the first term var firstTerm = gSearchTerms[0]; if (firstTerm) booleanAnd = firstTerm.booleanAnd; // target radio items have value="and" or value="or" targetValue = "or"; if (booleanAnd) targetValue = ... |
targetElement = gSearchBooleanRadiogroup.getElementsByAttribute("value", targetValue)[0]; | var targetElement = gSearchBooleanRadiogroup.getElementsByAttribute("value", targetValue)[0]; | function initializeBooleanWidgets() { var booleanAnd = true; // get the boolean value from the first term var firstTerm = gSearchTerms[0]; if (firstTerm) booleanAnd = firstTerm.booleanAnd; // target radio items have value="and" or value="or" targetValue = "or"; if (booleanAnd) targetValue = ... |
SetupMoveCopyMenus('goMenu', accountManagerDataSource, folderDataSource); | function InitializeDataSources(){ //Setup common mailwindow stuff. AddDataSources(); //To threadpane move context menu SetupMoveCopyMenus('threadPaneContext-moveMenu', accountManagerDataSource, folderDataSource); //To threadpane copy content menu SetupMoveCopyMenus('threadPaneContext-copyMenu', accountManagerDataSource... | |
gFilter.actionLabel = gActionLabel.selectedItem.getAttribute("value"); setLabelAttributes(gFilter.actionLabel, "actionValueLabel"); | function initializeDialog(filter){ var selectedPriority; gFilterNameElement.value = filter.filterName; gActionElement.selectedItem=gActionElement.getElementsByAttribute("value", filter.action)[0]; showActionElementFor(gActionElement.selectedItem); if (filter.action == nsMsgFilterAction.MoveToFolder) { ... | |
showActionElementFor(gActionElement.selectedItem); | function initializeDialog(filter){ gFilterNameElement.value = filter.filterName; gActionElement.selectedItem=gActionElement.getElementsByAttribute("data", filter.action)[0]; if (filter.action == nsMsgFilterAction.MoveToFolder) { // there are multiple sub-items that have given attribute var target... | |
if (targets && targets.length) { | if (targets && targets.length > 0) { | function initializeDialog(filter){ gFilterNameElement.value = filter.filterName; gActionElement.selectedItem=gActionElement.getElementsByAttribute("data", filter.action)[0]; if (filter.action == nsMsgFilterAction.MoveToFolder) { // there are multiple sub-items that have given attribute var target... |
} } else if (filter.action == nsMsgFilterAction.ChangePriority) { dump("initializing priority..\n"); var selectedPriority = gActionPriority.getElementsByAttribute("data", filter.actionPriority); if (selectedPriority && selectedPriority.length > 0) { var selectedPriority = selectedPriority[0]; gActionPriority.selectedI... | function initializeDialog(filter){ gFilterNameElement.value = filter.filterName; gActionElement.selectedItem=gActionElement.getElementsByAttribute("data", filter.action)[0]; if (filter.action == nsMsgFilterAction.MoveToFolder) { // there are multiple sub-items that have given attribute var target... | |
if (filter.searchTerms.Count() == 1) document.getElementById("less0").setAttribute("disabled", "true"); | function initializeDialog(filter){ gFilterNameElement.value = filter.filterName; var actionList = filter.actionList; var numActions = actionList.Count(); for (var actionIndex=0; actionIndex < numActions; actionIndex++) { var filterAction = actionList.QueryElementAt(actionIndex, Components.interf... | |
gActionValueDeck = document.getElementById("actionValueDeck"); gActionPriority = document.getElementById("actionValuePriority"); | function initializeFilterWidgets(){ gFilterNameElement = document.getElementById("filterName"); gActionElement = document.getElementById("actionMenu"); gActionTargetElement = document.getElementById("actionTargetFolder");} | |
gIsOffline = false; | gIsOffline = gIOService.offline; | function InitializeGlobalVariables(){ gAccountManager = Components.classes["@mozilla.org/messenger/account-manager;1"].getService(Components.interfaces.nsIMsgAccountManager); gIOService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService); gPromptService = Componen... |
gLDAPPrefsService = Components.classes["@mozilla.org/ldapprefs-service;1"].getService(Components.interfaces.nsILDAPPrefsService); | gLDAPPrefsService = Components.classes["@mozilla.org/ldapprefs-service;1"].getService(); gLDAPPrefsService = gLDAPPrefsService.QueryInterface( Components.interfaces.nsILDAPPrefsService); | function InitializeGlobalVariables(){ gAccountManager = Components.classes["@mozilla.org/messenger/account-manager;1"].getService(Components.interfaces.nsIMsgAccountManager); gIOService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService); gPromptService = Componen... |
gMailSession = Components.classes["@mozilla.org/messenger/services/session;1"].getService(Components.interfaces.nsIMsgMailSession); | function InitializeGlobalVariables(){ gAccountManager = Components.classes["@mozilla.org/messenger/account-manager;1"].getService(Components.interfaces.nsIMsgAccountManager); gIOService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService); gPromptService = Componen... | |
if (!gCollapsedHeaderView.length) for (var index = 0; index < gCollapsedHeaderList.length; index++) { gCollapsedHeaderView[gCollapsedHeaderList[index].name] = new createHeaderEntry('collapsed', gCollapsedHeaderList[index]); } if (!gExpandedHeaderView.length) | for (index = 0; index < gExpandedHeaderList.length; index++) | function initializeHeaderViewTables(){ // iterate over each header in our header list arrays and create header entries // for each one. These header entries are then stored in the appropriate header table if (!gCollapsedHeaderView.length) // if we haven't already initialized the collapsed view... for (var index ... |
for (index = 0; index < gExpandedHeaderList.length; index++) { var headerName = gExpandedHeaderList[index].name; gExpandedHeaderView[headerName] = new createHeaderEntry('expanded', gExpandedHeaderList[index]); } if (gShowOrganization) { var organizationEntry = {name:"organization", outputFunction:updateHeaderValue}; g... | var headerName = gExpandedHeaderList[index].name; gExpandedHeaderView[headerName] = new createHeaderEntry('expanded', gExpandedHeaderList[index]); } if (gShowOrganization) { var organizationEntry = {name:"organization", outputFunction:updateHeaderValue}; gExpandedHeaderView[organizationEntry.name] = new createHeaderEn... | function initializeHeaderViewTables(){ // iterate over each header in our header list arrays and create header entries // for each one. These header entries are then stored in the appropriate header table if (!gCollapsedHeaderView.length) // if we haven't already initialized the collapsed view... for (var index ... |
for (var index = 0; index < gCollapsedHeaderList.length; index++) | if (!gCollapsedHeaderView.length) for (var index = 0; index < gCollapsedHeaderList.length; index++) { gCollapsedHeaderView[gCollapsedHeaderList[index].name] = new createHeaderEntry('collapsed', gCollapsedHeaderList[index]); } if (!gExpandedHeaderView.length) | function initializeHeaderViewTables(){ // iterate over each header in our header list arrays and create header entries // for each one. These header entries are then stored in the appropriate header table for (var index = 0; index < gCollapsedHeaderList.length; index++) { gCollapsedHeaderView[gCollapsedHeaderLi... |
gCollapsedHeaderView[gCollapsedHeaderList[index].name] = new createHeaderEntry('collapsed', gCollapsedHeaderList[index]); } for (index = 0; index < gExpandedHeaderList.length; index++) { var headerName = gExpandedHeaderList[index].name; gExpandedHeaderView[headerName] = new createHeaderEntry('expanded', gExpandedHeade... | for (index = 0; index < gExpandedHeaderList.length; index++) { var headerName = gExpandedHeaderList[index].name; gExpandedHeaderView[headerName] = new createHeaderEntry('expanded', gExpandedHeaderList[index]); } if (gShowUserAgent) { var userAgentEntry = {name:"user-agent", outputFunction:updateHeaderValue}; gExpanded... | function initializeHeaderViewTables(){ // iterate over each header in our header list arrays and create header entries // for each one. These header entries are then stored in the appropriate header table for (var index = 0; index < gCollapsedHeaderList.length; index++) { gCollapsedHeaderView[gCollapsedHeaderLi... |
var controls = document.controls; | var controls = document.getElementsByAttribute("wsm_persist", "true"); | function initializeIspData(){ if (!document.getElementById("mailaccount").checked) { parent.SetCurrentAccountData(null); return; } var ispName; // now reflect the datasource up into the parent var controls = document.controls; for (var i=0; i<controls.length ;i++) { var fo... |
if (formElement.name == "ispchoice" && | if (formElement.getAttribute("group") == "ispchoice" && | function initializeIspData(){ if (!document.getElementById("mailaccount").checked) { parent.SetCurrentAccountData(null); return; } var ispName; // now reflect the datasource up into the parent var controls = document.controls; for (var i=0; i<controls.length ;i++) { var fo... |
dump("ispName = " + formElement.parentNode.id + "\n"); ispName = formElement.parentNode.id; | dump("ispName = " + formElement.id + "\n"); ispName = formElement.id; | function initializeIspData(){ if (!document.getElementById("mailaccount").checked) { parent.SetCurrentAccountData(null); return; } var ispName; // now reflect the datasource up into the parent var controls = document.controls; for (var i=0; i<controls.length ;i++) { var fo... |
dump("initializing ISP data for " + ispName + "\n"); | function initializeIspData(){ if (!document.getElementById("mailaccount").checked) { parent.SetCurrentAccountData(null); return; } var ispName; // now reflect the datasource up into the parent var controls = document.controls; for (var i=0; i<controls.length ;i++) { var fo... | |
for (i = 0; i < searchTerms.Count(); i++) { | for (var i = 0; i < searchTerms.Count(); i++) { | function initializeSearchRows(scope, searchTerms){ for (i = 0; i < searchTerms.Count(); i++) { var searchTerm = searchTerms.QueryElementAt(i, nsIMsgSearchTerm); createSearchRow(i, scope, searchTerm); gTotalSearchTerms++; } initializeBooleanWidgets(); updateRemoveRowButton();} |
gSearchTermTree = document.getElementById("searchTermTree"); | function initializeSearchWidgets() { gSearchBooleanRadiogroup = document.getElementById("booleanAndGroup"); gSearchRowContainer = document.getElementById("searchTermList"); gSearchLessButton = document.getElementById("less"); if (!gSearchLessButton) dump("I couldn't find less button!");} | |
gSearchRowContainer = document.getElementById("searchTermList"); gSearchTermTree = document.getElementById("searchTermTree"); | gSearchTermList = document.getElementById("searchTermList"); | function initializeSearchWidgets() { gSearchBooleanRadiogroup = document.getElementById("booleanAndGroup"); gSearchRowContainer = document.getElementById("searchTermList"); gSearchTermTree = document.getElementById("searchTermTree"); gSearchLessButton = document.getElementById("less"); if (!gSearchLessBu... |
gThreadTree.controllers.appendController(nsSearchResultsController); top.controllers.insertControllerAt(0, nsSearchResultsController); ThreadTreeUpdate_Search(); | function initializeSearchWindowWidgets(){ gFolderPicker = document.getElementById("searchableFolders"); gThreadTree = document.getElementById("threadTree"); gButton = document.getElementById("search-button"); msgWindow = Components.classes[msgWindowContractID].createInstance(nsIMsgWindow); msgWindow.stat... | |
var isEnabled = prefs.GetBoolPref(autoupdateEnabledString); | var isEnabled = prefBranch.getBoolPref(autoupdateEnabledString); | function initializeSelection(){ var menuItemNode; var hasAdvertisedURL = false; var hasNextUpdate = true; var lastFetchMenuNode; var advertisedMenuNode; try { var isEnabled = prefs.GetBoolPref(autoupdateEnabledString); enabledCheckBox.checked = isEnabled; } catch(exception){ enabledCheckBox.checked = ... |
var timingPref = prefs.GetIntPref(autoupdateTimeTypeString); | var timingPref = prefBranch.getIntPref(autoupdateTimeTypeString); | function initializeSelection(){ var menuItemNode; var hasAdvertisedURL = false; var hasNextUpdate = true; var lastFetchMenuNode; var advertisedMenuNode; try { var isEnabled = prefs.GetBoolPref(autoupdateEnabledString); enabledCheckBox.checked = isEnabled; } catch(exception){ enabledCheckBox.checked = ... |
var dayCnt = prefs.GetCharPref(autoupdateDayCntString); | var dayCnt = prefBranch.getCharPref(autoupdateDayCntString); | function initializeSelection(){ var menuItemNode; var hasAdvertisedURL = false; var hasNextUpdate = true; var lastFetchMenuNode; var advertisedMenuNode; try { var isEnabled = prefs.GetBoolPref(autoupdateEnabledString); enabledCheckBox.checked = isEnabled; } catch(exception){ enabledCheckBox.checked = ... |
var freqCnt = prefs.GetCharPref(autoupdateFreqCntString); | var freqCnt = prefBranch.getCharPref(autoupdateFreqCntString); | function initializeSelection(){ var menuItemNode; var hasAdvertisedURL = false; var hasNextUpdate = true; var lastFetchMenuNode; var advertisedMenuNode; try { var isEnabled = prefs.GetBoolPref(autoupdateEnabledString); enabledCheckBox.checked = isEnabled; } catch(exception){ enabledCheckBox.checked = ... |
cnt = prefs.GetIntPref(autoupdateErrCntString); txt = prefs.GetCharPref(autoupdateErrDetailString); | cnt = prefBranch.getIntPref(autoupdateErrCntString); txt = prefBranch.getCharPref(autoupdateErrDetailString); | function initializeSelection(){ var menuItemNode; var hasAdvertisedURL = false; var hasNextUpdate = true; var lastFetchMenuNode; var advertisedMenuNode; try { var isEnabled = prefs.GetBoolPref(autoupdateEnabledString); enabledCheckBox.checked = isEnabled; } catch(exception){ enabledCheckBox.checked = ... |
lastFetchMenuNode = document.createElement("menuitem"); lastFetchMenuNode.setAttribute("label", bundle.GetStringFromName("lastFetchUrlLabel")); lastFetchMenuNode.id = "lastFetchURL"; menuList.firstChild.appendChild(lastFetchMenuNode); | var URLDisplayed = document.getElementById("urlName"); URLDisplayed.value = crl.lastFetchURL; | function initializeSelection(){ var menuItemNode; var hasAdvertisedURL = false; var hasNextUpdate = true; var lastFetchMenuNode; var advertisedMenuNode; try { var isEnabled = prefs.GetBoolPref(autoupdateEnabledString); enabledCheckBox.checked = isEnabled; } catch(exception){ enabledCheckBox.checked = ... |
if( (crl.advertisedURL != null) && (crl.advertisedURL !="") ) { hasAdvertisedURL = true; } | function initializeSelection(){ var menuItemNode; var hasAdvertisedURL = false; var hasNextUpdate = true; var lastFetchMenuNode; var advertisedMenuNode; try { var isEnabled = prefs.GetBoolPref(autoupdateEnabledString); enabledCheckBox.checked = isEnabled; } catch(exception){ enabledCheckBox.checked = ... | |
var urlPref = prefs.GetIntPref(autoupdateURLTypeString); if(urlPref != null){ if(urlPref == crl.AUTOUPDATE_USE_ADVERTISED_URL){ menuList.selectedItem = advertisedMenuNode; }else { menuList.selectedItem = lastFetchMenuNode; } }else { menuList.selectedItem = lastFetchMenuNode; } | function initializeSelection(){ var menuItemNode; var hasAdvertisedURL = false; var hasNextUpdate = true; var lastFetchMenuNode; var advertisedMenuNode; try { var isEnabled = prefs.GetBoolPref(autoupdateEnabledString); enabledCheckBox.checked = isEnabled; } catch(exception){ enabledCheckBox.checked = ... | |
menuList.selectedItem = lastFetchMenuNode; | function initializeSelection(){ var menuItemNode; var hasAdvertisedURL = false; var hasNextUpdate = true; var lastFetchMenuNode; var advertisedMenuNode; try { var isEnabled = prefs.GetBoolPref(autoupdateEnabledString); enabledCheckBox.checked = isEnabled; } catch(exception){ enabledCheckBox.checked = ... | |
searchTermObj.booleanAnd = getBooleanAnd(); | { searchTermObj.booleanAnd = getBooleanAnd(); if (index) { searchTermObj.searchattribute.value = gSearchTerms[index - 1].obj.searchattribute.value; } } | function initializeTermFromIndex(index){ var searchTermObj = gSearchTerms[index].obj; searchTermObj.searchScope = gSearchTerms[index].scope; // the search term will initialize the searchTerm element, including // .booleanAnd if (gSearchTerms[index].searchTerm) searchTermObj.searchTerm = gSearchTer... |
var rg = gDialog.actualSizeRadio.radioGroup; | function InitImage(){ // Set the controls to the image's attributes gDialog.srcInput.value = globalElement.getAttribute("src"); // Set "Relativize" checkbox according to current URL state SetRelativeCheckbox(); // Force loading of image from its source and show preview image LoadPreviewImage(); var hasAltText = ... | |
if (actualWidth && actualHeight) { if ((width == actualWidth && height == actualHeight) || !(width || height)) rg.selectedItem = gDialog.actualSizeRadio; } if (!gDialog.actualSizeRadio.selected) rg.selectedItem = gDialog.customSizeRadio; | SetSizeWidgets(width, height); | function InitImage(){ // Set the controls to the image's attributes gDialog.srcInput.value = globalElement.getAttribute("src"); // Set "Relativize" checkbox according to current URL state SetRelativeCheckbox(); // Force loading of image from its source and show preview image LoadPreviewImage(); var hasAltText = ... |
gDialog.widthInput.value = gConstrainWidth = width ? width : (actualWidth ? actualWidth : ""); gDialog.heightInput.value = gConstrainHeight = height ? height : (actualHeight ? actualHeight : ""); | gDialog.widthInput.value = gConstrainWidth = width ? width : (gActualWidth ? gActualWidth : ""); gDialog.heightInput.value = gConstrainHeight = height ? height : (gActualHeight ? gActualHeight : ""); | function InitImage(){ // Set the controls to the image's attributes gDialog.srcInput.value = globalElement.getAttribute("src"); // Set "Relativize" checkbox according to current URL state SetRelativeCheckbox(); // Force loading of image from its source and show preview image LoadPreviewImage(); var hasAltText = ... |
if ( desc != "" ) | if ( desc ) | initIntro: function(url) { var intro = this.dialogElement( "intro" ); var desc = this.mLauncher.MIMEInfo.Description; var modified; if ( desc != "" ) { // Use intro with descriptive text. modified = this.replaceInsert( this.getString( "intro.withDesc" ), 1, this... |
modified = this.replaceInsert( this.getString( "intro.withDesc" ), 1, this.mLauncher.MIMEInfo.Description ); | modified = this.replaceInsert( this.getString( "intro.withDesc" ), 1, desc ); | initIntro: function(url) { var intro = this.dialogElement( "intro" ); var desc = this.mLauncher.MIMEInfo.Description; var modified; if ( desc != "" ) { // Use intro with descriptive text. modified = this.replaceInsert( this.getString( "intro.withDesc" ), 1, this... |
this.mStampTime.jsDate = new Date(); | initItemBase: function () { this.mCreationDate = new CalDateTime(); this.mAlarmTime = new CalDateTime(); this.mLastModifiedTime = new CalDateTime(); this.mCreationDate.jsDate = new Date(); this.mLastModifiedTime.jsDate = new Date(); this.mProperties = Components.classes["@m... | |
this.mSpellChecker = Components.classes['@mozilla.org/spellchecker/myspell;1'].createInstance(Components.interfaces.mozISpellCheckingEngine); | this.mSpellChecker = Components.classes['@mozilla.org/spellchecker/myspell;1'].getService(Components.interfaces.mozISpellCheckingEngine); | initLanguageMenu: function () { this.mSpellChecker = Components.classes['@mozilla.org/spellchecker/myspell;1'].createInstance(Components.interfaces.mozISpellCheckingEngine); var o1 = {}; var o2 = {}; var languageMenuList = document.getElementById('LanguageMenulist'); // Get the list of dictionaries fr... |
function InitLengthUnitMenuPopup(elt, property, id) | function InitLengthUnitMenuPopup(elt, property, id, allowsPercentages) | function InitLengthUnitMenuPopup(elt, property, id){ var value = elt.parentNode.value; var re = /([+-]?\d*\.\d+|[+-]?\d+)\D*/ ; var found = value.match(re); var numPart = "0"; if (found && found.length != 0) numPart = RegExp.$1; var child = elt.firstChild, tmp; while (child && child.nodeName.toLowerCase() != ... |
var unitsArray = [ "px", "%", "pt", "cm", "in", "mm", "pc", "em", "ex" ]; var j, newitem; for (j=0; j<unitsArray.length; j++) { | var unitsArray = [ "%", "px", "pt", "cm", "in", "mm", "pc", "em", "ex" ]; var j, newitem, start = 0; if (!allowsPercentages) start = 1; for (j=start; j<unitsArray.length; j++) { | function InitLengthUnitMenuPopup(elt, property, id){ var value = elt.parentNode.value; var re = /([+-]?\d*\.\d+|[+-]?\d+)\D*/ ; var found = value.match(re); var numPart = "0"; if (found && found.length != 0) numPart = RegExp.$1; var child = elt.firstChild, tmp; while (child && child.nodeName.toLowerCase() != ... |
if (id) newitem.setAttribute("oncommand", "onPullDownChanged(" + "'" + property + "'" + ", " + "'" + itemValue + "'" + ", " + "'" + id + "'" +");"); else newitem.setAttribute("oncommand", "onPullDownChanged(" + "'" + property + "'" + ", " + "'" + itemValue + "'" + ", " + "null" +");"); | newitem.setAttribute("value", itemValue); | function InitLengthUnitMenuPopup(elt, property, id){ var value = elt.parentNode.value; var re = /([+-]?\d*\.\d+|[+-]?\d+)\D*/ ; var found = value.match(re); var numPart = "0"; if (found && found.length != 0) numPart = RegExp.$1; var child = elt.firstChild, tmp; while (child && child.nodeName.toLowerCase() != ... |
if (state.length > 0) | if (state) | function InitListMenu(){ var mixedObj = new Object(); var state = editorShell.GetListState(mixedObj); var IDSuffix = "noList"; if (state.length > 0) { if (state == "dl") state = editorShell.GetListItemState(mixedObj); if (state.length > 0) IDSuffix = state; } document.getElementById("menu_"+IDS... |
SetMenuItemCheckedFromState("menu_ul", "cmd_ul"); SetMenuItemCheckedFromState("menu_ol", "cmd_ol"); SetMenuItemCheckedFromState("menu_dt", "cmd_dt"); SetMenuItemCheckedFromState("menu_dd", "cmd_dd"); | var mixedObj = new Object(); var state = editorShell.GetListState(mixedObj); var IDSuffix = "noList"; if (state.length > 0) { if (state == "dl") state = editorShell.GetListItemState(mixedObj); if (state.length > 0) IDSuffix = state; } document.getElementById("menu_"+IDSuffix).setAttribute("checked", "true"); | function InitListMenu(){ SetMenuItemCheckedFromState("menu_ul", "cmd_ul"); SetMenuItemCheckedFromState("menu_ol", "cmd_ol"); SetMenuItemCheckedFromState("menu_dt", "cmd_dt"); SetMenuItemCheckedFromState("menu_dd", "cmd_dd");} |
if (!menuitem) | if (!menuItem) | function InitListMenu(){ var mixedObj = new Object(); var state = editorShell.GetListState(mixedObj); var IDSuffix = "noList"; if (state) { if (state == "dl") state = editorShell.GetListItemState(mixedObj); if (state) IDSuffix = state; } // Set enable state for the "None" menuitem goSetCommandEn... |
const xulNS = "http: if ( document.popupNode.namespaceURI == xulNS ) { this.shouldDisplay = false; return; } | initMenu : function ( popup ) { // Save menu. this.menu = popup; // Get contextual info. this.setTarget( document.popupNode ); this.isTextSelected = this.isTextSelection(); this.initPopupURL(); // Initialize (disable/remove) menu items. this.initItems(... | |
this.isContentSelected = this.isContentSelection(); | initMenu : function ( popup ) { // Save menu. this.menu = popup; // Get contextual info. this.setTarget( document.popupNode ); this.isTextSelected = this.isTextSelection(); // Initialize (disable/remove) menu items. this.initItems(); }, | |
this.setTarget( document.popupNode ); | this.setTarget( document.popupNode, document.popupRangeParent, document.popupRangeOffset ); | initMenu : function ( popup ) { // Save menu. this.menu = popup; const xulNS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; if ( document.popupNode.namespaceURI == xulNS ) { this.shouldDisplay = false; return; } // Get contextual info. ... |
function InitMessageLabel() | function InitMessageLabel(menuType) | function InitMessageLabel(){dump("initing message label\n"); document.commandDispatcher.updateCommands('create-menu-label'); /* this code should probably get the label strings and change the menu labels */} |
dump("initing message label\n"); | var prefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref); var prefBranch = prefs.getDefaultBranch(null); var color; for (var i = 0;i <= 5; i++) { try { var prefString = prefs.getComplexValue("mailnews.labels.description." + i, Components.interfaces.nsIPrefLocalizedString);... | function InitMessageLabel(){dump("initing message label\n"); document.commandDispatcher.updateCommands('create-menu-label'); /* this code should probably get the label strings and change the menu labels */} |
moveMenu.setAttribute("disabled", !aMessage); | { var msgFolder = GetLoadedMsgFolder(); var enableMenuItem = aMessage && msgFolder && msgFolder.canDeleteMessages; moveMenu.setAttribute("disabled", !enableMenuItem); } | function InitMessageMenu(){ var aMessage = GetFirstSelectedMessage(); var isNews = false; if(aMessage) { isNews = IsNewsMessage(aMessage); } //We show reply to Newsgroups only for news messages. var replyNewsgroupMenuItem = document.getElementById("replyNewsgroupMainMenu"); if(replyNewsgroupMenuItem) { ... |
{ var msgFolder = GetLoadedMsgFolder(); | function InitMessageMenu(){ var aMessage = GetFirstSelectedMessage(); var isNews = false; if(aMessage) { isNews = IsNewsMessage(aMessage); } //We show reply to Newsgroups only for news messages. var replyNewsgroupMenuItem = document.getElementById("replyNewsgroupMainMenu"); if(replyNewsgroupMenuItem) { ... | |
} | function InitMessageMenu(){ var aMessage = GetFirstSelectedMessage(); var isNews = false; if(aMessage) { isNews = IsNewsMessage(aMessage); } //We show reply to Newsgroups only for news messages. var replyNewsgroupMenuItem = document.getElementById("replyNewsgroupMainMenu"); if(replyNewsgroupMenuItem) { ... | |
"EVAL_-OUT": MSG_RSP_EVOUT, | "EVAL-OUT": MSG_RSP_EVOUT, | function initMessages(){ var path = "chrome://chatzilla/locale/chatzilla.properties"; client.messageManager = new MessageManager(); client.defaultBundle = client.messageManager.addBundle(path); client.viewName = client.unicodeName = MSG_CLIENT_NAME; client.responseCodeMap = { "HELLO... |
function InitMessageTags(menuType) | function InitMessageTags(menuPopup) | function InitMessageTags(menuType){ var tagService = Components.classes["@mozilla.org/messenger/tagservice;1"] .getService(Components.interfaces.nsIMsgTagService); var allTags = tagService.tagEnumerator; var allKeys = tagService.keyEnumerator; // remove any existing non-static entries...... |
var menuItemId = menuType + "-tagpopup"; var menupopupNode = document.getElementById(menuItemId); for (var i = menupopupNode.childNodes.length; i > 2; --i) menupopupNode.removeChild(menupopupNode.firstChild); var menuseparator = menupopupNode.firstChild; | var menuseparator = menuPopup.lastChild.previousSibling; for (var i = menuPopup.childNodes.length; i > 4; --i) menuPopup.removeChild(menuseparator.previousSibling); menuseparator.previousSibling.hidden = !allTags.hasMore(); var tagRemoveLabel = gMessengerBundle.getString("mailnews.tags.remove"); SetMessageTagLabel(... | function InitMessageTags(menuType){ var tagService = Components.classes["@mozilla.org/messenger/tagservice;1"] .getService(Components.interfaces.nsIMsgTagService); var allTags = tagService.tagEnumerator; var allKeys = tagService.keyEnumerator; // remove any existing non-static entries...... |
if (msgHdr.label) curKeys += " $label" + msgHdr.label; var index = 0; | function InitMessageTags(menuType){ var tagService = Components.classes["@mozilla.org/messenger/tagservice;1"] .getService(Components.interfaces.nsIMsgTagService); var allTags = tagService.tagEnumerator; var allKeys = tagService.keyEnumerator; // remove any existing non-static entries...... | |
newMenuItem.setAttribute("label", tag); | SetMessageTagLabel(newMenuItem, ++index, tag); | function InitMessageTags(menuType){ var tagService = Components.classes["@mozilla.org/messenger/tagservice;1"] .getService(Components.interfaces.nsIMsgTagService); var allTags = tagService.tagEnumerator; var allKeys = tagService.keyEnumerator; // remove any existing non-static entries...... |
newMenuItem.setAttribute('oncommand', 'ToggleMessageTagCmd(event.target)'); menupopupNode.insertBefore(newMenuItem, menuseparator); | newMenuItem.setAttribute('oncommand', 'ToggleMessageTagMenu(event.target);'); menuPopup.insertBefore(newMenuItem, menuseparator); | function InitMessageTags(menuType){ var tagService = Components.classes["@mozilla.org/messenger/tagservice;1"] .getService(Components.interfaces.nsIMsgTagService); var allTags = tagService.tagEnumerator; var allKeys = tagService.keyEnumerator; // remove any existing non-static entries...... |
var showBIDI = isBidiEnabled(); this.showItem( "context-sep-bidi", showBIDI); this.showItem( "context-bidi-text-direction-toggle", this.onTextInput && showBIDI); this.showItem( "context-bidi-page-direction-toggle", !this.onTextInput && showBIDI); | this.showItem( "context-sep-bidi", gBidiUI); this.showItem( "context-bidi-text-direction-toggle", this.onTextInput && gBidiUI); this.showItem( "context-bidi-page-direction-toggle", !this.onTextInput && gBidiUI); | initMiscItems : function () { // Use "Bookmark This Link" if on a link. this.showItem( "context-bookmarkpage", !( this.isTextSelected || this.onTextInput || this.onLink || this.onImage ) ); this.showItem( "context-bookmarklink", this.onLink && !this.onMailtoLink ); this.showItem( "contex... |
var uri = Components.classes['@mozilla.org/network/standard-url;1'].createInstance(Components.interfaces.nsIURI); uri.spec = this.imageURL; var shortenedUriHost = uri.host if (shortenedUriHost.length > 15) shortenedUriHost = shortenedUriHost.substr(0,15) + "..."; blockImage.label = gNavigatorBundle.getFormattedString ... | initMiscItems : function () { // Use "Bookmark This Link" if on a link. this.showItem( "context-bookmarkpage", !( this.isTextSelected || this.onTextInput || this.onLink ) ); this.showItem( "context-bookmarklink", this.onLink && !this.onMailtoLink ); this.showItem( "context-searchselect",... | |
this.showItem( "context-bookmarkpage", !( this.isTextSelected || this.onTextInput || this.onLink || this.onImage ) ); | this.showItem( "context-bookmarkpage", !( this.isContentSelected || this.onTextInput || this.onLink || this.onImage ) ); | initMiscItems : function () { // Use "Bookmark This Link" if on a link. this.showItem( "context-bookmarkpage", !( this.isTextSelected || this.onTextInput || this.onLink || this.onImage ) ); this.showItem( "context-bookmarklink", this.onLink && !this.onMailtoLink ); this.showItem( "contex... |
msgWindow.messagePaneController = new nsMessagePaneController(); | function InitMsgWindow(){ msgWindow.statusFeedback = statusFeedback; msgWindow.msgHeaderSink = messageHeaderSink; msgWindow.SetDOMWindow(window); mailSession.AddMsgWindow(msgWindow);} | |
messagepane.docShell.allowAuth = false; | function InitMsgWindow(){ msgWindow.messagePaneController = new nsMessagePaneController(); msgWindow.statusFeedback = statusFeedback; msgWindow.msgHeaderSink = messageHeaderSink; msgWindow.SetDOMWindow(window); mailSession.AddMsgWindow(msgWindow); var messagepane = document.getElementById("messagepane"); message... | |
/((^|\s)(?:[>]?[B8=:;(xX]\~?[-^v"]?[)|(PpDSs0oO\?\[\]\/\\]|[oO9][._][oO9])(\s|$))/, | /((^|\s)(?:[>]?[B8=:;(xX][~']?[-^v"]?(?:[)|(PpSs0oO\?\[\]\/\\]|D+)|>[-^v]?\)|[oO9][._][oO9])(\s|$))/, | function initMunger(){ client.linkRE = /(?:\s|\W|^)((?:(\w[\w-]+):[^\s]+|www(\.[^.\s]+){2,})[^>)\].,!?\'\"\u201d])(?:\s|\W|$)/; var munger = client.munger = new CMunger(); // Special internal munger! munger.addRule (".inline-buttons", /(\[\[.*?\]\])/, insertInlineButton, false); munger.addRule ("q... |
/(?:\s|\W|^)((?:(\w[\w-]+):[^\s]+|www(\.[^.\s]+){2,})[^\s>)\].,!?\'\"\u201d])(?:\s|\W|$)/; | /(?:\s|\W|^)((?:(\w[\w-]+):[^\s]+|www(\.[^.\s]+){2,})\b[\/=]?)(?:\s|\W|$)/; | function initMunger(){ client.linkRE = /(?:\s|\W|^)((?:(\w[\w-]+):[^\s]+|www(\.[^.\s]+){2,})[^\s>)\].,!?\'\"\u201d])(?:\s|\W|$)/; var munger = client.munger = new CMunger(); // Special internal munger! munger.addRule (".inline-buttons", /(\[\[.*?\]\])/, insertInlineButton, false); munger.addRule (... |
this.showItem( "context-back", !( this.isTextSelected || this.onLink || this.onImage || this.onTextInput ) ); this.showItem( "context-forward", !( this.isTextSelected || this.onLink || this.onImage || this.onTextInput ) ); | this.showItem( "context-back", !( this.isContentSelected || this.onLink || this.onImage || this.onTextInput ) ); this.showItem( "context-forward", !( this.isContentSelected || this.onLink || this.onImage || this.onTextInput ) ); | initNavigationItems : function () { // Back determined by canGoBack broadcaster. this.setItemAttrFromNode( "context-back", "disabled", "canGoBack" ); // Forward determined by canGoForward broadcaster. this.setItemAttrFromNode( "context-forward", "disabled", "canGoForward" ); ... |
this.showItem( "context-reload", !( this.isTextSelected || this.onLink || this.onImage || this.onTextInput ) ); | this.showItem( "context-reload", !( this.isContentSelected || this.onLink || this.onImage || this.onTextInput ) ); | initNavigationItems : function () { // Back determined by canGoBack broadcaster. this.setItemAttrFromNode( "context-back", "disabled", "canGoBack" ); // Forward determined by canGoForward broadcaster. this.setItemAttrFromNode( "context-forward", "disabled", "canGoForward" ); ... |
this.showItem( "context-stop", !( this.isTextSelected || this.onLink || this.onImage || this.onTextInput ) ); this.showItem( "context-sep-stop", !( this.isTextSelected || this.onLink || this.onTextInput || this.onImage ) ); | this.showItem( "context-stop", !( this.isContentSelected || this.onLink || this.onImage || this.onTextInput ) ); this.showItem( "context-sep-stop", !( this.isContentSelected || this.onLink || this.onTextInput || this.onImage ) ); | initNavigationItems : function () { // Back determined by canGoBack broadcaster. this.setItemAttrFromNode( "context-back", "disabled", "canGoBack" ); // Forward determined by canGoForward broadcaster. this.setItemAttrFromNode( "context-forward", "disabled", "canGoForward" ); ... |
var enumerator = console.windowWatcher.getWindowEnumerator(); while (enumerator.hasMoreElements()) { var win = enumerator.getNext(); console.windows.appendChild (new WindowRecord(win)); } | function initOutliners(){ const ATOM_CTRID = "@mozilla.org/atom-service;1"; const nsIAtomService = Components.interfaces.nsIAtomService; var atomsvc = Components.classes[ATOM_CTRID].getService(nsIAtomService); console.sourceView.atomCurrent = atomsvc.getAtom("current-line"); console.sourceV... | |
OnLoadLocationTree(); | function InitPanes(){ OnLoadFolderPane(); OnLoadThreadPane(); SetupCommandUpdateHandlers();} | |
if (state.length == 0 || state == "x") | if (!state || state == "x") | function InitParagraphMenu(){ var mixedObj = new Object(); var state = editorShell.GetParagraphState(mixedObj); var IDSuffix; // PROBLEM: When we get blockquote, it masks other styles contained by it // We need a separate method to get blockquote state // We use "x" as uninitialized paragraph state if (state.l... |
var IDSuffix = "normal"; | var IDSuffix; | function InitParagraphMenu(){ var mixedObj = new Object(); var state = editorShell.GetParagraphState(mixedObj); //dump("InitParagraphMenu: state="+state+"\n"); var IDSuffix = "normal"; // PROBLEM: When we get blockquote, it masks other styles contained by it // We need a separate method to get blockquote state ... |
if (state.length > 0) { if (state.charAt(0) == "h") { document.getElementById("menu_normal").setAttribute("checked", "true"); document.getElementById("menu_normal").removeAttribute("checked"); return; } | if (state.length == 0 || state == "x") IDSuffix = "bodyText" else | function InitParagraphMenu(){ var mixedObj = new Object(); var state = editorShell.GetParagraphState(mixedObj); //dump("InitParagraphMenu: state="+state+"\n"); var IDSuffix = "normal"; // PROBLEM: When we get blockquote, it masks other styles contained by it // We need a separate method to get blockquote state ... |
} | function InitParagraphMenu(){ var mixedObj = new Object(); var state = editorShell.GetParagraphState(mixedObj); //dump("InitParagraphMenu: state="+state+"\n"); var IDSuffix = "normal"; // PROBLEM: When we get blockquote, it masks other styles contained by it // We need a separate method to get blockquote state ... | |
item.setAttribute("disabled", item.isDisabled()); | if (item.isDisabled()) item.setAttribute("disabled", "true"); else item.removeAttribute("disabled"); | initPopup: function(aPopup) { var items = aPopup.getElementsByTagName("menuitem"); var js, fn, item; for (var i = 0; i < items.length; i++) { item = items[i]; fn = "isDisabled" in item ? item.isDisabled : null; if (!fn) { js = item.getAttribute("isDisabled"); if (js) { ... |
["rememberPrettyprint", false], | function initPrefs(){ var dir = getSpecialDirectory("ProfD"); dir.append("venkman-settings.js"); var defaultSettingsFile = dir.path; console.prefManager = new PrefManager("extensions.venkman."); console.prefs = console.prefManager.prefs; var prefs = [ ["enableChromeFilter", true], ... | |
console.addPref ("enableChromeFilter", false); console.addPref ("profile.template.html", "chrome: console.addPref ("profile.ranges", "1000000, 5000, 2500, 1000, 750, 500, 250, 100, 75, 50, " + "25, 10, 7.5, 5, 2.5, 1, 0.75, 0.5, 0.25"); console.addPref ("sourcetext.tab.width", 4); console.addPref ("input.history.max", ... | console.addPref ("maxStringLength", 100); console.addPref ("startupCount", 0); console.addPref ("enableChromeFilter", true); console.addPref ("tabWidth", 4); | function initPrefs(){ console.prefs = new Object(); console.prefs.prefService = Components.classes[PREF_CTRID].getService(nsIPrefService); console.prefs.prefBranch = console.prefs.prefService.getBranch("extensions.venkman."); console.prefs.prefNames = new Array(); // console.addPref... |
var list = console.prefs.prefBranch.getChildList("extensions.venkman.", {}); | console.addPref ("prettyprint", false); console.addPref ("guessContext", 5); console.addPref ("guessPattern", "(\\w+)\\s*[:=]\\s*$"); console.addPref ("permitStartupHit", true); console.addPref ("statusDuration", 5 * 1000); console.addPref ("menubarInFloaters", navigator.platform.indexOf ("Mac") != -1); var list = cons... | function initPrefs(){ console.prefs = new Object(); console.prefs.prefService = Components.classes[PREF_CTRID].getService(nsIPrefService); console.prefs.prefBranch = console.prefs.prefService.getBranch("extensions.venkman."); console.prefs.prefNames = new Array(); // console.addPref... |
dd ("pref list " + list[p]); | function initPrefs(){ console.prefs = new Object(); console.prefs.prefService = Components.classes[PREF_CTRID].getService(nsIPrefService); console.prefs.prefBranch = console.prefs.prefService.getBranch("extensions.venkman."); console.prefs.prefNames = new Array(); // console.addPref... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.