rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
if (!box) { dump("this should not happen, things that are hidable should be in a box\n"); continue; }
if (!box) throw "this should not happen, things that are hidable should be in a box";
function hideShowControls(serverType){ var controls = document.getElementsByAttribute("hidable", "true"); var len = controls.length; for (var i=0; i<len; i++) { var control = controls[i]; var hideFor = control.getAttribute("hidefor"); if (!hideFor || hideFor == "") { dump("this ...
for (j = 0; j < hideForTokens.length; j++) {
for (var j = 0; j < hideForTokens.length; j++) {
function hideShowControls(serverType){ var controls = document.getElementsByAttribute("hidable", "true"); var len = controls.length; for (var i=0; i<len; i++) { var control = controls[i]; var hideFor = control.getAttribute("hidefor"); if (!hideFor || hideFor == "") { dump("this ...
if (boxToShow) boxToShow.setAttribute("hidden", "true"); boxToShow = null;
function hideShowSmtpSettings(smtpServer) { var noSmtpBox = document.getElementById("noSmtp"); var haveSmtpBox = document.getElementById("haveSmtp"); var boxToHide; var boxToShow; if (smtpServer && smtpServer.hostname && smtpServer.hostname != "") { // we have a hostname, so show the static text boxTo...
function highlightDoc(color, word, win)
function highlightDoc(highBackColor, highTextColor, word, win)
function highlightDoc(color, word, win){ if (!win) win = window._content; for (var i = 0; win.frames && i < win.frames.length; i++) { highlightDoc(color, word, win.frames[i]); } var doc = win.document; if (!document) return; if (!("body" in doc)) return; var body = doc.body; var count = body.chil...
highlightDoc(color, word, win.frames[i]);
highlightDoc(highBackColor, highTextColor, word, win.frames[i]);
function highlightDoc(color, word, win){ if (!win) win = window._content; for (var i = 0; win.frames && i < win.frames.length; i++) { highlightDoc(color, word, win.frames[i]); } var doc = win.document; if (!document) return; if (!("body" in doc)) return; var body = doc.body; var count = body.chil...
if (!color) {
if (!highBackColor) {
function highlightDoc(color, word, win){ if (!win) win = window._content; for (var i = 0; win.frames && i < win.frames.length; i++) { highlightDoc(color, word, win.frames[i]); } var doc = win.document; if (!document) return; if (!("body" in doc)) return; var body = doc.body; var count = body.chil...
baseNode.setAttribute("style", "background-color: " + color + ";");
baseNode.setAttribute("style", "background-color: " + highBackColor + "; color: " + highTextColor + ";");
function highlightDoc(color, word, win){ if (!win) win = window._content; for (var i = 0; win.frames && i < win.frames.length; i++) { highlightDoc(color, word, win.frames[i]); } var doc = win.document; if (!document) return; if (!("body" in doc)) return; var body = doc.body; var count = body.chil...
SortInNewDirection(find_sort_direction(find_sort_column()));
function HistoryCommonInit(){ gHistoryTree = document.getElementById("historyTree"); gSearchBox = document.getElementById("search-box"); var treeController = new nsTreeController(gHistoryTree); gHistoryGrouping = document.getElementById("viewButton").getAttribute("selectedsort"); if (gHistoryGroupin...
dump("Updating sort..\n");
function HistoryInit() { gHistoryTree = document.getElementById("historyTree"); gDeleteByHostname = document.getElementById("cmd_deleteByHostname"); gDeleteByDomain = document.getElementById("cmd_deleteByDomain"); gHistoryBundle = document.getElementById("historyBundle"); var treeController...
debug("adding controller to tree"); tree.controllers.appendController(HistoryController);
debug("adding controller to tree\n"); var historyController = new nsTreeController(tree);
function HistoryInit() { var tree = document.getElementById("bookmarksTree"); debug("adding controller to tree"); tree.controllers.appendController(HistoryController); var children = document.getElementById('treechildren-bookmarks'); tree.selectItem(children.firstChild); tree.focus();}
tree.selectItem(children.firstChild);
if (children.firstChild) tree.selectItem(children.firstChild);
function HistoryInit() { var tree = document.getElementById("bookmarksTree"); debug("adding controller to tree"); tree.controllers.appendController(HistoryController); var children = document.getElementById('treechildren-bookmarks'); tree.selectItem(children.firstChild); tree.focus();}
debug("adding controller to tree\n");
function HistoryInit() { var tree = document.getElementById("bookmarksTree"); debug("adding controller to tree\n"); var historyController = new nsTreeController(tree); var children = document.getElementById('treechildren-bookmarks'); if (children.firstChild) tree.selectItem(children.firstChild); ...
var tree = document.getElementById("bookmarksTree");
var tree = document.getElementById("historyTree");
function HistoryInit() { var tree = document.getElementById("bookmarksTree"); var historyController = new nsTreeController(tree); var children = document.getElementById('treechildren-bookmarks'); if (children.firstChild) tree.selectItem(children.firstChild); tree.focus();}
gHistoryStatus = document.getElementById("statusbar-display");
function HistoryInit() { gHistoryTree = document.getElementById("historyTree"); gDeleteByHostname = document.getElementById("menu_deleteByHostname"); gDeleteByDomain = document.getElementById("menu_deleteByDomain"); gHistoryBundle = document.getElementById("historyBundle"); var treeController =...
if (row.value >= 0 && col.value && elt.value != "twisty" && isContainer(gHistoryTree, row.value)) gHistoryTree.treeBoxObject.view.toggleOpenState(row.value);
if (row.value >= 0 && col.value) { if (!isContainer(gHistoryTree, row.value)) OpenURL(false); else if (elt.value != "twisty") gHistoryTree.treeBoxObject.view.toggleOpenState(row.value); }
function historyOnClick(aEvent){ // This is kind of a hack but matches the currently implemented behaviour. // If a status bar is not present, assume we're in sidebar mode, and thus single clicks on containers // will open the container. Single clicks on non-containers are handled below in historyOnSelect. if (!gH...
var rowIsContainer = gHistoryGrouping != "none" && currentIndex >= 0 && isContainer(gHistoryTree, currentIndex);
var rowIsContainer = currentIndex < 0 || (gHistoryGrouping != "none" && isContainer(gHistoryTree, currentIndex));
function historyOnSelect(){ // every time selection changes, save the last hostname gLastHostname = ""; gLastDomain = ""; var match; var currentIndex = gHistoryTree.currentIndex; var rowIsContainer = gHistoryGrouping != "none" && currentIndex >= 0 && isContainer(gHistoryTree, currentIndex); var url...
if (!gHistoryStatus) { OpenURL(false); return; }
function historyOnSelect(){ if (!gHistoryStatus) { OpenURL(false); return; } // every time selection changes, save the last hostname gLastHostname = ""; gLastDomain = ""; var match; var currentIndex = gHistoryTree.currentIndex; var rowIsContainer = gHistoryGrouping == "day" ? isContain...
dump("History selection has changed..\n");
function historyOnSelect(event){ dump("History selection has changed..\n"); // every time selection changes, save the last hostname gLastHostname = ""; gLastDomain = ""; var selection = gHistoryTree.selectedItems; if (selection && selection.length > 0) { var url = selection[0].id; // mat...
var match = url.match(/.*:\/\/([^\/:]*)/);
match = url.match(/.*:\/\/([^\/:]*)/);
function historyOnSelect(event){ dump("History selection has changed..\n"); // every time selection changes, save the last hostname gLastHostname = ""; gLastDomain = ""; var selection = gHistoryTree.selectedItems; if (selection && selection.length > 0) { var url = selection[0].id; // mat...
var match = gLastHostname.match(/([^.]+\.[^.]+$)/);
match = gLastHostname.match(/([^.]+\.[^.]+$)/);
function historyOnSelect(event){ dump("History selection has changed..\n"); // every time selection changes, save the last hostname gLastHostname = ""; gLastDomain = ""; var selection = gHistoryTree.selectedItems; if (selection && selection.length > 0) { var url = selection[0].id; // mat...
gHistoryStatus.label = url; } else { gHistoryStatus.label = "";
function historyOnSelect(event){ // every time selection changes, save the last hostname gLastHostname = ""; gLastDomain = ""; var match; var selection = gHistoryTree.selectedItems; if (selection && selection.length > 0) { var url = selection[0].id; // matches scheme://(hostname)... ...
var lowerNick = this.parent.toLowerCase(user.unicodeName);
var lowerNick = me.toLowerCase(user.unicodeName);
function hostmaskMatches(user, mask) { // Need to match .nick, .user, and .host. if (!("nickRE" in mask)) { // We cache all the regexp objects, but use null if the term is // just "*", so we can skip having the object *and* the .match // later on. ...
var validChars = hostname.match(/[A-Za-z0-9._]/g);
var validChars = hostname.match(/[A-Za-z0-9.-]/g);
function hostnameIsIllegal(hostname){ // XXX TODO do a complete check. // this only checks for illegal characters in the hostname // but hostnames like "...." and "_" and ".111" will get by // my test. var validChars = hostname.match(/[A-Za-z0-9._]/g); if (!validChars || (validChars.length != hostname.length)) ...
var target = event.target;
function hrefAndLinkNodeForClickEvent(event) { var target = event.target; var href = ""; var linkNode = null; var isKeyPress = (event.type == "keypress"); if ( target instanceof HTMLAnchorElement || target instanceof HTMLAreaElement || target instanceof HTMLLinkElement ) { if (t...
var isKeyPress = (event.type == "keypress");
var isKeyCommand = (event.type == "command"); var target = isKeyCommand ? document.commandDispatcher.focusedElement : event.target;
function hrefAndLinkNodeForClickEvent(event) { var target = event.target; var href = ""; var linkNode = null; var isKeyPress = (event.type == "keypress"); if ( target instanceof HTMLAnchorElement || target instanceof HTMLAreaElement || target instanceof HTMLLinkElement ) { if (t...
&& !isKeyPress
&& !isKeyCommand
function hrefAndLinkNodeForClickEvent(event) { var target = event.target; var href = ""; var linkNode = null; var isKeyPress = (event.type == "keypress"); if ( target instanceof HTMLAnchorElement || target instanceof HTMLAreaElement || target instanceof HTMLLinkElement ) { if (t...
var type = node.GetNodeType()
var type = node.getNodeType()
function html(node){ var type = node.GetNodeType() if (type == Node.ELEMENT) { // open tag Dump("<" + node.GetTagName()) // dump the attributes if any attributes = node.GetAttributes() if (null != attributes) { var countAttrs = attributes.GetLength() var in...
Dump("<" + node.GetTagName())
dump("<" + node.getTagName())
function html(node){ var type = node.GetNodeType() if (type == Node.ELEMENT) { // open tag Dump("<" + node.GetTagName()) // dump the attributes if any attributes = node.GetAttributes() if (null != attributes) { var countAttrs = attributes.GetLength() var in...
attributes = node.GetAttributes()
attributes = node.getAttributes()
function html(node){ var type = node.GetNodeType() if (type == Node.ELEMENT) { // open tag Dump("<" + node.GetTagName()) // dump the attributes if any attributes = node.GetAttributes() if (null != attributes) { var countAttrs = attributes.GetLength() var in...
var countAttrs = attributes.GetLength()
var countAttrs = attributes.getLength()
function html(node){ var type = node.GetNodeType() if (type == Node.ELEMENT) { // open tag Dump("<" + node.GetTagName()) // dump the attributes if any attributes = node.GetAttributes() if (null != attributes) { var countAttrs = attributes.GetLength() var in...
att = attributes.Item(index)
att = attributes.item(index)
function html(node){ var type = node.GetNodeType() if (type == Node.ELEMENT) { // open tag Dump("<" + node.GetTagName()) // dump the attributes if any attributes = node.GetAttributes() if (null != attributes) { var countAttrs = attributes.GetLength() var in...
Dump(" " + att.ToString())
dump(" " + att.toString())
function html(node){ var type = node.GetNodeType() if (type == Node.ELEMENT) { // open tag Dump("<" + node.GetTagName()) // dump the attributes if any attributes = node.GetAttributes() if (null != attributes) { var countAttrs = attributes.GetLength() var in...
Dump(">")
dump(">")
function html(node){ var type = node.GetNodeType() if (type == Node.ELEMENT) { // open tag Dump("<" + node.GetTagName()) // dump the attributes if any attributes = node.GetAttributes() if (null != attributes) { var countAttrs = attributes.GetLength() var in...
if (node.HasChildNodes()) {
if (node.hasChildNodes()) {
function html(node){ var type = node.GetNodeType() if (type == Node.ELEMENT) { // open tag Dump("<" + node.GetTagName()) // dump the attributes if any attributes = node.GetAttributes() if (null != attributes) { var countAttrs = attributes.GetLength() var in...
var children = node.GetChildNodes() var length = children.GetLength() var child = children.GetNextNode()
var children = node.getChildNodes() var length = children.getLength() var child = children.getNextNode()
function html(node){ var type = node.GetNodeType() if (type == Node.ELEMENT) { // open tag Dump("<" + node.GetTagName()) // dump the attributes if any attributes = node.GetAttributes() if (null != attributes) { var countAttrs = attributes.GetLength() var in...
child = children.GetNextNode()
child = children.getNextNode()
function html(node){ var type = node.GetNodeType() if (type == Node.ELEMENT) { // open tag Dump("<" + node.GetTagName()) // dump the attributes if any attributes = node.GetAttributes() if (null != attributes) { var countAttrs = attributes.GetLength() var in...
Dump(node.data)
dump(node.data)
function html(node){ var type = node.GetNodeType() if (type == Node.ELEMENT) { // open tag Dump("<" + node.GetTagName()) // dump the attributes if any attributes = node.GetAttributes() if (null != attributes) { var countAttrs = attributes.GetLength() var in...
var type = node.GetNodeType()
var type = node.getNodeType()
function htmlString(node, indent){ var html = "" indent += " " var type = node.GetNodeType() if (type == Node.ELEMENT) { // open tag html += "\n" + indent + "<" + node.GetTagName() // dump the attributes if any attributes = node.GetAttributes() if (null != attributes) { ...
html += "\n" + indent + "<" + node.GetTagName()
html += "\n" + indent + "<" + node.getTagName()
function htmlString(node, indent){ var html = "" indent += " " var type = node.GetNodeType() if (type == Node.ELEMENT) { // open tag html += "\n" + indent + "<" + node.GetTagName() // dump the attributes if any attributes = node.GetAttributes() if (null != attributes) { ...
attributes = node.GetAttributes()
attributes = node.getAttributes()
function htmlString(node, indent){ var html = "" indent += " " var type = node.GetNodeType() if (type == Node.ELEMENT) { // open tag html += "\n" + indent + "<" + node.GetTagName() // dump the attributes if any attributes = node.GetAttributes() if (null != attributes) { ...
var countAttrs = attributes.GetLength()
var countAttrs = attributes.getLength()
function htmlString(node, indent){ var html = "" indent += " " var type = node.GetNodeType() if (type == Node.ELEMENT) { // open tag html += "\n" + indent + "<" + node.GetTagName() // dump the attributes if any attributes = node.GetAttributes() if (null != attributes) { ...
att = attributes.Item(index)
att = attributes.item(index)
function htmlString(node, indent){ var html = "" indent += " " var type = node.GetNodeType() if (type == Node.ELEMENT) { // open tag html += "\n" + indent + "<" + node.GetTagName() // dump the attributes if any attributes = node.GetAttributes() if (null != attributes) { ...
html += att.ToString()
html += att.toString()
function htmlString(node, indent){ var html = "" indent += " " var type = node.GetNodeType() if (type == Node.ELEMENT) { // open tag html += "\n" + indent + "<" + node.GetTagName() // dump the attributes if any attributes = node.GetAttributes() if (null != attributes) { ...
if (node.HasChildNodes()) {
if (node.hasChildNodes()) {
function htmlString(node, indent){ var html = "" indent += " " var type = node.GetNodeType() if (type == Node.ELEMENT) { // open tag html += "\n" + indent + "<" + node.GetTagName() // dump the attributes if any attributes = node.GetAttributes() if (null != attributes) { ...
var children = node.GetChildNodes() var length = children.GetLength() var child = children.GetNextNode()
var children = node.getChildNodes() var length = children.getLength() var child = children.getNextNode()
function htmlString(node, indent){ var html = "" indent += " " var type = node.GetNodeType() if (type == Node.ELEMENT) { // open tag html += "\n" + indent + "<" + node.GetTagName() // dump the attributes if any attributes = node.GetAttributes() if (null != attributes) { ...
child = children.GetNextNode()
child = children.getNextNode()
function htmlString(node, indent){ var html = "" indent += " " var type = node.GetNodeType() if (type == Node.ELEMENT) { // open tag html += "\n" + indent + "<" + node.GetTagName() // dump the attributes if any attributes = node.GetAttributes() if (null != attributes) { ...
html += "\n" + indent + "</" + node.GetTagName() + ">"
html += "\n" + indent + "</" + node.getTagName() + ">"
function htmlString(node, indent){ var html = "" indent += " " var type = node.GetNodeType() if (type == Node.ELEMENT) { // open tag html += "\n" + indent + "<" + node.GetTagName() // dump the attributes if any attributes = node.GetAttributes() if (null != attributes) { ...
var str = {}; convStream.readString(-1, str);
var tmpStr = {}; var str = ""; while (convStream.readString(-1, tmpStr)) { str += tmpStr.value; }
function ics_importFromStream(aStream, aCount) { var items = new Array(); // Interpret the byte-array as an utf8 string, and convert into a // javascript string. var convStream = Components.classes["@mozilla.org/intl/converter-input-stream;1"] .getService(Components.interfaces....
var calComp = icssrv.parseICS(str.value);
var calComp = icssrv.parseICS(str);
function ics_importFromStream(aStream, aCount) { var items = new Array(); // Interpret the byte-array as an utf8 string, and convert into a // javascript string. var convStream = Components.classes["@mozilla.org/intl/converter-input-stream;1"] .getService(Components.interfaces....
username: net.INITIAL_NAME});
username: net.INITIAL_NAME || net.INITIAL_NICK});
function ident_add(net, serv){ var addr, dnsRecord = this.dns.resolve(serv.hostname, 0); while (dnsRecord.hasMore()) { addr = dnsRecord.getNextAddrAsString(); this.responses.push({net: net, ip: addr, port: serv.port, username: net.INITIAL_NAME}); } if (this.respo...
gCurrentDomain = null;
function identityPageInit(){ gPrefsBundle = document.getElementById("bundle_prefs"); clearEmailTextItems(); setEmailDescriptionText(); checkForDomain(); checkForFullName(); checkForEmail(); fixPreFilledEmail();}
setNextPage("accounttype","identitypage");
function identityPageValidate(){ var name = document.getElementById("fullName").value; if (!name) { var alertText = gPrefsBundle.getString("enterName"); window.alert(alertText); return false; } if (!validateEmail()) return false; var pageData = parent.GetPageData(); setPageData(pageData, "identity", "ful...
return null;
return;
ignoreWord : function (node, offset) { if (!this.inlineSpellChecker || !this.inlineSpellChecker.enableRealTimeSpell) return null; if (!node) { var selection = this.editor.selection; node = selection.anchorNode; offset = selection.anchorOffset; } var word = this.inlineSpellChecker....
if (!loc.exists) loc = null;
loc = loc.QueryInterface( Components.interfaces.nsIFileSpec); if (loc != null) { if (!loc.exists) loc = null; }
function ImportAddress( module, success, error) { if (top.progressInfo.importInterface || top.progressInfo.intervalState) { error.data = top.bundle.GetStringFromName( 'ImportAlreadyInProgress'); return( false); } top.progressInfo.importSuccess = false; var addInterface = module.GetImportInterface( "addressbook"); if ...
error.data = top.bundle.GetStringFromName( 'ImportAlreadyInProgress');
error.data = GetBundleString( 'ImportAlreadyInProgress');
function ImportAddress( module, success, error) { if (top.progressInfo.importInterface || top.progressInfo.intervalState) { error.data = top.bundle.GetStringFromName( 'ImportAlreadyInProgress'); return( false); } top.progressInfo.importSuccess = false; var addInterface = module.GetImportInterface( "addressbook"); if ...
error.data = top.bundle.GetStringFromName( 'ImportAddressBadModule');
error.data = GetBundleString( 'ImportAddressBadModule');
function ImportAddress( module, success, error) { if (top.progressInfo.importInterface || top.progressInfo.intervalState) { error.data = top.bundle.GetStringFromName( 'ImportAlreadyInProgress'); return( false); } top.progressInfo.importSuccess = false; var addInterface = module.GetImportInterface( "addressbook"); if ...
error.data = top.bundle.GetStringFromName( 'ImportAddressNotFound');
error.data = GetBundleString( 'ImportAddressNotFound');
function ImportAddress( module, success, error) { if (top.progressInfo.importInterface || top.progressInfo.intervalState) { error.data = top.bundle.GetStringFromName( 'ImportAlreadyInProgress'); return( false); } top.progressInfo.importSuccess = false; var addInterface = module.GetImportInterface( "addressbook"); if ...
error.data = GetBundleString( 'ImportAlreadyInProgress');
error.data = gImportMsgsBundle.getString('ImportAlreadyInProgress');
function ImportAddress( module, success, error) { if (top.progressInfo.importInterface || top.progressInfo.intervalState) { error.data = GetBundleString( 'ImportAlreadyInProgress'); return( false); } top.progressInfo.importSuccess = false; var addInterface = module.GetImportInterface( "addressbook"); if (addInterface...
error.data = GetBundleString( 'ImportAddressBadModule');
error.data = gImportMsgsBundle.getString('ImportAddressBadModule');
function ImportAddress( module, success, error) { if (top.progressInfo.importInterface || top.progressInfo.intervalState) { error.data = GetBundleString( 'ImportAlreadyInProgress'); return( false); } top.progressInfo.importSuccess = false; var addInterface = module.GetImportInterface( "addressbook"); if (addInterface...
error.data = GetBundleString( 'ImportAddressNotFound');
error.data = gImportMsgsBundle.getString('ImportAddressNotFound');
function ImportAddress( module, success, error) { if (top.progressInfo.importInterface || top.progressInfo.intervalState) { error.data = GetBundleString( 'ImportAlreadyInProgress'); return( false); } top.progressInfo.importSuccess = false; var addInterface = module.GetImportInterface( "addressbook"); if (addInterface...
filePicker.init( top.window, GetBundleString( 'ImportSelectAddrDir'), Components.interfaces.nsIFilePicker.modeGetFolder);
filePicker.init( top.window, gImportMsgsBundle.getString('ImportSelectAddrDir'), Components.interfaces.nsIFilePicker.modeGetFolder);
function ImportAddress( module, success, error) { if (top.progressInfo.importInterface || top.progressInfo.intervalState) { error.data = GetBundleString( 'ImportAlreadyInProgress'); return( false); } top.progressInfo.importSuccess = false; var addInterface = module.GetImportInterface( "addressbook"); if (addInterface...
filePicker.init( top.window, GetBundleString( 'ImportSelectAddrFile'), Components.interfaces.nsIFilePicker.modeOpen);
filePicker.init( top.window, gImportMsgsBundle.getString('ImportSelectAddrFile'), Components.interfaces.nsIFilePicker.modeOpen);
function ImportAddress( module, success, error) { if (top.progressInfo.importInterface || top.progressInfo.intervalState) { error.data = GetBundleString( 'ImportAlreadyInProgress'); return( false); } top.progressInfo.importSuccess = false; var addInterface = module.GetImportInterface( "addressbook"); if (addInterface...
var meterText = top.bundle.GetStringFromName( 'MailProgressMeterText') + " " + name;
var meterText = GetBundleString( 'MailProgressMeterText') + " " + name;
function ImportDialogOKButton(){ var tree = document.getElementById('moduleList'); if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) ) { var index = tree.selectedItems[0].getAttribute('list-index'); var module = top.importService.GetModule( top.importType, index); var name = top.importService.GetMo...
{windowTitle: top.bundle.GetStringFromName( 'MailProgressTitle'),
{windowTitle: GetBundleString( 'MailProgressTitle'),
function ImportDialogOKButton(){ var tree = document.getElementById('moduleList'); if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) ) { var index = tree.selectedItems[0].getAttribute('list-index'); var module = top.importService.GetModule( top.importType, index); var name = top.importService.GetMo...
var meterText = top.bundle.GetStringFromName( 'AddrProgressMeterText') + " " + name;
var meterText = GetBundleString( 'AddrProgressMeterText') + " " + name;
function ImportDialogOKButton(){ var tree = document.getElementById('moduleList'); if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) ) { var index = tree.selectedItems[0].getAttribute('list-index'); var module = top.importService.GetModule( top.importType, index); var name = top.importService.GetMo...
{windowTitle: top.bundle.GetStringFromName( 'AddrProgressTitle'),
{windowTitle: GetBundleString( 'AddrProgressTitle'),
function ImportDialogOKButton(){ var tree = document.getElementById('moduleList'); if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) ) { var index = tree.selectedItems[0].getAttribute('list-index'); var module = top.importService.GetModule( top.importType, index); var name = top.importService.GetMo...
alert( top.bundle.GetStringFromName( 'ImportSettingsError') + name + ":\n" + error.value);
alert( GetBundleString( 'ImportSettingsError') + name + ":\n" + error.value);
function ImportDialogOKButton(){ var tree = document.getElementById('moduleList'); if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) ) { var index = tree.selectedItems[0].getAttribute('list-index'); var module = top.importService.GetModule( top.importType, index); var name = top.importService.GetMo...
alert( top.bundle.GetStringFromName( 'ImportSettingsSuccess') + name);
alert( GetBundleString( 'ImportSettingsSuccess') + name);
function ImportDialogOKButton(){ var tree = document.getElementById('moduleList'); if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) ) { var index = tree.selectedItems[0].getAttribute('list-index'); var module = top.importService.GetModule( top.importType, index); var name = top.importService.GetMo...
var meterText = GetFormattedBundleString('MailProgressMeterText', name);
meterText = GetFormattedBundleString('MailProgressMeterText', name);
function ImportDialogOKButton(){ var tree = document.getElementById('moduleList'); var deck = document.getElementById("stateDeck"); var header = document.getElementById("header"); var progressMeterEl = document.getElementById("progressMeter"); var progressStatusEl = document.getElementById("progressStatus"); var p...
meterText = GetFormattedBundleString('MailProgressMeterText', name);
meterText = gImportMsgsBundle.getFormattedString('MailProgressMeterText', [ name ]);
function ImportDialogOKButton(){ var tree = document.getElementById('moduleList'); var deck = document.getElementById("stateDeck"); var header = document.getElementById("header"); var progressMeterEl = document.getElementById("progressMeter"); var progressStatusEl = document.getElementById("progressStatus"); var p...
ShowImportResultsRaw(GetBundleString( 'ImportSettingsFailed'), null);
ShowImportResultsRaw(gImportMsgsBundle.getString('ImportSettingsFailed'), null);
function ImportDialogOKButton(){ var tree = document.getElementById('moduleList'); var deck = document.getElementById("stateDeck"); var header = document.getElementById("header"); var progressMeterEl = document.getElementById("progressMeter"); var progressStatusEl = document.getElementById("progressStatus"); var p...
ShowImportResultsRaw(GetFormattedBundleString( 'ImportSettingsSuccess', name), null);
ShowImportResultsRaw(gImportMsgsBundle.getFormattedString('ImportSettingsSuccess', [ name ]), null);
function ImportDialogOKButton(){ var tree = document.getElementById('moduleList'); var deck = document.getElementById("stateDeck"); var header = document.getElementById("header"); var progressMeterEl = document.getElementById("progressMeter"); var progressStatusEl = document.getElementById("progressStatus"); var p...
error.data = top.bundle.GetStringFromName( 'ImportAlreadyInProgress');
error.data = GetBundleString( 'ImportAlreadyInProgress');
function ImportMail( module, success, error) { if (top.progressInfo.importInterface || top.progressInfo.intervalState) { error.data = top.bundle.GetStringFromName( 'ImportAlreadyInProgress'); return( false); } top.progressInfo.importSuccess = false; var mailInterface = module.GetImportInterface( "mail"); if (mailInt...
error.data = top.bundle.GetStringFromName( 'ImportMailBadModule');
error.data = GetBundleString( 'ImportMailBadModule');
function ImportMail( module, success, error) { if (top.progressInfo.importInterface || top.progressInfo.intervalState) { error.data = top.bundle.GetStringFromName( 'ImportAlreadyInProgress'); return( false); } top.progressInfo.importSuccess = false; var mailInterface = module.GetImportInterface( "mail"); if (mailInt...
error.data = top.bundle.GetStringFromName( 'ImportMailNotFound');
error.data = GetBundleString( 'ImportMailNotFound');
function ImportMail( module, success, error) { if (top.progressInfo.importInterface || top.progressInfo.intervalState) { error.data = top.bundle.GetStringFromName( 'ImportAlreadyInProgress'); return( false); } top.progressInfo.importSuccess = false; var mailInterface = module.GetImportInterface( "mail"); if (mailInt...
error.data = GetBundleString( 'ImportAlreadyInProgress');
error.data = gImportMsgsBundle.getString('ImportAlreadyInProgress');
function ImportMail( module, success, error) { if (top.progressInfo.importInterface || top.progressInfo.intervalState) { error.data = GetBundleString( 'ImportAlreadyInProgress'); return( false); } top.progressInfo.importSuccess = false; var mailInterface = module.GetImportInterface( "mail"); if (mailInterface != nul...
error.data = GetBundleString( 'ImportMailBadModule');
error.data = gImportMsgsBundle.getString('ImportMailBadModule');
function ImportMail( module, success, error) { if (top.progressInfo.importInterface || top.progressInfo.intervalState) { error.data = GetBundleString( 'ImportAlreadyInProgress'); return( false); } top.progressInfo.importSuccess = false; var mailInterface = module.GetImportInterface( "mail"); if (mailInterface != nul...
filePicker.init( top.window, GetBundleString( 'ImportSelectMailDir'), Components.interfaces.nsIFilePicker.modeGetFolder);
filePicker.init( top.window, gImportMsgsBundle.getString('ImportSelectMailDir'), Components.interfaces.nsIFilePicker.modeGetFolder);
function ImportMail( module, success, error) { if (top.progressInfo.importInterface || top.progressInfo.intervalState) { error.data = GetBundleString( 'ImportAlreadyInProgress'); return( false); } top.progressInfo.importSuccess = false; var mailInterface = module.GetImportInterface( "mail"); if (mailInterface != nul...
error.data = GetBundleString( 'ImportMailNotFound');
error.data = gImportMsgsBundle.getString('ImportMailNotFound');
function ImportMail( module, success, error) { if (top.progressInfo.importInterface || top.progressInfo.intervalState) { error.data = GetBundleString( 'ImportAlreadyInProgress'); return( false); } top.progressInfo.importSuccess = false; var mailInterface = module.GetImportInterface( "mail"); if (mailInterface != nul...
error.value = top.bundle.GetStringFromName( 'ImportSettingsBadModule');
error.value = GetBundleString( 'ImportSettingsBadModule');
function ImportSettings( module, newAccount, error) { var setIntf = module.GetImportInterface( "settings"); if (setIntf != null) setIntf = setIntf.QueryInterface( Components.interfaces.nsIImportSettings); if (setIntf == null) { error.value = top.bundle.GetStringFromName( 'ImportSettingsBadModule'); return( false); }...
error.value = top.bundle.GetStringFromName( 'ImportSettingsNotFound');
error.value = GetBundleString( 'ImportSettingsNotFound');
function ImportSettings( module, newAccount, error) { var setIntf = module.GetImportInterface( "settings"); if (setIntf != null) setIntf = setIntf.QueryInterface( Components.interfaces.nsIImportSettings); if (setIntf == null) { error.value = top.bundle.GetStringFromName( 'ImportSettingsBadModule'); return( false); }...
error.value = top.bundle.GetStringFromName( 'ImportSettingsFailed');
error.value = GetBundleString( 'ImportSettingsFailed');
function ImportSettings( module, newAccount, error) { var setIntf = module.GetImportInterface( "settings"); if (setIntf != null) setIntf = setIntf.QueryInterface( Components.interfaces.nsIImportSettings); if (setIntf == null) { error.value = top.bundle.GetStringFromName( 'ImportSettingsBadModule'); return( false); }...
var result = setIntf.Import( newAccount);
result = setIntf.Import( newAccount);
function ImportSettings( module, newAccount, error) { var setIntf = module.GetImportInterface( "settings"); if (setIntf != null) setIntf = setIntf.QueryInterface( Components.interfaces.nsIImportSettings); if (setIntf == null) { error.value = GetBundleString( 'ImportSettingsBadModule'); return( false); } // determin...
error.value = GetBundleString( 'ImportSettingsBadModule');
error.value = gImportMsgsBundle.getString('ImportSettingsBadModule');
function ImportSettings( module, newAccount, error) { var setIntf = module.GetImportInterface( "settings"); if (setIntf != null) setIntf = setIntf.QueryInterface( Components.interfaces.nsIImportSettings); if (setIntf == null) { error.value = GetBundleString( 'ImportSettingsBadModule'); return( false); } // determin...
filePicker.init( top.window, GetBundleString( 'ImportSelectSettings'), Components.interfaces.nsIFilePicker.modeOpen);
filePicker.init( top.window, gImportMsgsBundle.getString('ImportSelectSettings'), Components.interfaces.nsIFilePicker.modeOpen);
function ImportSettings( module, newAccount, error) { var setIntf = module.GetImportInterface( "settings"); if (setIntf != null) setIntf = setIntf.QueryInterface( Components.interfaces.nsIImportSettings); if (setIntf == null) { error.value = GetBundleString( 'ImportSettingsBadModule'); return( false); } // determin...
error.value = GetBundleString( 'ImportSettingsNotFound');
error.value = gImportMsgsBundle.getString('ImportSettingsNotFound');
function ImportSettings( module, newAccount, error) { var setIntf = module.GetImportInterface( "settings"); if (setIntf != null) setIntf = setIntf.QueryInterface( Components.interfaces.nsIImportSettings); if (setIntf == null) { error.value = GetBundleString( 'ImportSettingsBadModule'); return( false); } // determin...
error.value = GetBundleString( 'ImportSettingsFailed');
error.value = gImportMsgsBundle.getString('ImportSettingsFailed');
function ImportSettings( module, newAccount, error) { var setIntf = module.GetImportInterface( "settings"); if (setIntf != null) setIntf = setIntf.QueryInterface( Components.interfaces.nsIImportSettings); if (setIntf == null) { error.value = GetBundleString( 'ImportSettingsBadModule'); return( false); } // determin...
var i; for (i = 0; i < count; i++) {
for (var i = 0; i < count; i++) {
function IndexInMap( index){ var count = top.fieldMap.mapSize; var i; for (i = 0; i < count; i++) { if (top.fieldMap.GetFieldMap( i) == index) return( true); } return( false);}
#ifdef MOZ_SAFE_BROWSING this.updateSBItems(); #endif
init: function () { this._inited = true; var advancedPrefs = document.getElementById("advancedPrefs"); var preference = document.getElementById("browser.preferences.advanced.selectedTabIndex"); if (preference.value === null) return; advancedPrefs.selectedIndex = preference.value; this.upda...
init : function() { this.throbberElement = document.getElementById("help-throbber"); },
function init() { helpSearchPanel = document.getElementById("help-search-panel"); helpTocPanel = document.getElementById("help-toc-panel"); helpIndexPanel = document.getElementById("help-index-panel"); helpGlossaryPanel = document.getElementById("help-glossary-panel"); helpBrowser = document.getElementById("help-conte...
init : function() { this.throbberElement = document.getElementById("help-throbber"); },
},
}
init: function () { var df = Components.classes["@mozilla.org/calendar/datetime-formatter;1"] .getService(Components.interfaces.calIDateTimeFormatter); var dateFormattedLong = df.formatDateLong(now()); var dateFormattedShort = df.formatDateShort(now()); // menu items ...
this.inlineSpellChecker.enableRealTimeSpell = enable;
this.editor.setSpellcheckUserOverride(enable);
Init : function (editor, enable) { this.editor = editor; this.inlineSpellChecker = editor.getInlineSpellChecker(true); this.inlineSpellChecker.enableRealTimeSpell = enable; },
this.items = window.arguments; if (this.items.length == 0) { var em = Components.classes["@mozilla.org/extensions/manager;1"] .getService(Components.interfaces.nsIExtensionManager); this.items = em.getItemList(nsIUpdateItem.TYPE_ADDON, { }); }
var em = Components.classes["@mozilla.org/extensions/manager;1"] .getService(Components.interfaces.nsIExtensionManager); this.items = em.getItemList(nsIUpdateItem.TYPE_ADDON, { });
init: function () { this.items = window.arguments; if (this.items.length == 0) { var em = Components.classes["@mozilla.org/extensions/manager;1"] .getService(Components.interfaces.nsIExtensionManager); this.items = em.getItemList(nsIUpdateItem.TYPE_ADDON, { }); } var pre...
var ios = Components.classes["@mozilla.org/network/io-service;1"]. getService(Components.interfaces.nsIIOService); var oURL = ios.newURI(serverURL, null, null); if (!oURL.scheme) oURL.scheme = 'http'; if ((oURL.scheme != 'http') && (oURL.scheme != 'https')) throw Components.Exception('Only HTTP is supported'); thi...
this._serverUrl = serverURL; this._encoding = "UTF-8";
init: function(serverURL) { var ios = Components.classes["@mozilla.org/network/io-service;1"]. getService(Components.interfaces.nsIIOService); var oURL = ios.newURI(serverURL, null, null); // Make sure it is a complete spec // Note that we don't care what the scheme is otherwi...
document.documentElement.currentPage = document.getElementById("versioninfo");
var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); if (ioService.offline) document.documentElement.currentPage = document.getElementById("offline"); else document.documentElement.currentPage = document.getElementById("versioninfo");
init: function () { var em = Components.classes["@mozilla.org/extensions/manager;1"] .getService(Components.interfaces.nsIExtensionManager); // Retrieve all items in order to sync their app compatibility information this.items = em.getItemList(nsIUpdateItem.TYPE_ADDON, { }); var pr...
this.defaultStatus = gNavigatorBundle.getString("defaultStatus");
init : function() { // XXXjag is this still needed? It's currently just "" this.defaultStatus = gNavigatorBundle.getString("defaultStatus"); this.urlBar = document.getElementById("urlbar"); this.throbberElement = document.getElementById("navigator-throbber"); this.statusMeter = document.g...
if (this._type == "install") { var enumerator = this._pm.enumerator; if (!enumerator.hasMoreElements()) this._updatePermissions(); }
init: function (aParams) { this._type = aParams.permissionType; var permissionsText = document.getElementById("permissionsText"); while (permissionsText.hasChildNodes()) permissionsText.removeChild(permissionsText.firstChild); permissionsText.appendChild(document.createTextNode(aParams.introText...
this._inited = true; var privacyPrefs = document.getElementById("privacyPrefs"); var preference = document.getElementById("browser.preferences.privacy.selectedTabIndex"); if (preference.value !== null) privacyPrefs.selectedIndex = preference.value; if (!this._sanitizer) this._sanitizer = new Sanitizer(); this._update...
this.historyDaysPrefChanged(); var self = this; function checkboxChanged() { self.onchangeHistoryDaysCheckbox(); } var historyDaysCheckbox = document.getElementById("rememberHistoryDays"); historyDaysCheckbox.addEventListener("CheckboxStateChange", checkboxChanged, false);
init: function () { this._inited = true; var privacyPrefs = document.getElementById("privacyPrefs"); var preference = document.getElementById("browser.preferences.privacy.selectedTabIndex"); if (preference.value !== null) privacyPrefs.selectedIndex = preference.value; // Update the clear butt...
this.mailSoundCheck();
init: function () { this.mPane = document.getElementById("paneGeneral"); this.startPageCheck(); this.mailSoundCheck(); },
this.updateClearNowButtonLabel();
init: function () { this.historyDaysPrefChanged(); var self = this; function checkboxChanged() { self.onchangeHistoryDaysCheckbox(); } var historyDaysCheckbox = document.getElementById("rememberHistoryDays"); historyDaysCheckbox.addEventListener("CheckboxStateChange", ...