rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
borderText = TrimString(dialog.borderInput.value); | var borderText = TrimString(dialog.borderInput.value); | function ValidateData(){ rows = ValidateNumberString(dialog.rowsInput.value, 1, maxRows); if (rows == "") { // Set focus to the offending control dialog.rowsInput.focus(); return false; } columns = ValidateNumberString(dialog.columnsInput.value, 1, maxColumns); if (columns == "") { // Set focus to th... |
widthText = TrimString(dialog.widthInput.value); | var widthText = TrimString(dialog.widthInput.value); | function ValidateData(){ rows = ValidateNumberString(dialog.rowsInput.value, 1, maxRows); if (rows == "") { // Set focus to the offending control dialog.rowsInput.focus(); return false; } columns = ValidateNumberString(dialog.columnsInput.value, 1, maxColumns); if (columns == "") { // Set focus to th... |
heightText = TrimString(dialog.heightInput.value); | var heightText = TrimString(dialog.heightInput.value); | function ValidateData(){ rows = ValidateNumberString(dialog.rowsInput.value, 1, maxRows); if (rows == "") { // Set focus to the offending control dialog.rowsInput.focus(); return false; } columns = ValidateNumberString(dialog.columnsInput.value, 1, maxColumns); if (columns == "") { // Set focus to th... |
align = "center"; | align = ""; | function ValidateData(){ // Height is always pixels height = ValidateNumber(dialog.heightInput, null, 1, maxPixels, globalElement, "size", false); if (gValidationError) return false; width = ValidateNumber(dialog.widthInput, dialog.pixelOrPercentMenulist, 1, maxPixels, ... |
globalElement.setAttribute("align", align); | if (align) globalElement.setAttribute("align", align); else globalElement.removeAttribute("align"); | function ValidateData(){ // Height is always pixels height = ValidateNumber(dialog.heightInput, null, 1, maxPixels, globalElement, "size", false); if (gValidationError) return false; width = ValidateNumber(dialog.widthInput, dialog.pixelOrPercentMenulist, 1, maxPixels, ... |
width = dialog.widthInput.value; height = dialog.heightInput.value; | function ValidateData(){ if ( !IsValidImage(dialog.srcInput.value )) { ShowInputErrorMessage(GetString("MissingImageError")); return false; } //TODO: WE NEED TO DO SOME URL VALIDATION HERE, E.G.: // We must convert to "file:///" or "http://" format else image doesn't load! var src = dialog.srcInput.value.tri... | |
if ( dialog.isCustomSize ) | if ( SeeMore && dialog.originalsizeRadio.checked ) { } else if ( (SeeMore && dialog.customsizeRadio.checked) || dialog.isCustomSize ) | function ValidateData(){ if ( !IsValidImage(dialog.srcInput.value )) { ShowInputErrorMessage(GetString("MissingImageError")); return false; } //TODO: WE NEED TO DO SOME URL VALIDATION HERE, E.G.: // We must convert to "file:///" or "http://" format else image doesn't load! var src = dialog.srcInput.value.tri... |
width = ValidateNumberString(width, 1, maxLimitWidth); if (width == "") { | width = ValidateNumberString(dialog.widthInput.value, 1, maxLimitWidth); if (width == "") { | function ValidateData(){ if ( !IsValidImage(dialog.srcInput.value )) { ShowInputErrorMessage(GetString("MissingImageError")); return false; } //TODO: WE NEED TO DO SOME URL VALIDATION HERE, E.G.: // We must convert to "file:///" or "http://" format else image doesn't load! var src = dialog.srcInput.value.tri... |
height = ValidateNumberString(height, 1, maxLimitHeight); if (height == "") { | height = ValidateNumberString(dialog.heightInput.value, 1, maxLimitHeight); if (height == "") { | function ValidateData(){ if ( !IsValidImage(dialog.srcInput.value )) { ShowInputErrorMessage(GetString("MissingImageError")); return false; } //TODO: WE NEED TO DO SOME URL VALIDATION HERE, E.G.: // We must convert to "file:///" or "http://" format else image doesn't load! var src = dialog.srcInput.value.tri... |
mapName = globalMap.getAttribute("name"); dump("mapName = "+mapName+"\n"); if (mapName != ""){ globalElement.setAttribute("usemap", ("#"+mapName)); if (globalElement.getAttribute("border") == "") globalElement.setAttribute("border", 0); } | function ValidateData(){ if ( !IsValidImage(dialog.srcInput.value )) { ShowInputErrorMessage(GetString("MissingImageError")); return false; } //TODO: WE NEED TO DO SOME URL VALIDATION HERE, E.G.: // We must convert to "file:///" or "http://" format else image doesn't load! var src = dialog.srcInput.value.tri... | |
var alertText = Bundle.GetStringFromName("enterValidEmail"); | alertText = Bundle.GetStringFromName("enterValidEmail"); | function validateEmail() { var emailElement = document.getElementById("email"); var email = emailElement.value; var emailArray = email.split('@'); if (currentDomain) { // check if user entered and @ sign even though we have a domain if (emailArray.length >= 2) { email = emailArray[0]; emailElement... |
if (numString) | if (numString || mustHaveValue) | function ValidateNumber(inputWidget, listWidget, minVal, maxVal, element, attName, mustHaveValue, mustShowMoreSection){ if (!inputWidget) { gValidationError = true; return ""; } // Global error return value gValidationError = false; var maxLimit = maxVal; var isPercent = false; var numString = TrimString(... |
newRowCount = Number(ValidateNumber(gDialog.TableRowsInput, null, 1, maxRows, null, null, true)); | newRowCount = Number(ValidateNumber(gDialog.TableRowsInput, null, 1, maxRows, null, true, true)); | function ValidateTableData(){ validatePanel = TablePanel; newRowCount = Number(ValidateNumber(gDialog.TableRowsInput, null, 1, maxRows, null, null, true)); if (gValidationError) return false; newColCount = Number(ValidateNumber(gDialog.TableColumnsInput, null, 1, maxColumns, null, null, true)); if (gValidationErro... |
newColCount = Number(ValidateNumber(gDialog.TableColumnsInput, null, 1, maxColumns, null, null, true)); | newColCount = Number(ValidateNumber(gDialog.TableColumnsInput, null, 1, maxColumns, null, true, true)); | function ValidateTableData(){ validatePanel = TablePanel; newRowCount = Number(ValidateNumber(gDialog.TableRowsInput, null, 1, maxRows, null, null, true)); if (gValidationError) return false; newColCount = Number(ValidateNumber(gDialog.TableColumnsInput, null, 1, maxColumns, null, null, true)); if (gValidationErro... |
showMailIntegrationDialog(); | setTimeout("showMailIntegrationDialog();",0); | function verifyAccounts(wizardcallback) {//check to see if the function is called with the callback and if so set the global variable returnmycall to true if(wizardcallback) returnmycall = true; var openWizard = false; var prefillAccount; var state=true; var ret = true; try { var am = Components.cl... |
return ret; | showMailIntegrationDialog(); return ret; | function verifyAccounts(wizardcallback) {//check to see if the function is called with the callback and if so set the global variable returnmycall to true if(wizardcallback) returnmycall = true; var openWizard = false; var prefillAccount; var state=true; var ret = true; try { var am = Components.cl... |
var mail = Components.classes[mailSessionProgID].getService(Components.interfaces.nsIMsgMailSession); | var am = Components.classes[accountManagerProgID].getService(Components.interfaces.nsIMsgAccountManager); | function verifyAccounts() { try { var mail = Components.classes[mailSessionProgID].getService(Components.interfaces.nsIMsgMailSession); var am = mail.accountManager; var accounts = am.accounts; // as long as we have some accounts, we're fine. if (accounts.Count() > 0) return; ... |
var am = mail.accountManager; | function verifyAccounts() { try { var mail = Components.classes[mailSessionProgID].getService(Components.interfaces.nsIMsgMailSession); var am = mail.accountManager; var accounts = am.accounts; // as long as we have some accounts, we're fine. if (accounts.Count() > 0) return; ... | |
messengerMigrator = Components.classes[messengerMigratorContractID].getService(Components.interfaces.nsIMessengerMigrator); | var messengerMigrator = Components.classes[messengerMigratorContractID].getService(Components.interfaces.nsIMessengerMigrator); | function verifyAccounts(wizardcallback) {//check to see if the function is called with the callback and if so set the global variable returnmycall to true if(wizardcallback) returnmycall = true; var openWizard = false; var prefillAccount; var state=true; var ret = true; try { var am = Components.cl... |
if (accounts.Count() > 0) return; | var accountCount = accounts.Count(); if (accountCount > 0) { prefillAccount = getFirstInvalidAccount(accounts); dump("prefillAccount = " + prefillAccount + "\n"); } else { try { messengerMigrator = Components.classes[messengerMigratorProgID].getService(Components.interfaces.nsIMessengerMigrator); dump("attempt to Upgra... | function verifyAccounts() { try { var am = Components.classes[accountManagerProgID].getService(Components.interfaces.nsIMsgAccountManager); var accounts = am.accounts; // as long as we have some accounts, we're fine. if (accounts.Count() > 0) return; try { messengerMigrator = Com... |
try { messengerMigrator = Components.classes[messengerMigratorProgID].getService(Components.interfaces.nsIMessengerMigrator); dump("attempt to UpgradePrefs. If that fails, open the account wizard.\n"); messengerMigrator.UpgradePrefs(); refreshFolderPane(); | if (openWizard || prefillAccount) { MsgAccountWizard(prefillAccount); | function verifyAccounts() { try { var am = Components.classes[accountManagerProgID].getService(Components.interfaces.nsIMsgAccountManager); var accounts = am.accounts; // as long as we have some accounts, we're fine. if (accounts.Count() > 0) return; try { messengerMigrator = Com... |
catch (ex) { MsgAccountWizard(); } | function verifyAccounts() { try { var am = Components.classes[accountManagerProgID].getService(Components.interfaces.nsIMsgAccountManager); var accounts = am.accounts; // as long as we have some accounts, we're fine. if (accounts.Count() > 0) return; try { messengerMigrator = Com... | |
dump("Looking for Local Folders.....\n"); | _dd("Looking for Local Folders.....\n"); | function verifyLocalFoldersAccount(account) { dump("Looking for Local Folders.....\n"); var localMailServer = null; try { localMailServer = am.localFoldersServer; } catch (ex) { // dump("exception in findserver: " + ex + "\n"); localMailServer = null; } try { var server = account.incomingServer; ... |
dump("error! we should have found the local mail server after we created it.\n"); | _dd("error! we should have found the local mail server after we created it.\n"); | function verifyLocalFoldersAccount(account) { dump("Looking for Local Folders.....\n"); var localMailServer = null; try { localMailServer = am.localFoldersServer; } catch (ex) { // dump("exception in findserver: " + ex + "\n"); localMailServer = null; } try { var server = account.incomingServer; ... |
dump("error! we should have a local mail server at this point\n"); | _dd("error! we should have a local mail server at this point\n"); | function verifyLocalFoldersAccount(account) { dump("Looking for Local Folders.....\n"); var localMailServer = null; try { localMailServer = am.localFoldersServer; } catch (ex) { // dump("exception in findserver: " + ex + "\n"); localMailServer = null; } try { var server = account.incomingServer; ... |
dump("Error creating local mail: " + ex + "\n"); | _dd("Error creating local mail: " + ex + "\n"); | function verifyLocalFoldersAccount(account) { dump("Looking for Local Folders.....\n"); var localMailServer = null; try { localMailServer = am.localFoldersServer; } catch (ex) { // dump("exception in findserver: " + ex + "\n"); localMailServer = null; } try { var server = account.incomingServer; ... |
var selectSchemaVersion = createStatement (this.mDB, "SELECT version FROM cal_calendar_schema_version LIMIT 1"); | selectSchemaVersion = createStatement (this.mDB, "SELECT version FROM cal_calendar_schema_version LIMIT 1"); | versionCheck: function () { var version = -1; try { var selectSchemaVersion = createStatement (this.mDB, "SELECT version FROM cal_calendar_schema_version LIMIT 1"); if (selectSchemaVersion.step()) { version = selectSchemaVersion.row.version; } ... |
selectSchemaVersion.reset(); | versionCheck: function () { var version = -1; try { var selectSchemaVersion = createStatement (this.mDB, "SELECT version FROM cal_calendar_schema_version LIMIT 1"); if (selectSchemaVersion.step()) { version = selectSchemaVersion.row.version; } ... | |
selectSchemaVersion.reset(); | versionCheck: function () { var version = -1; try { var selectSchemaVersion = createStatement (this.mDB, "SELECT version FROM cal_calendar_schema_version LIMIT 1"); if (selectSchemaVersion.step()) { version = selectSchemaVersion.row.version; } ... | |
var threadColumn = document.getElementById('ThreadColumnHeader'); var thread_menuitem=document.getElementById('menu_showThreads'); if (threadColumn && thread_menuitem){ thread_menuitem.setAttribute('checked',threadColumn.getAttribute('currentView')=='threaded'); } | function view_init(){ if (!gMessengerBundle) gMessengerBundle = document.getElementById("bundle_messenger"); var message_menuitem=document.getElementById('menu_showMessage'); if (message_menuitem) { var message_menuitem_hidden = message_menuitem.getAttribute("hidden"); if(message_menuitem_hidden != "... | |
urlSecurityCheck( this.bgImageURL, document ) | urlSecurityCheck( this.bgImageURL, this.docURL ); | viewBGImage : function (e) { urlSecurityCheck( this.bgImageURL, document ) openUILink( this.bgImageURL, e ); }, |
window.openDialog('chrome: 'chrome,width=500,height=400,resizable=1'); | function viewCert(){} | |
gPrefs.setIntPref("mailnews.view.last", parseInt(val)); | gPrefBranch.setIntPref("mailnews.view.last", parseInt(val)); | function viewChange(aMenuList){ var val = aMenuList.value; if (val == kCustomItemValue) { // restore to the previous view value, in case they cancel aMenuList.value = gCurrentViewValue; LaunchCustomizeDialog(); return; } // bail out early if the user picked the same view if (val == gCurrentViewValue) ... |
if (val == "7") { | if (val == kCustomItemValue) { | function viewChange(aMenuList){ var val = aMenuList.value; if (val == "7") { // restore to the previous view value, in case they cancel aMenuList.value = gCurrentViewValue; LaunchCustomizeDialog(); return; } // bail out early if the user picked the same view if (val == gCurrentViewValue) return; g... |
case "2": case "3": case "4": case "5": case "6": ViewLabel(parseInt(val) - 1); | case "2": case "3": case "4": case "5": case "6": ViewLabel(parseInt(val) - kLabelOffset); | function viewChange(aMenuList){ var val = aMenuList.value; if (val == "7") { // restore to the previous view value, in case they cancel aMenuList.value = gCurrentViewValue; LaunchCustomizeDialog(); return; } // bail out early if the user picked the same view if (val == gCurrentViewValue) return; g... |
LoadCustomMailView(parseInt(val) - gLastDefaultViewIndex); | LoadCustomMailView(parseInt(val) - kLastDefaultViewIndex); | function viewChange(aMenuList){ var val = aMenuList.value; if (val == "7") { // restore to the previous view value, in case they cancel aMenuList.value = gCurrentViewValue; LaunchCustomizeDialog(); return; } // bail out early if the user picked the same view if (val == gCurrentViewValue) return; g... |
window.openDialog("chrome: | window.openDialog("chrome: "modal=yes,chrome,resizable=yes", "cookieManager"); | function viewCookies() { window.openDialog("chrome://communicator/content/wallet/CookieViewer.xul","_blank","modal=yes,chrome,resizable=yes", 0);} |
function ViewCookieSelected(node) | function ViewCookieSelected( e ) | function ViewCookieSelected(node) { var cookietree = document.getElementById("cookietree"); if(cookietree.nodeName != "tree") return false; if(cookietree.selectedItems.length > 1) return false; cookie = node; if(cookie.getAttribute("id").indexOf("tree_") == -1) return false; var idx = parseInt(cookie.get... |
return false; cookie = node; | selItemsMax = true; if( cookietree.selectedItems.length ) document.getElementById("removeCookies").removeAttribute("disabled","true"); if( e.type == "keypress" ) cookie = cookietree.selectedItems[0]; if( e.type == "click" ) cookie = e.target.parentNode.parentNode; | function ViewCookieSelected(node) { var cookietree = document.getElementById("cookietree"); if(cookietree.nodeName != "tree") return false; if(cookietree.selectedItems.length > 1) return false; cookie = node; if(cookie.getAttribute("id").indexOf("tree_") == -1) return false; var idx = parseInt(cookie.get... |
if(i == 3) { | if( !selItemsMax && i == 3) { | function ViewCookieSelected(node) { var cookietree = document.getElementById("cookietree"); if(cookietree.nodeName != "tree") return false; if(cookietree.selectedItems.length > 1) return false; cookie = node; if(cookie.getAttribute("id").indexOf("tree_") == -1) return false; var idx = parseInt(cookie.get... |
field.value = content; | field.value = ( !selItemsMax ) ? content : ""; | function ViewCookieSelected(node) { var cookietree = document.getElementById("cookietree"); if(cookietree.nodeName != "tree") return false; if(cookietree.selectedItems.length > 1) return false; cookie = node; if(cookie.getAttribute("id").indexOf("tree_") == -1) return false; var idx = parseInt(cookie.get... |
function ViewCookieSelected() { index = 8*(top.frames[list_frame].document.fSelectCookie.selname.selectedIndex) + 1; top.frames[prop_frame].document.open(); top.frames[prop_frame].document.write( "<nobr><b>" + name + "</b> " + cookieList[index+1] + "</nobr><br/>" + "<nobr><b>" + value + "</b> " + cookieList[index+2] + ... | function ViewCookieSelected(node) { var cookietree = document.getElementById("cookietree"); if(cookietree.nodeName != "tree") return false; if(cookietree.selectedItems.length > 1) return false; cookie = node; if(cookie.getAttribute("id").indexOf("tree_") == -1) return false; var idx = parseInt(cookie.getAttribute("id")... | function ViewCookieSelected() { index = 8*(top.frames[list_frame].document.fSelectCookie.selname.selectedIndex) + 1; top.frames[prop_frame].document.open(); top.frames[prop_frame].document.write( "<nobr><b>" + name + "</b> " + cookieList[index+1] + "</nobr><br/>" + "<nobr><b>" + value +... |
var field = document.getElementById(rows[i]); var content = props[i]; field.value = content; if(rows[i] == "ifl_expires") break; } } | function ViewCookieSelected() { index = 8*(top.frames[list_frame].document.fSelectCookie.selname.selectedIndex) + 1; top.frames[prop_frame].document.open(); top.frames[prop_frame].document.write( "<nobr><b>" + name + "</b> " + cookieList[index+1] + "</nobr><br/>" + "<nobr><b>" + value +... | |
ViewEntries(); | function ViewEntriesFromXul(){ ViewEntries(); ViewEntries();} | |
BrowserPageInfo(this.target.ownerDocument); | viewFrameInfo : function () { // XXX not implemented }, | |
urlSecurityCheck( this.imageURL, document ) | urlSecurityCheck( this.imageURL, this.docURL ); | viewImage : function (e) { urlSecurityCheck( this.imageURL, document ) openUILink( this.imageURL, e ); }, |
"modal=yes,chrome,resizable=yes", 2 ); | "modal=yes,chrome,resizable=yes", "imageManager" ); | function viewImages() { window.openDialog("chrome://communicator/content/wallet/CookieViewer.xul","_blank", "modal=yes,chrome,resizable=yes", 2 );} |
BrowserPageInfo(); | viewInfo : function () { // XXX not implemented }, | |
this.dirtyContainers = new Object(); | function ViewManager(commandManager, mainWindow){ this.commandManager = commandManager; this.floaterSequence = 0; this.containerSequence = 0; this.windows = new Object(); this.mainWindow = mainWindow; this.windows[VMGR_MAINWINDOW] = mainWindow; this.views = new Object();} | |
return true; | function ViewPageSource(messages){ var url; var uri; var mailSessionContractID = "@mozilla.org/messenger/services/session;1"; var numMessages = messages.length; if (numMessages == 0) { dump("MsgViewPageSource(): No messages selected.\n"); return false; } // First, get the mail session var mailSession = Component... | |
if (context == "selection") | if (aContext == "selection") | viewPartialSource: function(aContext) { var focusedWindow = document.commandDispatcher.focusedWindow; if (focusedWindow == window) focusedWindow = content; var docCharset = null; if (focusedWindow) docCharset = "charset=" + focusedWindow.document.characterSet; // "View Selection Source" and o... |
else if (context == "mathml") | else if (aContext == "mathml") | viewPartialSource: function(aContext) { var focusedWindow = document.commandDispatcher.focusedWindow; if (focusedWindow == window) focusedWindow = content; var docCharset = null; if (focusedWindow) docCharset = "charset=" + focusedWindow.document.characterSet; // "View Selection Source" and o... |
"", "8"); | "", null); | viewPasswords: function (aCategory) { document.documentElement.openWindow("Toolkit:PasswordManager", "chrome://passwordmgr/content/passwordManager.xul", "", "8"); }, |
for (var i=0; i<userDefinedItems.length; i++) | for (var i=0; userDefinedItems.item(i); ) | function viewRefreshCustomMailViews(aCurrentViewValue){ // for each mail view in the msg view list, add a menu item var mailViewList = Components.classes["@mozilla.org/messenger/mailviewlist;1"].getService(Components.interfaces.nsIMsgMailViewList); // XXX TODO, fix code in msgViewPickerOverlay.js, to be like this. ... |
menupopupNode.removeChild(userDefinedItems[i]); | if (!menupopupNode.removeChild(userDefinedItems[i])) ++i; | function viewRefreshCustomMailViews(aCurrentViewValue){ // for each mail view in the msg view list, add a menu item var mailViewList = Components.classes["@mozilla.org/messenger/mailviewlist;1"].getService(Components.interfaces.nsIMsgMailViewList); // XXX TODO, fix code in msgViewPickerOverlay.js, to be like this. ... |
function ViewSettings() | function ViewSettings(selectPage) | function ViewSettings(){ window.parent.MsgAccountManager();} |
window.parent.MsgAccountManager(); | window.parent.MsgAccountManager(selectPage); | function ViewSettings(){ window.parent.MsgAccountManager();} |
ViewSynonyms(); | function ViewSynonymsFromXul(){ ViewSynonyms(); ViewSynonyms();} | |
type = "horizontal"; | type = "vertical"; | function vmgr_createcontainer (parsedLocation, containerId, type){ if (!type) type = "horizontal"; var parentContainer = this.getLocation(parsedLocation); if (!ASSERT(parentContainer, "location is hidden or does not exist")) return null; var document = parentContainer.ownerDocument; ... |
this.groutContainer(parentContainer, true); | this.groutContainer(parentContainer); | function vmgr_createcontainer (parsedLocation, containerId, type){ if (!type) type = "horizontal"; var parentContainer = this.getLocation(parsedLocation); if (!ASSERT(parentContainer, "location is hidden or does not exist")) return null; var document = parentContainer.ownerDocument; ... |
this.endMultiMove(); | function vmgr_destroywindows (){ for (var w in this.windows) { if (w == VMGR_MAINWINDOW) this.destroyWindow(w); else this.windows[w].close(); }} | |
var tab = this.findViewTab(target); if (tab) tab.removeAttribute("dragover"); | function vmgr_dragexit (event, session){ var target = this.findFloatingView(event.originalTarget); if (target) { target.removeAttribute ("dragover"); target.proxyIcon.removeAttribute ("dragover"); }} | |
target.setAttribute ("dragover", direction); target.proxyIcon.setAttribute ("dragover", direction); | function vmgr_dragover (event, flavor, session){ session.canDrop = false; if (flavor.contentType != "text/x-vloc") return false; var target = this.findFloatingView(event.originalTarget); if (!target) return false; /* COVER YOUR EYES!! */ var data = nsTransferable.get (this.getSupport... | |
if (target.parentNode.getAttribute("type") == "tab" && direction.indexOf("tab") == -1) { target.parentNode.setAttribute ("dragover", direction); } else { target.setAttribute ("dragover", direction); target.proxyIcon.setAttribute ("dragover", direction); var tab = this.findViewTab(target); if (tab) tab.setAttribute("... | function vmgr_dragover (event, flavor, session){ session.canDrop = false; if (flavor.contentType != "text/x-vloc") return false; var target = this.findFloatingView(event.originalTarget); if (!target) return false; /* COVER YOUR EYES!! */ var data = nsTransferable.get (this.getSupport... | |
} | function vmgr_findview (element){ while (element && element.localName != "floatingview") element = element.parentNode; return element;} | |
if ((event.target.localName == "image" && event.target.getAttribute("class") == "view-title-pop")) { return "new-tab"; } if (eventY > viewH) { var tab = this.findViewTab(floatingView); if (!ASSERT(tab, "view has no tab")) return "new-tab"; if (event.screenX > tab.boxObject.screenX + (tab.boxObject.width / 2)) retur... | function vmgr_getdropdir (event, floatingView){ var eventX = event.screenX - floatingView.boxObject.screenX; var eventY = event.screenY - floatingView.boxObject.screenY; var viewW = floatingView.boxObject.width; var viewH = floatingView.boxObject.height; var rv; var dir; var m = viewH / viewW; i... | |
function vmgr_groutcontainer (container, noclose) | function vmgr_groutcontainer (container) | function vmgr_groutcontainer (container, noclose){ var type = container.getAttribute ("type"); if (!ASSERT(type in this.groutFunctions, "unknown container type ``" + type + "''")) { return; } this.groutFunctions[type](this, container, noclose);} |
this.groutFunctions[type](this, container, noclose); | if (!container.hasAttribute("grout-in-progress")) { container.setAttribute("grout-in-progress", "true"); this.groutFunctions[type](this, container); var location = this.computeLocation(container); if (location in this.dirtyContainers) delete this.dirtyContainers[location]; container.removeAttribute("grout-in-progres... | function vmgr_groutcontainer (container, noclose){ var type = container.getAttribute ("type"); if (!ASSERT(type in this.groutFunctions, "unknown container type ``" + type + "''")) { return; } this.groutFunctions[type](this, container, noclose);} |
if (!ASSERT("currentContent" in targetView, "view is not visible " + viewId)) | if (!ASSERT("currentContent" in targetView, "view is not visible " + viewId)) { | function vmgr_ondrop (event, transferData, session){ var viewManager = this; function callProcessDrop () { viewManager.processDrop (sourceView, targetView, direction); }; var floatingView = this.findFloatingView (event.originalTarget); var viewId = floatingView.getAttribute ("id"); v... |
} | function vmgr_ondrop (event, transferData, session){ var viewManager = this; function callProcessDrop () { viewManager.processDrop (sourceView, targetView, direction); }; var floatingView = this.findFloatingView (event.originalTarget); var viewId = floatingView.getAttribute ("id"); v... | |
function vmgr_remake (ary, startIndex) | function vmgr_remake (ary, cb, startIndex, recalled) | function vmgr_remake (ary, startIndex){ var viewManager = this; function onWindowLoaded (window) { viewManager.reconstituteVURLs (ary, i); }; if (!startIndex) startIndex = 0; for (var i = startIndex; i < ary.length; ++i) { var parsedLocation = this.parseLocation (ary[i]... |
viewManager.reconstituteVURLs (ary, i); | viewManager.reconstituteVURLs (ary, cb, i, true); | function vmgr_remake (ary, startIndex){ var viewManager = this; function onWindowLoaded (window) { viewManager.reconstituteVURLs (ary, i); }; if (!startIndex) startIndex = 0; for (var i = startIndex; i < ary.length; ++i) { var parsedLocation = this.parseLocation (ary[i]... |
parsedLocation.type = "horizontal"; | parsedLocation.type = "vertical"; | function vmgr_remake (ary, startIndex){ var viewManager = this; function onWindowLoaded (window) { viewManager.reconstituteVURLs (ary, i); }; if (!startIndex) startIndex = 0; for (var i = startIndex; i < ary.length; ++i) { var parsedLocation = this.parseLocation (ary[i]... |
if (typeof cb == "function") cb(); this.endMultiMove(); | function vmgr_remake (ary, startIndex){ var viewManager = this; function onWindowLoaded (window) { viewManager.reconstituteVURLs (ary, i); }; if (!startIndex) startIndex = 0; for (var i = startIndex; i < ary.length; ++i) { var parsedLocation = this.parseLocation (ary[i]... | |
console.viewManager.onTitleDragStart (event, transferData, action); | console.viewManager.onDragStart (event, transferData, action); | function vpxy_dragstart (event, transferData, action){ console.viewManager.onTitleDragStart (event, transferData, action); return true;} |
propMap[p] = { name: p, value: value, flags: PROP_ENUMERATE | PROP_HINTED }; | propMap[":" + p] = { name: p, value: value, flags: PROP_ENUMERATE | PROP_HINTED }; | function vr_listprops (){ //dd ("listProperties {"); var i; var jsval = this.value.getWrappedValue(); var propMap = new Object(); /* get the enumerable properties */ for (var p in jsval) { var value; try { value = console.jsds.wrapValue(jsval[p]); if (... |
propMap[p] = null; | propMap[":" + p] = null; | function vr_listprops (){ //dd ("listProperties {"); var i; var jsval = this.value.getWrappedValue(); var propMap = new Object(); /* get the enumerable properties */ for (var p in jsval) { var value; try { value = console.jsds.wrapValue(jsval[p]); if (... |
propMap[p] = { name: p, value: console.jsds.wrapValue(ex), flags: PROP_EXCEPTION }; | propMap[":" + p] = { name: p, value: console.jsds.wrapValue(ex), flags: PROP_EXCEPTION }; | function vr_listprops (){ //dd ("listProperties {"); var i; var jsval = this.value.getWrappedValue(); var propMap = new Object(); /* get the enumerable properties */ for (var p in jsval) { var value; try { value = console.jsds.wrapValue(jsval[p]); if (... |
if (!ASSERT(prop, "prop[" + i + "] is null")) continue; | function vr_listprops (){ //dd ("listProperties {"); var i; var jsval = this.value.getWrappedValue(); var propMap = new Object(); /* get the enumerable properties */ for (var p in jsval) { var value; try { value = console.jsds.wrapValue(jsval[p]); if (... | |
if (!(name in propMap)) | if (!((":" + name) in propMap)) | function vr_listprops (){ //dd ("listProperties {"); var i; var jsval = this.value.getWrappedValue(); var propMap = new Object(); /* get the enumerable properties */ for (var p in jsval) { var value; try { value = console.jsds.wrapValue(jsval[p]); if (... |
propMap[name] = { name: name, value: prop.value, flags: prop.flags }; | propMap[":" + name] = { name: name, value: prop.value, flags: prop.flags }; | function vr_listprops (){ //dd ("listProperties {"); var i; var jsval = this.value.getWrappedValue(); var propMap = new Object(); /* get the enumerable properties */ for (var p in jsval) { var value; try { value = console.jsds.wrapValue(jsval[p]); if (... |
propMap[name] = null; | propMap[":" + name] = null; | function vr_listprops (){ //dd ("listProperties {"); var i; var jsval = this.value.getWrappedValue(); var propMap = new Object(); /* get the enumerable properties */ for (var p in jsval) { var value; try { value = console.jsds.wrapValue(jsval[p]); if (... |
if (propMap[name]) propMap[name].flags = prop.flags; | if (propMap[":" + name]) propMap[":" + name].flags = prop.flags; | function vr_listprops (){ //dd ("listProperties {"); var i; var jsval = this.value.getWrappedValue(); var propMap = new Object(); /* get the enumerable properties */ for (var p in jsval) { var value; try { value = console.jsds.wrapValue(jsval[p]); if (... |
if (msgComposeService) msgComposeService.TimeStamp("addressing widget, windows title and focus are now set. The window is finally ready", false); | function WaitFinishLoadingDocument(msgType){ if (documentLoaded) { //If we are in plain text, we nee to set the wrap column if (! msgCompose.composeHTML) try { window.editorShell.wrapColumn = msgCompose.wrapLength; } catch (e) { dump("### window.editorShell.wrapColumn exception... | |
if (appCore.walletPreview(window, window._content)) { window.alert(strings.getAttribute("noPrefills")); } | appCore.walletPreview(window, window._content); | function WalletAction( action ) { var strings = document.getElementById("personalManagers"); if (action == "password" || action == "expire" || action == "clear") { wallet = Components.classes['component://netscape/wallet/wallet-service']; wallet = wallet.getService(); wallet = wallet.QueryInterface(Component... |
if (appCore.walletQuickFillin(window._content)) { window.alert(strings.getAttribute("noPrefills")); } | appCore.walletQuickFillin(window._content); | function WalletAction( action ) { var strings = document.getElementById("personalManagers"); if (action == "password" || action == "expire" || action == "clear") { wallet = Components.classes['component://netscape/wallet/wallet-service']; wallet = wallet.getService(); wallet = wallet.QueryInterface(Component... |
if (action == "password" || action == "expire") { | if (action == "password" || action == "expire" || action == "clear") { | function WalletAction( action ) { if (action == "password" || action == "expire") { wallet = Components.classes['component://netscape/wallet/wallet-service']; wallet = wallet.getService(); wallet = wallet.QueryInterface(Components.interfaces.nsIWalletService); if (action == "password") { wallet.WALLET... |
} else if (action == "clear") { wallet.WALLET_DeleteAll(); | function WalletAction( action ) { if (action == "password" || action == "expire") { wallet = Components.classes['component://netscape/wallet/wallet-service']; wallet = wallet.getService(); wallet = wallet.QueryInterface(Components.interfaces.nsIWalletService); if (action == "password") { wallet.WALLET... | |
wallet.WALLET_ChangePassword(); | if (!wallet.WALLET_ChangePassword()) { window.alert(strings.getAttribute("PasswordNotChanged")); } | function WalletAction( action ) { if (action == "password" || action == "expire" || action == "clear") { wallet = Components.classes['component://netscape/wallet/wallet-service']; wallet = wallet.getService(); wallet = wallet.QueryInterface(Components.interfaces.nsIWalletService); if (action == "password")... |
wallet.WALLET_ExpirePassword(); | if (wallet.WALLET_ExpirePassword()) { window.alert(strings.getAttribute("PasswordExpired")); } else { window.alert(strings.getAttribute("PasswordNotExpired")); } | function WalletAction( action ) { if (action == "password" || action == "expire" || action == "clear") { wallet = Components.classes['component://netscape/wallet/wallet-service']; wallet = wallet.getService(); wallet = wallet.QueryInterface(Components.interfaces.nsIWalletService); if (action == "password")... |
wallet.WALLET_DeleteAll(); | if (window.confirm(strings.getAttribute("AllDataWillBeCleared"))) { wallet.WALLET_DeleteAll(); } | function WalletAction( action ) { if (action == "password" || action == "expire" || action == "clear") { wallet = Components.classes['component://netscape/wallet/wallet-service']; wallet = wallet.getService(); wallet = wallet.QueryInterface(Components.interfaces.nsIWalletService); if (action == "password")... |
appCore.walletPreview(window, window._content); | if (appCore.walletPreview(window, window._content)) { window.alert(strings.getAttribute("noPrefills")); } | function WalletAction( action ) { if (action == "password" || action == "expire" || action == "clear") { wallet = Components.classes['component://netscape/wallet/wallet-service']; wallet = wallet.getService(); wallet = wallet.QueryInterface(Components.interfaces.nsIWalletService); if (action == "password")... |
appCore.walletQuickFillin(window._content); | if (appCore.walletQuickFillin(window._content)) { window.alert(strings.getAttribute("noPrefills")); } | function WalletAction( action ) { if (action == "password" || action == "expire" || action == "clear") { wallet = Components.classes['component://netscape/wallet/wallet-service']; wallet = wallet.getService(); wallet = wallet.QueryInterface(Components.interfaces.nsIWalletService); if (action == "password")... |
appCore.walletRequestToCapture(window._content); | status = appCore.walletRequestToCapture(window._content); if (status == -1) { window.alert(strings.getAttribute("UnableToCapture")); } else if (status == 0) { window.alert(strings.getAttribute("Captured")); } else if (status == +1) { window.alert(strings.getAttribute("NotCaptured")); } | function WalletAction( action ) { if (action == "password" || action == "expire" || action == "clear") { wallet = Components.classes['component://netscape/wallet/wallet-service']; wallet = wallet.getService(); wallet = wallet.QueryInterface(Components.interfaces.nsIWalletService); if (action == "password")... |
window._content.location.href = 'chrome: | window._content.location.href = this.pref.getLocalizedUnicharPref("wallet.TutorialFromMenu"); | function WalletDialog( which ){ switch( which ) { case "signon": window.openDialog("chrome://communicator/content/wallet/SignonViewer.xul","SSViewer","modal=yes,chrome,resizable=no","S"); break; case "cookie": window.openDialog("chrome://communicator/content/wallet/CookieViewer.xul","CookieViewer... |
this.pref.SetBoolPref("cookieviewer.cookieTab", true); window.openDialog("chrome: | window.openDialog("chrome: | function WalletDialog( which ){ switch( which ) { case "signon": window.openDialog("chrome://communicator/content/wallet/SignonViewer.xul","SSViewer","modal=yes,chrome,resizable=no"); break; case "cookie": this.pref.SetBoolPref("cookieviewer.cookieTab", true); window.openDialog("chrome://com... |
this.pref.SetBoolPref("cookieviewer.cookieTab", false); window.openDialog("chrome: | window.openDialog("chrome: | function WalletDialog( which ){ switch( which ) { case "signon": window.openDialog("chrome://communicator/content/wallet/SignonViewer.xul","SSViewer","modal=yes,chrome,resizable=no"); break; case "cookie": this.pref.SetBoolPref("cookieviewer.cookieTab", true); window.openDialog("chrome://com... |
case "tutorial": server = this.pref.getLocalizedUnicharPref("wallet.Samples"); window._content.location.href = server + 'privacy.html'; break; | function WalletDialog( which ){ switch( which ) { case "signon": window.openDialog("chrome://communicator/content/wallet/SignonViewer.xul","SSViewer","modal=yes,chrome,resizable=no","S"); break; case "cookie": window.openDialog("chrome://communicator/content/wallet/CookieViewer.xul","CookieViewer... | |
case "signon": window.openDialog("chrome: "_blank","chrome,resizable=yes","S"); break; | function WalletDialog(which) { switch( which ) { case "signon": window.openDialog("chrome://communicator/content/wallet/SignonViewer.xul", "_blank","chrome,resizable=yes","S"); break; case "samples": window._content.location.href = 'chrome://... | |
var searchBar = document.getElementById("searchbar"); if (searchBar && !searchBar.parentNode.parentNode.collapsed && !(window.getComputedStyle(searchBar.parentNode, null).display == "none")) { searchBar.select(); searchBar.focus(); } | function WebSearch(){ var searchBar = document.getElementById("searchbar"); if (searchBar && !searchBar.parentNode.parentNode.collapsed && !(window.getComputedStyle(searchBar.parentNode, null).display == "none")) { searchBar.select(); searchBar.focus(); } // XXX: If the search box is hidden, we should op... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.