rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
getSpecifiedStyle("border-top-style")
getSpecifiedStyle("border-bottom-style")
function InitBorderTabPanel(){ gDialog.selectedTab = BORDER_TAB; if (!gDialog.selectedObject || !gDialog.selectedObject.style) return; /* INIT */ var style = [ getSpecifiedStyle("border-top-style"), getSpecifiedStyle("border-left-style"), getSpecifiedStyle("border-right-style"), ...
getSpecifiedStyle("border-left-width"), getSpecifiedStyle("border-top-width")
getSpecifiedStyle("border-right-width"), getSpecifiedStyle("border-bottom-width")
function InitBorderTabPanel(){ gDialog.selectedTab = BORDER_TAB; if (!gDialog.selectedObject || !gDialog.selectedObject.style) return; /* INIT */ var style = [ getSpecifiedStyle("border-top-style"), getSpecifiedStyle("border-left-style"), getSpecifiedStyle("border-right-style"), ...
ConvertRGBColorIntoHEXColor(getSpecifiedStyle("border-top-color"))
ConvertRGBColorIntoHEXColor(getSpecifiedStyle("border-bottom-color"))
function InitBorderTabPanel(){ gDialog.selectedTab = BORDER_TAB; if (!gDialog.selectedObject || !gDialog.selectedObject.style) return; /* INIT */ var style = [ getSpecifiedStyle("border-top-style"), getSpecifiedStyle("border-left-style"), getSpecifiedStyle("border-right-style"), ...
var menuItemPrefix = style[i]; if (!menuItemPrefix || menuItemPrefix == "") menuItemPrefix = "unspecified"; var styleMenuitem = document.getElementById( menuItemPrefix+sideArray[i]+"BorderStyle" ); var styleMenulist = document.getElementById( sideArray[i]+"BorderStyleMenulist" ); styleMenulist.selectedItem = styleMenui...
SelectsOneChoice("border-"+sideArray[i]+"-style", sideArray[i]+"BorderStyleMenulist", sideArray[i]+"BorderStyle", gDialog.borderPreview)
function InitBorderTabPanel(){ gDialog.selectedTab = BORDER_TAB; if (!gDialog.selectedObject || !gDialog.selectedObject.style) return; /* INIT */ var style = [ getSpecifiedStyle("border-top-style"), getSpecifiedStyle("border-left-style"), getSpecifiedStyle("border-right-style"), ...
var colorInput = document.getElementById( sideArray[i]+"BorderColorInput" ); colorInput.value = color[i]; setColorWell("border"+sideArray[i]+"CW", color[i]); var widthInput = document.getElementById( sideArray[i]+"BorderWidthInput" ); widthInput.value = width[i]; AddStyleToElement(gDialog.borderPreview, "border-"+side...
colorInput.value = color[i]; setColorWell("border"+sideArray[i]+"CW", color[i]); AddStyleToElement(gDialog.borderPreview, "border-"+sideArray[i]+"-color", color[i]); widthInput.value = width[i]; AddStyleToElement(gDialog.borderPreview, "border-"+sideArray[i]+"-width", width[i]); } else { EnableUI(styleMenu, false)...
function InitBorderTabPanel(){ gDialog.selectedTab = BORDER_TAB; if (!gDialog.selectedObject || !gDialog.selectedObject.style) return; /* INIT */ var style = [ getSpecifiedStyle("border-top-style"), getSpecifiedStyle("border-left-style"), getSpecifiedStyle("border-right-style"), ...
ToggleFourBorderSidesSameStyle(gDialog.allFourBordersSame);
function InitBorderTabPanel(){ gDialog.selectedTab = BORDER_TAB; if (!gDialog.selectedObject || !gDialog.selectedObject.style) return; /* INIT */ var style = [ getSpecifiedStyle("border-top-style"), getSpecifiedStyle("border-left-style"), getSpecifiedStyle("border-right-style"), ...
try { gDataMigrator.checkAndMigrate(); } catch (e) { Components.utils.reportError("Migrator error: " + e); }
function initCalendarManager(){ var calMgr = getCalendarManager(); var composite = getCompositeCalendar(); if (calMgr.getCalendars({}).length == 0) { var homeCalendar = calMgr.createCalendar("storage", makeURL("moz-profile-calendar://")); calMgr.registerCalendar(homeCalendar); var name = c...
var pb2 = prefService.getBranch("").QueryInterface( Components.interfaces.nsIPrefBranch2); pb2.addObserver("calendar.", calPrefObserver, false);
function initCalendarManager(){ var calMgr = getCalendarManager(); var composite = getDisplayComposite(); if (calMgr.getCalendars({}).length == 0) { var homeCalendar = calMgr.createCalendar("storage", makeURL("moz-profile-calendar://")); calMgr.registerCalendar(homeCalendar); var name = sr...
var calendarList = document.getElementById("list-calendars-listbox"); calendarList.addEventListener("select", onCalendarListSelect, true);
function initCalendarManager(){ var calMgr = getCalendarManager(); var composite = getDisplayComposite(); if (calMgr.getCalendars({}).length == 0) { var homeCalendar = calMgr.createCalendar("storage", makeURL("moz-profile-calendar://")); calMgr.registerCalendar(homeCalendar); var name = sr...
initColors();
function initCalendarManager(){ var calMgr = getCalendarManager(); var composite = getDisplayComposite(); if (calMgr.getCalendars({}).length == 0) { var homeCalendar = calMgr.createCalendar("storage", makeURL("moz-profile-calendar://")); calMgr.registerCalendar(homeCalendar); // XXX Locali...
CalEvent = new Components.Constructor(kCalEventContractID, kCalIEvent); CalTodo = new Components.Constructor(kCalTodoContractID, kCalITodo); CalDateTime = new Components.Constructor(kCalDateTimeContractID, kCalIDateTime);
function initCalStorageCalendarComponent() { CalEvent = new Components.Constructor(kCalEventContractID, kCalIEvent); CalTodo = new Components.Constructor(kCalTodoContractID, kCalITodo); CalDateTime = new Components.Constructor(kCalDateTimeContractID, kCalIDateTime); CalAttendee = new Components.Constructor(...
if (g_currentMailSendCharset != null) { dump("already set to " + g_currentMailSendCharset + "\n");
if (gCurrentMailSendCharset != null) { dump("already set to " + gCurrentMailSendCharset + "\n");
function InitCharsetMenuCheckMark(){ // return if the charset is already set explitily if (g_currentMailSendCharset != null) { dump("already set to " + g_currentMailSendCharset + "\n"); return; } // Check the menu UpdateMailEditCharset(); // use setTimeout workaround to delay checkmark the menu // when onm...
add (CMD_FBREAK, "onInputFBreak", CMD_FBREAK_PARAMS, CMD_FBREAK_HELP); add (CMD_FCLEAR, "onInputFClear", CMD_FCLEAR_PARAMS, CMD_FCLEAR_HELP);
function initCommands(commandObject){ console._commands = new CCommandManager(); function add (name, func, usage, help) { console._commands.add (name, func, usage, help); } add (CMD_BREAK, "onInputBreak", CMD_BREAK_PARAMS, CMD_BREAK_HELP); add (CMD_CLEAR, "onInputClear", CMD_CLEAR_PA...
console._commands = new CCommandManager();
defineVenkmanCommands (cmdary);
function initCommands(commandObject){ console._commands = new CCommandManager(); function add (name, func, usage, help) { console._commands.add (name, func, usage, help); } add (CMD_BREAK, "onInputBreak", CMD_BREAK_PARAMS, CMD_BREAK_HELP); add (CMD_CLEAR, "onInputClear", CMD_CLEAR_PA...
function add (name, func, usage, help) { console._commands.add (name, func, usage, help); } add (CMD_BREAK, "onInputBreak", CMD_BREAK_PARAMS, CMD_BREAK_HELP); add (CMD_CLEAR, "onInputClear", CMD_CLEAR_PARAMS, CMD_CLEAR_HELP); add (CMD_CMDS, "onInputCommands", CMD_CMDS_PARAMS, CMD_CMDS_HELP); add (CMD_...
console.commandManager.argTypes.__aliasTypes__ (["index", "breakpointIndex", "lineNumber"], "int"); console.commandManager.argTypes.__aliasTypes__ (["scriptText", "expression"], "rest");
function initCommands(commandObject){ console._commands = new CCommandManager(); function add (name, func, usage, help) { console._commands.add (name, func, usage, help); } add (CMD_BREAK, "onInputBreak", CMD_BREAK_PARAMS, CMD_BREAK_HELP); add (CMD_CLEAR, "onInputClear", CMD_CLEAR_PA...
gAddressBookBundle = document.getElementById("bundle_addressBook");
function InitCommonJS(){ dirTree = document.getElementById("dirTree"); abList = document.getElementById("addressbookList"); gAbResultsTree = document.getElementById("abResultsTree");}
dirTree = document.getElementById('dirTree'); resultsTree = document.getElementById('resultsTree');
dirTree = document.getElementById("dirTree"); resultsTree = document.getElementById("resultsTree");
function InitCommonJS(){ dirTree = document.getElementById('dirTree'); resultsTree = document.getElementById('resultsTree');}
document.getElementById('identity.showSaveMsgDlg').checked = identity.showSaveMsgDlg;
document.getElementById('identity.showSaveMsgDlg').checked = copiesAndFoldersIdentity.showSaveMsgDlg;
function initCopiesAndFolder(identity){ // if we are editing an existing identity, use it...otherwise copy our values from the default identity var copiesAndFoldersIdentity = identity ? identity : gAccount.defaultIdentity; document.getElementById('identity.fccFolder').value = copiesAndFoldersIdentity.fccFolder; do...
"VALUES (:calendar, :name, :value)"
"VALUES (:calendar, :name, :value)");
initDB: function() { var sqlTables = { cal_calendars: "id INTEGER PRIMARY KEY, name STRING, type STRING, uri STRING", cal_calendars_prefs: "id INTEGER PRIMARY KEY, calendar INTERGER, name STRING, value STRING" }; var dbService = Components.classes[kStorageServiceContrac...
findCalendarID: function(calendar) { var stmt = this.mFindCalendar; stmt.reset(); var pp = stmt.params; pp.name = calendar.name; pp.type = calendar.type; pp.uri = calendar.uri.spec; var id = -1; if (stmt.step()) { id = stmt.row.id; } stmt.reset(); return id; }, createCalendar: function(name, type, uri) { var calend...
initDB: function() { var sqlTables = { cal_calendars: "id INTEGER PRIMARY KEY, name STRING, type STRING, uri STRING", cal_calendars_prefs: "id INTEGER PRIMARY KEY, calendar INTERGER, name STRING, value STRING" }; var dbService = Components.classes[kStorageServiceContrac...
this.mDB = dbService.getProfileStorage("profile");
this.mDB = dbService.openSpecialDatabase("profile");
initDB: function() { var sqlTables = { cal_calendars: "id INTEGER PRIMARY KEY, type STRING, uri STRING", cal_calendars_prefs: "id INTEGER PRIMARY KEY, calendar INTEGER, name STRING, value STRING" }; var dbService = Components.classes[kStorageServiceContractID].getServic...
var calendarTable = "id INTEGER PRIMARY KEY, name STRING, type STRING, uri STRING";
var sqlTables = { cal_calendars: "id INTEGER PRIMARY KEY, name STRING, type STRING, uri STRING", cal_calendars_prefs: "id INTEGER PRIMARY KEY, calendar INTERGER, name STRING, value STRING" };
initDB: function() { var calendarTable = "id INTEGER PRIMARY KEY, name STRING, type STRING, uri STRING"; var dbService = Components.classes[kStorageServiceContractID].getService(kStorageServiceIID); this.mDB = dbService.getProfileStorage("profile"); try { this.mDB.createTable(...
try { this.mDB.createTable("cal_calendars", calendarTable); } catch (e) { dump("error creating table cal_calendars -- probably already exists\n");
for (table in sqlTables) { try { this.mDB.createTable(table, sqlTables[table]); } catch (ex) { dump("error creating table " + table + " -- probably already exists\n"); }
initDB: function() { var calendarTable = "id INTEGER PRIMARY KEY, name STRING, type STRING, uri STRING"; var dbService = Components.classes[kStorageServiceContractID].getService(kStorageServiceIID); this.mDB = dbService.getProfileStorage("profile"); try { this.mDB.createTable(...
findCalendarID: function(calendar) { var stmt = this.mFindCalendar; stmt.reset(); var pp = stmt.params; pp.name = calendar.name; pp.type = calendar.type; pp.uri = calendar.uri.spec; var id = -1; if (stmt.step()) { id = stmt.row.id; } stmt.reset(); return id; }, createCalendar: function(name, type, uri) { var calend...
initDB: function() { var calendarTable = "id INTEGER PRIMARY KEY, name STRING, type STRING, uri STRING"; var dbService = Components.classes[kStorageServiceContractID].getService(kStorageServiceIID); this.mDB = dbService.getProfileStorage("profile"); try { this.mDB.createTable(...
console.jsds.errorHook = console._errorHook;
function initDebugger(){ console._continueCodeStack = new Array(); /* top of stack is the default */ /* return code for the most */ /* recent debugTrap(). */ console._breakpoints = new Array(); /* breakpoints ...
setThrowMode(TMODE_IGNORE);
function initDebugger(){ console._continueCodeStack = new Array(); /* top of stack is the default */ /* return code for the most */ /* recent debugTrap(). */ console._breakpoints = new Array(); /* breakpoints ...
console.jsds.debugHook = console._executionHook; console.jsds.errorHook = console._errorHook;
function initDebugger(){ dd ("initDebugger {"); console._continueCodeStack = new Array(); /* top of stack is the default */ /* return code for the most */ /* recent debugTrap(). */ console.scripts = n...
setThrowMode(TMODE_IGNORE);
console.throwMode = TMODE_IGNORE; console.errorMode = EMODE_IGNORE;
function initDebugger(){ dd ("initDebugger {"); console._continueCodeStack = new Array(); /* top of stack is the default */ /* return code for the most */ /* recent debugTrap(). */ console.scripts = n...
console.jsds.errorHook = console._errorHook;
function initDebugger(){ dd ("initDebugger {"); console._continueCodeStack = new Array(); /* top of stack is the default */ /* return code for the most */ /* recent debugTrap(). */ console.scripts = n...
console.continueCodeStack = new Array();
console._continueCodeStack = new Array(); console._breakpoints = new Array(); console._stopLevel = 0; console._scriptCount = 0;
function initDebugger(){ console.continueCodeStack = new Array(); /* create the debugger instance */ if (!Components.classes[JSD_CTRID]) throw BadMojo (ERR_NO_DEBUGGER); console.jsds = Components.classes[JSD_CTRID].getService(jsdIDebuggerService); console.jsds.on(); console.jsds.brea...
console.jsds.breakpointHook = console.breakpointHooker; console.jsds.debuggerHook = console.debuggerHooker;
console.jsds.breakpointHook = console._executionHook; console.jsds.debuggerHook = console._executionHook; console.jsds.scriptHook = console._scriptHook;
function initDebugger(){ console.continueCodeStack = new Array(); /* create the debugger instance */ if (!Components.classes[JSD_CTRID]) throw BadMojo (ERR_NO_DEBUGGER); console.jsds = Components.classes[JSD_CTRID].getService(jsdIDebuggerService); console.jsds.on(); console.jsds.brea...
if ( !desc ) { var app = this.mLauncher.MIMEInfo.defaultApplicationHandler; if ( app ) { desc = app.leafName; } }
initDefaultApp: function() { // Use description, if provided. var desc = this.mLauncher.MIMEInfo.defaultDescription; if ( !desc ) { // Otherwise, use helper application file name var app = this.mLauncher.MIMEInfo.defaultApplicationHandler; if ( app ) { ...
this.dialogElement( "alwaysAskMe" ).checked = this.mLauncher.MIMEInfo.alwaysAskBeforeHandling;
var alwaysAskCheckbox = this.dialogElement( "alwaysAskMe" ); if (this.mLauncher.MIMEInfo.MIMEType == "application/octet-stream") { alwaysAskCheckbox.checked = true; alwaysAskCheckbox.disabled = true; } else { alwaysAskCheckbox.checked = this.mLauncher.MIMEInfo.alwaysAskBeforeHandling; }
initDialog : function() { // Put product brand short name in prompt. var prompt = this.dialogElement( "prompt" ); var modified = this.replaceInsert( prompt.firstChild.nodeValue, 1, this.getString( "brandShortName" ) ); prompt.firstChild.nodeValue = modified; // Put file name ...
this.initIntro();
this.initIntro(url); var iconString = "moz-icon: this.dialogElement("contentTypeImage").setAttribute("src", iconString); this.initAppAndSaveToDiskValues(); this.dialogElement( "alwaysAskMe" ).checked = true;
initDialog : function() { // Check if file is executable (in which case, we will go straight to // "save to disk"). var ignore1 = new Object; var ignore2 = new Object; var tmpFile = this.mLauncher.getDownloadInfo( ignore1, ignore2 ); if ( tmpFile.isExecutable() ) { ...
this.initExplanation(); this.dialogElement( "default" ).checked = true; if ( this.mLauncher.MIMEInfo.preferredAction != Components.interfaces.nsIMIMEInfo.saveToDisk ) { this.dialogElement( "saveToDisk" ).checked = true; } else { this.dialogElement( "openUsing" ).checked = true; } this.option();
initDialog : function() { // Check if file is executable (in which case, we will go straight to // "save to disk"). var ignore1 = new Object; var ignore2 = new Object; var tmpFile = this.mLauncher.getDownloadInfo( ignore1, ignore2 ); if ( tmpFile.isExecutable() ) { ...
dialog.portraitRadio = document.getElementById("portraitRadio");
dialog.orientationGroup = document.getElementById("orientationGroup"); dialog.portraitRadio = document.getElementById("portraitRadio");
function initDialog(){ dialog = new Object; dialog.findKey = document.getElementById("dialog.findKey"); dialog.caseSensitive = document.getElementById("dialog.caseSensitive"); dialog.wrap = document.getElementById("dialog.wrap"); dialog.searchBackwards = document.getElementById("dialog.searchB...
dialog.printrangeGroupLabel = document.getElementById("printrangeGroupLabel");
dialog.printframeGroupLabel = document.getElementById("printframeGroupLabel");
function initDialog(){ dialog = new Object; dialog.findKey = document.getElementById("dialog.findKey"); dialog.caseSensitive = document.getElementById("dialog.caseSensitive"); dialog.wrap = document.getElementById("dialog.wrap"); dialog.searchBackwards = document.getElementById("dialog.searchB...
if (backgroundImage.length)
if (backgroundImage)
function InitDialog(){ // Get image from document backgroundImage = globalElement.getAttribute(backgroundStr); if (backgroundImage.length) { gDialog.BackgroundImageInput.value = backgroundImage; gDialog.ColorPreview.setAttribute(styleStr, backImageStyle+backgroundImage+");"); } SetRelativeCheckbox(); custo...
newImg.setAttribute("src", srcInput.value);
newImg.setAttribute("src", srcInputValue);
function initDialog(){ //Get image element from parent imageElement = window.arguments[0]; if (!imageElement) //If not an image close window window.close(); //Get image map from parent imageMap = window.arguments[1]; if (!imageMap) //If no image map close window window.close(); //find parent inputs srcInp...
SetColor("textCW", globalElement.getAttribute(textStr)); SetColor("linkCW", globalElement.getAttribute(linkStr)); SetColor("visitedCW", globalElement.getAttribute(vlinkStr)); SetColor("activeCW", globalElement.getAttribute(alinkStr)); SetColor("backgroundCW", globalElement.getAttribute(bgcolorStr));
backgroundImage = globalElement.getAttribute(backgroundStr); if (backgroundImage.length > 0) { dialog.BackgroundImageInput.value = backgroundImage; dialog.ColorPreview.setAttribute(styleStr, backImageStyle+backgroundImage+");"); }
function InitDialog(){ SetColor("textCW", globalElement.getAttribute(textStr)); SetColor("linkCW", globalElement.getAttribute(linkStr)); SetColor("visitedCW", globalElement.getAttribute(vlinkStr)); SetColor("activeCW", globalElement.getAttribute(alinkStr)); SetColor("backgroundCW", globalElement...
if (dialog.textColor || dialog.linkColor || dialog.visitedLinkColor || dialog.activeLinkColor || dialog.backgroundColor)
customTextColor = globalElement.getAttribute(textStr); customLinkColor = globalElement.getAttribute(linkStr); customActiveColor = globalElement.getAttribute(alinkStr); customVisitedColor = globalElement.getAttribute(vlinkStr); customBackgroundColor = globalElement.getAttribute(bgcolorStr); if (...
function InitDialog(){ SetColor("textCW", globalElement.getAttribute(textStr)); SetColor("linkCW", globalElement.getAttribute(linkStr)); SetColor("visitedCW", globalElement.getAttribute(vlinkStr)); SetColor("activeCW", globalElement.getAttribute(alinkStr)); SetColor("backgroundCW", globalElement...
} else {
UseCustomColors(); } else {
function InitDialog(){ SetColor("textCW", globalElement.getAttribute(textStr)); SetColor("linkCW", globalElement.getAttribute(linkStr)); SetColor("visitedCW", globalElement.getAttribute(vlinkStr)); SetColor("activeCW", globalElement.getAttribute(alinkStr)); SetColor("backgroundCW", globalElement...
} SaveCustomColors(); dialog.BackgroundImage = globalElement.getAttribute(backgroundStr); if (dialog.BackgroundImage) { dialog.BackgroundImageInput.value = dialog.BackgroundImage; dialog.ColorPreview.setAttribute(backgroundStr, dialog.BackgroundImage);
UseDefaultColors();
function InitDialog(){ SetColor("textCW", globalElement.getAttribute(textStr)); SetColor("linkCW", globalElement.getAttribute(linkStr)); SetColor("visitedCW", globalElement.getAttribute(vlinkStr)); SetColor("activeCW", globalElement.getAttribute(alinkStr)); SetColor("backgroundCW", globalElement...
var iconSize = gToolbox.getAttribute("iconsize");
gToolboxIconSize = gToolbox.getAttribute("iconsize");
function initDialog(){ document.getElementById("main-box").collapsed = false; var mode = gToolbox.getAttribute("mode"); document.getElementById("modelist").value = mode; var iconSize = gToolbox.getAttribute("iconsize"); var smallIconsCheckbox = document.getElementById("smallicons"); if (mode == "text") small...
smallIconsCheckbox.checked = iconSize == "small";
smallIconsCheckbox.checked = gToolboxIconSize == "small";
function initDialog(){ document.getElementById("main-box").collapsed = false; var mode = gToolbox.getAttribute("mode"); document.getElementById("modelist").value = mode; var iconSize = gToolbox.getAttribute("iconsize"); var smallIconsCheckbox = document.getElementById("smallicons"); if (mode == "text") small...
dialog.paperList = document.getElementById("paperList"); dialog.paperGroup = document.getElementById("paperGroup");
function initDialog(){ dialog = new Object; dialog.cmdLabel = document.getElementById("cmdLabel"); dialog.cmdInput = document.getElementById("cmdInput"); dialog.colorGroup = document.getElementById("colorGroup"); dialog.colorRadio = document.getElementById("colorRadio"); dialog.grayRadio ...
dialog.widthInput.value = InitPixelOrPercentMenulist(globalElement, tableElement, "widthInput","widthPixelOrPercentMenulist", gPercent);
dialog.widthInput.value = InitPixelOrPercentMenulist(globalElement, tableElement, "width", "widthPixelOrPercentMenulist", gPercent);
function InitDialog(){ // Get default attributes set on the created table: // Get the width attribute of the element, stripping out "%" // This sets contents of menu combobox list dialog.widthInput.value = InitPixelOrPercentMenulist(globalElement, tableElement, "widthInput","widthPixelOrPercentMenulist", gPercent...
var save = document.getElementById("ok"); save.setAttribute( "value", bundle.GetStringFromName("save") );
var saveButton = document.getElementById("ok"); saveButton.setAttribute( "value", bundle.GetStringFromName("save") );
function initDialog() { // Create dialog object and initialize. dialog = new Object; dialog.contentType = document.getElementById("dialog.contentType"); dialog.more = document.getElementById("dialog.more"); bundle = srGetStrBundle("chrome://global/locale/unknownContent.properties"); var pickApp...
gDialog.paperList = document.getElementById("paperList"); gDialog.paperGroup = document.getElementById("paperGroup");
function initDialog(){ gDialog = new Object; gDialog.paperList = document.getElementById("paperList"); gDialog.paperGroup = document.getElementById("paperGroup"); gDialog.orientation = document.getElementById("orientation"); gDialog.printBGColors = document.getElementById("printBGColors"); gDia...
dialog.find = document.getElementById("dialog.find"); dialog.cancel = document.getElementById("dialog.cancel");
dialog.find = document.getElementById("ok"); dialog.cancel = document.getElementById("cancel");
function initDialog() { // Create dialog object and initialize. dialog = new Object; dialog.findKey = document.getElementById("dialog.findKey"); dialog.caseSensitive = document.getElementById("dialog.caseSensitive"); dialog.wrap ...
dialog.destGroup = document.getElementById("destGroup"); dialog.fileRadio = document.getElementById("fileRadio"); dialog.printerRadio = document.getElementById("printerRadio");
function initDialog(){ dialog = new Object; dialog.propertiesButton = document.getElementById("properties"); dialog.descText = document.getElementById("descText"); dialog.destGroup = document.getElementById("destGroup"); dialog.fileRadio = document.getElementById("fileRadio"); dialog.printerRa...
dialog.fileInput = document.getElementById("fileInput"); dialog.fileLabel = document.getElementById("fileLabel");
dialog.fileCheck = document.getElementById("fileCheck");
function initDialog(){ dialog = new Object; dialog.propertiesButton = document.getElementById("properties"); dialog.descText = document.getElementById("descText"); dialog.destGroup = document.getElementById("destGroup"); dialog.fileRadio = document.getElementById("fileRadio"); dialog.printerRa...
dialog.chooseButton = document.getElementById("chooseFile");
function initDialog(){ dialog = new Object; dialog.propertiesButton = document.getElementById("properties"); dialog.descText = document.getElementById("descText"); dialog.destGroup = document.getElementById("destGroup"); dialog.fileRadio = document.getElementById("fileRadio"); dialog.printerRa...
if (align) align = align.toLowerCase();
if (!align) align = ""; align = align.toLowerCase();
function InitDialog(){ // Just to be confusing, "size" is used instead of height var height = globalElement.getAttribute("size"); if(!height) { height = 2; //Default value } // We will use "height" here and in UI gDialog.heightInput.value = height; // Get the width attribute of the element, stripping out "%" ...
gDialog.centerAlign.checked = (align == "center" || !align); gDialog.rightAlign.checked = (align == "right"); gDialog.leftAlign.checked = (align == "left");
var selectedRadio = gDialog.centerAlign; var radioGroup = gDialog.centerAlign.radioGroup switch (align) { case "left": gDialog.alignGroup.selectedItem = gDialog.leftAlign; break; case "right": gDialog.alignGroup.selectedItem = gDialog.rightAlign; break; default: gDialog.alignGroup.selectedItem = gDialog.centerAlign; br...
function InitDialog(){ // Just to be confusing, "size" is used instead of height var height = globalElement.getAttribute("size"); if(!height) { height = 2; //Default value } // We will use "height" here and in UI gDialog.heightInput.value = height; // Get the width attribute of the element, stripping out "%" ...
align = globalElement.getAttribute("align").toLowerCase();
align = globalElement.getAttribute("align"); if (align) align = align.toLowerCase();
function InitDialog(){ // Just to be confusing, "size" is used instead of height var height = globalElement.getAttribute("size"); if(!height) { height = 2; //Default value } // We will use "height" here and in UI gDialog.heightInput.value = height; // Get the width attribute of the element, stripping out "%" ...
backgroundImage = GetHTMLOrCSSStyleValue(globalElement, backgroundStr, cssBackgroundImageStr); var innerURL = backgroundImage.match( /url\((.*)\)/ ) ; if (innerURL) { backgroundImage = RegExp.$1; } if (backgroundImage) { gDialog.BackgroundImageInput.value = backgroundImage; gDialog.ColorPreview.setAttribute(styleStr, b...
gBackgroundImage = GetHTMLOrCSSStyleValue(globalElement, backgroundStr, cssBackgroundImageStr); if (gBackgroundImage.match( /url\((.*)\)/ )) gBackgroundImage = RegExp.$1; gDialog.BackgroundImageInput.value = gBackgroundImage; if (gBackgroundImage) gDialog.ColorPreview.setAttribute(styleStr, backImageStyle+gBackground...
function InitDialog(){ // Get image from document backgroundImage = GetHTMLOrCSSStyleValue(globalElement, backgroundStr, cssBackgroundImageStr); var innerURL = backgroundImage.match( /url\((.*)\)/ ) ; if (innerURL) { backgroundImage = RegExp.$1; } if (backgroundImage) { gDialog.BackgroundImageInput.value ...
noshade = globalElement.getAttribute("noshade"); dialog.shading.checked = (noshade == "");
if (globalElement.attributes.getNamedItem("noshade")) dialog.shading.checked = false; else dialog.shading.checked = true;
function InitDialog(){ // Just to be confusing, "size" is used instead of height var height = globalElement.getAttribute("size"); if(!height) { dump("NO SIZE FOUND FOR HLINE"); height = 2; //Default value } // We will use "height" here and in UI dialog.heightInput.value = height; // Get the width attribute...
var stringIn = "123abc456"; dump("Test string = "+stringIn+"\n"); var pat = new RegExp("/\D+/g"); if (pat.test(stringIn)) { var tempStr = stringIn.replace(pat,""); dump("Replaced pattern = "+tempStr+"\n"); } else { dump("Failed test for nonnumeral characters\n"); }
function InitDialog(){//******** Debuggin weird RegExp problems var stringIn = "123abc456"; dump("Test string = "+stringIn+"\n"); var pat = new RegExp("/\D+/g"); if (pat.test(stringIn)) { var tempStr = stringIn.replace(pat,""); dump("Replaced pattern = "+tempStr+"\n"); } else { dump("Failed test for nonnu...
dump("HLine size = "+height+"\n");
function InitDialog(){//******** Debuggin weird RegExp problems var stringIn = "123abc456"; dump("Test string = "+stringIn+"\n"); var pat = new RegExp("/\D+/g"); if (pat.test(stringIn)) { var tempStr = stringIn.replace(pat,""); dump("Replaced pattern = "+tempStr+"\n"); } else { dump("Failed test for nonnu...
var author = authorElement.getAttribute("content").trimString();
var author = TrimString(authorElement.getAttribute("content"));
function InitDialog(){ gDialog.TitleInput.value = editorShell.GetDocumentTitle(); var author = authorElement.getAttribute("content").trimString(); if (author.length == 0) { // Fill in with value from editor prefs var prefs = GetPrefs(); if (prefs) author = prefs.CopyCharPref("editor.author"); } gDi...
function InitDialog() { element = editorShell.GetSelectedElement(tagName); if (element) { insertNew = false; dump("Found existing image\n"); } else { insertNew = true; dump("Element not selected - calling createElementWithDefaults\n"); element = appCore.createElementWithDefaults(tagName); }
function InitDialog() { ListStyle = "ul"; BuildBulletStyleList(); /*
function InitDialog() { // Get a single selected element of the desired type element = editorShell.GetSelectedElement(tagName); if (element) { // We found an element and don't need to insert one insertNew = false; dump("Found existing image\n"); } else { insertNew = true; // We don't have an element ...
*/
function InitDialog() { // Get a single selected element of the desired type element = editorShell.GetSelectedElement(tagName); if (element) { // We found an element and don't need to insert one insertNew = false; dump("Found existing image\n"); } else { insertNew = true; // We don't have an element ...
gDialog.CustomColorsRadio.checked = true;
gDialog.PageColorGroup.selectedItem = gDialog.CustomColorsRadio;
function InitDialog(){ // Get image from document backgroundImage = globalElement.getAttribute(backgroundStr); if (backgroundImage) { gDialog.BackgroundImageInput.value = backgroundImage; gDialog.ColorPreview.setAttribute(styleStr, backImageStyle+backgroundImage+");"); } SetRelativeCheckbox(); customTextCo...
gDialog.DefaultColorsRadio.checked = true;
gDialog.PageColorGroup.selectedItem = gDialog.DefaultColorsRadio;
function InitDialog(){ // Get image from document backgroundImage = globalElement.getAttribute(backgroundStr); if (backgroundImage) { gDialog.BackgroundImageInput.value = backgroundImage; gDialog.ColorPreview.setAttribute(styleStr, backImageStyle+backgroundImage+");"); } SetRelativeCheckbox(); customTextCo...
gDialog.srcInput.value = globalElement.getAttribute("src"); SetRelativeCheckbox(); LoadPreviewImage(); gDialog.altTextInput.value = globalElement.getAttribute("alt"); var width = InitPixelOrPercentMenulist(globalElement, gInsertNewImage ? null : imageElement, "width", "widthUnitsMenulist", gPixel); var height = ...
InitImage();
function InitDialog(){ // 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(); gDialog.altTextI...
dialog.AuthorInput.value = authorElement.getAttribute("content");
var author = authorElement.getAttribute("content").trimString(); if (author.length == 0) { var prefs = GetPrefs(); if (prefs) author = prefs.CopyCharPref("editor.author"); } dialog.AuthorInput.value = author;
function InitDialog(){ dialog.TitleInput.value = editorShell.GetDocumentTitle(); dialog.AuthorInput.value = authorElement.getAttribute("content"); dialog.DescriptionInput.value = descriptionElement.getAttribute("content");}
editCard.displayLastNameFirst = gPrefs.getBoolPref("mail.addr_book.displayName.lastnamefirst");
var displayLastNameFirst = gPrefs.getComplexValue("mail.addr_book.displayName.lastnamefirst", Components.interfaces.nsIPrefLocalizedString).data; editCard.displayLastNameFirst = (displayLastNameFirst == "true");
function InitEditCard(){ InitPhoneticFields(); gAddressBookBundle = document.getElementById("bundle_addressBook"); // create editCard object that contains global variables for editCard.js editCard = new Object; editCard.prefs = gPrefs; // get specific prefs that editCard will need try { editCard.displayLastNa...
editCard.displayLastNameFirst = prefs.GetBoolPref("mail.addr_book.lastnamefirst");
editCard.displayLastNameFirst = prefs.GetIntPref("mail.addr_book.displayName.lastnamefirst");
function InitEditCard(){ // create editCard object that contains global variables for editCard.js editCard = new Object; // get pointer to nsIPref object var prefs = Components.classes["component://netscape/preferences"]; if ( prefs ) { prefs = prefs.getService(); if ( prefs ) { prefs = prefs.QueryInterface(Compo...
dump("failed to get the mail.addr_book.lastnamefirst pref\n");
dump("failed to get the mail.addr_book.displayName.lastnamefirst pref\n");
function InitEditCard(){ // create editCard object that contains global variables for editCard.js editCard = new Object; // get pointer to nsIPref object var prefs = Components.classes["component://netscape/preferences"]; if ( prefs ) { prefs = prefs.getService(); if ( prefs ) { prefs = prefs.QueryInterface(Compo...
editCard = new Object;
gEditCard = new Object;
function InitEditCard(){ InitPhoneticFields(); gAddressBookBundle = document.getElementById("bundle_addressBook"); // create editCard object that contains global variables for editCard.js editCard = new Object; editCard.prefs = gPrefs; // get specific prefs that editCard will need try { var displayLastNameFir...
editCard.prefs = gPrefs;
gEditCard.prefs = gPrefs;
function InitEditCard(){ InitPhoneticFields(); gAddressBookBundle = document.getElementById("bundle_addressBook"); // create editCard object that contains global variables for editCard.js editCard = new Object; editCard.prefs = gPrefs; // get specific prefs that editCard will need try { var displayLastNameFir...
editCard.displayLastNameFirst = (displayLastNameFirst == "true"); editCard.generateDisplayName = gPrefs.getBoolPref("mail.addr_book.displayName.autoGeneration");
gEditCard.displayLastNameFirst = (displayLastNameFirst == "true"); gEditCard.generateDisplayName = gPrefs.getBoolPref("mail.addr_book.displayName.autoGeneration");
function InitEditCard(){ InitPhoneticFields(); gAddressBookBundle = document.getElementById("bundle_addressBook"); // create editCard object that contains global variables for editCard.js editCard = new Object; editCard.prefs = gPrefs; // get specific prefs that editCard will need try { var displayLastNameFir...
gAddressBookBundle = document.getElementById("bundle_addressBook");
InitCommonJS();
function InitEditCard(){ InitPhoneticFields(); gAddressBookBundle = document.getElementById("bundle_addressBook"); // Create gEditCard object that contains global variables for the current js // file. gEditCard = new Object; gEditCard.prefs = gPrefs; // get specific prefs that gEditCard will need try { var...
goSetMenuValue('cmd_delete', 'valueDefault'); goSetAccessKey('cmd_delete', 'valueDefaultAccessKey');
function InitEditMessagesMenu(){ document.commandDispatcher.updateCommands('create-menu-edit');}
InlineSpellChecker.checkDocument(window.content.document);
function InitEditor(){ var editor = GetCurrentEditor(); gMsgCompose.initEditor(editor, window.content); InlineSpellChecker.Init(editor, sPrefs.getBoolPref("mail.spellcheck.inline")); InlineSpellChecker.checkDocument(window.content.document);}
this.mStartDate = createCalDateTime(); this.mEndDate = createCalDateTime(); this.mStampDate = createCalDateTime();
this.mStartDate = new CalDateTime(); this.mEndDate = new CalDateTime(); this.mStampDate = new CalDateTime();
initEvent: function () { this.mStartDate = createCalDateTime(); this.mEndDate = createCalDateTime(); this.mStampDate = createCalDateTime(); },
gNewProfile1_2Bundle = document.getElementById("bundle_newProfile1_2");
function initFields(){ var displayField = document.getElementById( "ProfileDir" ); if ( !displayField.value || !displayField.rootFolder ) setDisplayToDefaultFolder();}
function initFileInfo(aFI, aURL, aDocument, aContentType, aContentDisposition)
function initFileInfo(aFI, aURL, aURLCharset, aDocument, aContentType, aContentDisposition)
function initFileInfo(aFI, aURL, aDocument, aContentType, aContentDisposition){ var docCharset = (aDocument ? aDocument.characterSet : null); try { // Get an nsIURI object from aURL if possible: try { aFI.uri = makeURI(aURL, docCharset); // Assuming nsiUri is valid, calling QueryInterface(...) on it w...
var docCharset = (aDocument ? aDocument.characterSet : null);
function initFileInfo(aFI, aURL, aDocument, aContentType, aContentDisposition){ var docCharset = (aDocument ? aDocument.characterSet : null); try { // Get an nsIURI object from aURL if possible: try { aFI.uri = makeURI(aURL, docCharset); // Assuming nsiUri is valid, calling QueryInterface(...) on it w...
aFI.uri = makeURI(aURL, docCharset);
aFI.uri = makeURI(aURL, aURLCharset);
function initFileInfo(aFI, aURL, aDocument, aContentType, aContentDisposition){ var docCharset = (aDocument ? aDocument.characterSet : null); try { // Get an nsIURI object from aURL if possible: try { aFI.uri = makeURI(aURL, docCharset); // Assuming nsiUri is valid, calling QueryInterface(...) on it w...
var fastFind = getBrowser().fastFind; fastFind.focusLinks = true;
initFindBar: function () { getBrowser().addEventListener("keypress", findBar_OnBrowserKeyPress, false); getBrowser().addEventListener("mouseup", findBar_OnBrowserMouseUp, false); var prefService = Components.classes["@mozilla.org/prefere...
function initFindBar() { getBrowser().addEventListener("keypress", onBrowserKeyPress, false); getBrowser().addEventListener("mouseup", onBrowserMouseUp, false); var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch);
initFindBar: function () { getBrowser().addEventListener("keypress", findBar_OnBrowserKeyPress, false); getBrowser().addEventListener("mouseup", findBar_OnBrowserMouseUp, false);
function initFindBar(){ getBrowser().addEventListener("keypress", onBrowserKeyPress, false); getBrowser().addEventListener("mouseup", onBrowserMouseUp, false); var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); ...
var pbi = prefService.QueryInterface(Components.interfaces.nsIPrefBranch2);
var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch);
function initFindBar(){ getBrowser().addEventListener("keypress", onBrowserKeyPress, false); getBrowser().addEventListener("mouseup", onBrowserMouseUp, false); var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); ...
gQuickFindTimeoutLength = prefService.getIntPref("accessibility.typeaheadfind.timeout"); gFlashFindBar = prefService.getIntPref("accessibility.typeaheadfind.flashBar");
var pbi = prefService.QueryInterface(Components.interfaces.nsIPrefBranch2);
function initFindBar(){ getBrowser().addEventListener("keypress", onBrowserKeyPress, false); getBrowser().addEventListener("mouseup", onBrowserMouseUp, false); var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); ...
pbi.addObserver(gTypeAheadFind.useTAFPref, gTypeAheadFind, false); pbi.addObserver(gTypeAheadFind.searchLinksPref, gTypeAheadFind, false); gUseTypeAheadFind = prefService.getBoolPref("accessibility.typeaheadfind"); gTypeAheadLinksOnly = prefService.getBoolPref("accessibility.typeaheadfind.linksonly");
this.mQuickFindTimeoutLength = prefService.getIntPref("accessibility.typeaheadfind.timeout"); this.mFlashFindBar = prefService.getIntPref("accessibility.typeaheadfind.flashBar");
function initFindBar(){ getBrowser().addEventListener("keypress", onBrowserKeyPress, false); getBrowser().addEventListener("mouseup", onBrowserMouseUp, false); var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); ...
var fastFind = getBrowser().fastFind; fastFind.focusLinks = true; var findField = document.getElementById("find-field"); findField.addEventListener("dragdrop", findBarOnDrop, true);
pbi.addObserver(this.mTypeAheadFind.useTAFPref, this.mTypeAheadFind, false); pbi.addObserver(this.mTypeAheadFind.searchLinksPref, this.mTypeAheadFind, false); this.mUseTypeAheadFind = prefService.getBoolPref("accessibility.typeaheadfind"); this.mTypeAheadLinksOnly = prefService.getBoolPref("accessibility.typeaheadfind....
function initFindBar(){ getBrowser().addEventListener("keypress", onBrowserKeyPress, false); getBrowser().addEventListener("mouseup", onBrowserMouseUp, false); var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); ...
gTextToSubURIService = Components.classes["@mozilla.org/intl/texttosuburi;1"]
var fastFind = getBrowser().fastFind; fastFind.focusLinks = true; var findField = document.getElementById("find-field"); findField.addEventListener("dragdrop", findBar_OnDrop, true); this.mTextToSubURIService = Components.classes["@mozilla.org/intl/texttosuburi;1"]
function initFindBar(){ getBrowser().addEventListener("keypress", onBrowserKeyPress, false); getBrowser().addEventListener("mouseup", onBrowserMouseUp, false); var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); ...
}
},
function initFindBar(){ getBrowser().addEventListener("keypress", onBrowserKeyPress, false); getBrowser().addEventListener("mouseup", onBrowserMouseUp, false); var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); ...
gTextToSubURIService = Components.classes["@mozilla.org/intl/texttosuburi;1"] .getService(Components.interfaces.nsITextToSubURI);
function initFindBar(){ getBrowser().addEventListener("keypress", onBrowserKeyPress, false); getBrowser().addEventListener("mouseup", onBrowserMouseUp, false); var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); ...
var findField = document.getElementById("find-field"); findField.addEventListener("dragdrop", findBarOnDrop, true);
function initFindBar(){ getBrowser().addEventListener("keypress", onBrowserKeyPress, false); getBrowser().addEventListener("mouseup", onBrowserMouseUp, false); var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); ...
var firstHas = new Object; var anyHas = new Object; var allHas = new Object;
var firstHas = new Object(); var anyHas = new Object(); var allHas = new Object();
function initFontFaceMenu(menuPopup){ if (menuPopup) { var children = menuPopup.childNodes; if (!children) return; var firstHas = new Object; var anyHas = new Object; var allHas = new Object; allHas.value = false; // we need to set or clear the checkmark for each menu item since the selection ...
var fontWasFound = anyHas.value;
if (!anyHas.value) EditorGetTextProperty("font", "face", "", firstHas, anyHas, allHas); children[0].setAttribute("checked", !anyHas.value);
function initFontFaceMenu(menuPopup){ initLocalFontFaceMenu(menuPopup); if (menuPopup) { var children = menuPopup.childNodes; if (!children) return; var firstHas = { value: false }; var anyHas = { value: false }; var allHas = { value: false }; // we need to set or clear the checkmark for each menu ...
fontWasFound |= anyHas.value;
function initFontFaceMenu(menuPopup){ initLocalFontFaceMenu(menuPopup); if (menuPopup) { var children = menuPopup.childNodes; if (!children) return; var firstHas = { value: false }; var anyHas = { value: false }; var allHas = { value: false }; // we need to set or clear the checkmark for each menu ...
children[0].setAttribute("checked", !fontWasFound);
function initFontFaceMenu(menuPopup){ initLocalFontFaceMenu(menuPopup); if (menuPopup) { var children = menuPopup.childNodes; if (!children) return; var firstHas = { value: false }; var anyHas = { value: false }; var allHas = { value: false }; // we need to set or clear the checkmark for each menu ...
var firstHas = new Object; var anyHas = new Object; var allHas = new Object;
var firstHas = new Object(); var anyHas = new Object(); var allHas = new Object();
function initFontSizeMenu(menuPopup){ if (menuPopup) { var children = menuPopup.childNodes; if (!children) return; var firstHas = new Object; var anyHas = new Object; var allHas = new Object; allHas.value = false; var sizeWasFound = false; // we need to set or clear the checkmark for each menu...
reportWizard.getButton('next').setAttribute("accesskey", strbundle.getString("submitReport.accesskey"));
function initForm() { var strbundle=document.getElementById("strings"); var reportWizard = document.getElementById('reportWizard'); reportWizard.canRewind = false; document.getElementById('url').value = gURL; // Change next button to "submit report" reportWizard.getButton('next').label = strbundle.getString("subm...
"event-tracer", true );
"event-tracer", true , false );
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.primenet.com", port: 6667}, {name: "irc.cs...
this.mInspectDocumentMenu = document.getElementById("listDocuments-popup"); document.getElementById("cmdToggleChrome").setAttribute("checked", PrefUtils.getPref("inspector.showChrome"));
initialize: function(aTarget, aURI) { this.mInitTarget = aTarget; //this.initSearch(); var el = document.getElementById("bxBrowser"); el.addEventListener("pageshow", BrowserPageShowListener, true); this.setBrowser(false, true); //this.setSearch(false, true); this.mClipboardHelper = XPCU.getS...
initialize: function(aPane)
initialize: function initialize(aPane)
initialize: function(aPane) { //this.initColumns(); this.mPanel = aPane; aPane.notifyViewerReady(this); this.setAnonContent(PrefUtils.getPref("inspector.dom.showAnon"), false); this.setAccessibleNodes(PrefUtils.getPref("inspector.dom.showAccessibleNodes"), false); this.setWhitespaceNodes(PrefUtils....