rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
document.write( string + "<br>\n");
DocumentWrite(string);
function writeLineToLog( string ) { string = String(string); string = string.replace(/[<>&]/g, htmlesc); document.write( string + "<br>\n");}
document.forms[0].text_preview.value = val;
document.frm_help.text_preview.value = val;
function writePreview(val) { // writes a value to the text_preview document.forms[0].text_preview.value = val;}
function writeRichText(rte, html, css, width, height, buttons, readOnly, fullscreen) {
function writeRichText(rte, html, css, width, height, buttons, readOnly) {
function writeRichText(rte, html, css, width, height, buttons, readOnly, fullscreen) { if(isRichText){ currentRTE = rte; if(allRTEs.length > 0) allRTEs += ";"; allRTEs += rte; // CM 06/04/05 stops single quotes from messing everything up html=replaceIt(html,'\'','&apos;'); // CM 05/04/05 a bit of juggling for com...
fullscreen = false;
function writeRichText(rte, html, css, width, height, buttons, readOnly, fullscreen) { if(isRichText){ currentRTE = rte; if(allRTEs.length > 0) allRTEs += ";"; allRTEs += rte; // CM 06/04/05 stops single quotes from messing everything up html=replaceIt(html,'\'','&apos;'); // CM 05/04/05 a bit of juggling for com...
if(fullscreen) { readOnly = false; buttons = true; if(resize_fullsrcreen) window.onresize = resizeRTE; document.body.style.margin = "0px"; document.body.style.overflow = "hidden"; findSize(""); width = obj_width; if(width < iconWrapWidth) { height = (obj_height - 83); } else{ height = (obj_height - 55); } if (width <...
iconWrapWidth = iconWrapWidth-25; if (buttons && (width < minWidth)) width = minWidth; if(isIE){
function writeRichText(rte, html, css, width, height, buttons, readOnly, fullscreen) { if(isRichText){ currentRTE = rte; if(allRTEs.length > 0) allRTEs += ";"; allRTEs += rte; // CM 06/04/05 stops single quotes from messing everything up html=replaceIt(html,'\'','&apos;'); // CM 05/04/05 a bit of juggling for com...
fullscreen = false; iconWrapWidth = iconWrapWidth-25; if (buttons && (width < minWidth)) width = minWidth; if(isIE){ var tablewidth = width; } else{ var tablewidth = width + 4; } }
var tablewidth = width + 4; }
function writeRichText(rte, html, css, width, height, buttons, readOnly, fullscreen) { if(isRichText){ currentRTE = rte; if(allRTEs.length > 0) allRTEs += ";"; allRTEs += rte; // CM 06/04/05 stops single quotes from messing everything up html=replaceIt(html,'\'','&apos;'); // CM 05/04/05 a bit of juggling for com...
document.writeln('<span class="rteDiv">');
document.writeln('<span id="rteToolbar">');
function writeRichText(rte, html, css, width, height, buttons, readOnly, fullscreen) { if(isRichText){ currentRTE = rte; if(allRTEs.length > 0) allRTEs += ";"; allRTEs += rte; // CM 06/04/05 stops single quotes from messing everything up html=replaceIt(html,'\'','&apos;'); // CM 05/04/05 a bit of juggling for com...
insertImg(lblAlgnCenter,"centre.gif","rteCommand('"+rte+"','justifcenter')");
insertImg(lblAlgnCenter,"centre.gif","rteCommand('"+rte+"','justifycenter')");
function writeRichText(rte, html, css, width, height, buttons, readOnly, fullscreen) { if(isRichText){ currentRTE = rte; if(allRTEs.length > 0) allRTEs += ";"; allRTEs += rte; // CM 06/04/05 stops single quotes from messing everything up html=replaceIt(html,'\'','&apos;'); // CM 05/04/05 a bit of juggling for com...
document.writeln('<iframe id="'+rte+'" frameborder="0" style="border: 1px solid #d2d2d2; width: ' + (tablewidth - 2) + 'px; height: ' + height + 'px;" src="' + includesPath + 'blank.htm" onfocus="dlgCleanUp();"></iframe>');
document.writeln('<iframe id="'+rte+'" width="' + (tablewidth - 2) + 'px" height="' + height + 'px" frameborder=0 style="border: 1px solid #d2d2d2" src="' + includesPath + 'blank.htm" onfocus="dlgCleanUp();"></iframe>');
function writeRichText(rte, html, css, width, height, buttons, readOnly, fullscreen) { if(isRichText){ currentRTE = rte; if(allRTEs.length > 0) allRTEs += ";"; allRTEs += rte; // CM 06/04/05 stops single quotes from messing everything up html=replaceIt(html,'\'','&apos;'); // CM 05/04/05 a bit of juggling for com...
if(!fullscreen) document.writeln('<input type="hidden" id="size'+rte+'" name="size'+rte+'" value="'+height+'" style="position: absolute;left:-1000px;top:-1000px;">');
document.writeln('<input type="hidden" id="size'+rte+'" name="size'+rte+'" value="'+height+'" style="position: absolute;left:-1000px;top:-1000px;">');
function writeRichText(rte, html, css, width, height, buttons, readOnly, fullscreen) { if(isRichText){ currentRTE = rte; if(allRTEs.length > 0) allRTEs += ";"; allRTEs += rte; // CM 06/04/05 stops single quotes from messing everything up html=replaceIt(html,'\'','&apos;'); // CM 05/04/05 a bit of juggling for com...
'Content-Type: text/html; charset=' + this.characterSet + '\n' +
writeToFolder: function() { debug(this.identity + " writing to message folder" + this.feed.name + "\n"); var server = this.feed.server; this.mUnicodeConverter.charset = this.characterSet; // If the sender isn't a valid email address, quote it so it looks nicer. if (this.author && this.author.indexO...
'Content-Base: ' + this.mURL + '\n' + '\n' + this.content;
'Content-Base: ' + this.mURL + '\n'; if (this.enclosure && this.enclosure.mFileName) { var boundaryID = source.length + this.enclosure.mLength; source += 'Content-Type: multipart/mixed;\n boundary="' + ENCLOSURE_HEADER_BOUNDARY_PREFIX + boundaryID + '"' + '\n\n' + 'This is a multi-part message in MIME format.\n' + ENC...
writeToFolder: function() { debug(this.identity + " writing to message folder" + this.feed.name + "\n"); var server = this.feed.server; this.mUnicodeConverter.charset = this.characterSet; // If the sender isn't a valid email address, quote it so it looks nicer. if (this.author && this.author.indexO...
var folder = this.feed.folder ? this.feed.folder : server.rootMsgFolder.getChildNamed(this.feed.name); folder = folder.QueryInterface(Components.interfaces.nsIMsgLocalMailFolder);
folder = this.feed.folder.QueryInterface(Components.interfaces.nsIMsgLocalMailFolder);
writeToFolder: function() { debug(this.identity + " writing to message folder" + this.feed.name + "\n"); var server = this.feed.server; this.mUnicodeConverter.charset = this.characterSet; // If the sender isn't a valid email address, quote it so it looks nicer. if (this.author && this.author.indexO...
this.feed.folder.gettingNewMessages = false;
writeToFolder: function() { debug(this.identity + " writing to message folder" + this.feed.name + "\n"); var server = this.feed.server; this.mUnicodeConverter.charset = this.characterSet; // If the sender isn't a valid email address, quote it so it looks nicer. if (this.author && this.author.indexO...
else{if(xajax.responseErrorsForAlert.containsValue(r.status)){var errorString="Error: the server returned the following HTTP status: "+r.status;errorString+="\nReceived:\n"+r.responseText;alert(errorString);}
else{if(ArrayContainsValue(xajax.responseErrorsForAlert,r.status)){var errorString="Error: the server returned the following HTTP status: "+r.status;errorString+="\nReceived:\n"+r.responseText;alert(errorString);}
function Xajax(){this.DebugMessage=function(text){if(text.length > 1000)text=text.substr(0,1000)+"...\n[long response]\n...";try{if(this.debugWindow==undefined||this.debugWindow.closed==true){this.debugWindow=window.open('about:blank','xajax-debug','width=800,height=600,scrollbars=1,resizable,status');this.debugWindow....
function XHTMLHandler(processor, isAtom) {
function XHTMLHandler(processor, isAtom, waiPrefixes) {
function XHTMLHandler(processor, isAtom) { this._buf = ""; this._processor = processor; this._depth = 0; this._isAtom = isAtom;}
this._inScopeNS = []; this._waiPrefixes = waiPrefixes;
function XHTMLHandler(processor, isAtom) { this._buf = ""; this._processor = processor; this._depth = 0; this._isAtom = isAtom;}
$.triggerAJAX( $.httpData(xml) );
$.xmlActive--; if ($.xmlActive <= 0) { if ($.xmlDestroy) $.xmlDestroy(); }
$.xml = function( type, url, data, ret ) { var xml = new XMLHttpRequest(); if ( xml ) { xml.open(type || "GET", url, true); if ( data ) xml.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); xml.onreadystatechange = function() { if ( xml.readyState == 4 ) { if ( ret ) ret(xml); $.trigge...
(navigator.userAgent.toLowerCase().indexOf("msie 5") >= 0) ?
navigator.userAgent.indexOf("MSIE 5") >= 0 ?
XMLHttpRequest = function(){ return new ActiveXObject( (navigator.userAgent.toLowerCase().indexOf("msie 5") >= 0) ? "Microsoft.XMLHTTP" : "Msxml2.XMLHTTP" ); };
(navigator.userAgent.toLowerCase().indexOf('msie 5') >= 0) ?
(navigator.userAgent.toLowerCase().indexOf("msie 5") >= 0) ?
XMLHttpRequest = function(){ return new ActiveXObject( (navigator.userAgent.toLowerCase().indexOf('msie 5') >= 0) ? "Microsoft.XMLHTTP" : "Msxml2.XMLHTTP" ); };
this.data = '<?xml version="1.0" encoding="ISO-8859-1"?>\n';
this.data = '<?xml version="1.0" encoding="ISO-8859-1"?>';
function XMLWriter() { // We assume for now that all data is already in ISO-8859-1. this.data = '<?xml version="1.0" encoding="ISO-8859-1"?>\n';}
var rowIndex = this.tree.selection.currentIndex;
rowIndex = this.tree.selection.currentIndex;
function xtv_rkeypress (event){ var rec; if ("onRowCommand" in this && (event.keyCode == 13 || event.charCode == 32)) { if (!this.selection) return; var rowIndex = this.tree.selection.currentIndex; if (rowIndex == -1 || rowIndex > this.rowCount) return; ...
var rec = this.childData.locateChildByVisualRow(rowIndex);
rec = this.childData.locateChildByVisualRow(rowIndex);
function xtv_rkeypress (event){ var rec; if ("onRowCommand" in this && (event.keyCode == 13 || event.charCode == 32)) { if (!this.selection) return; var rowIndex = this.tree.selection.currentIndex; if (rowIndex == -1 || rowIndex > this.rowCount) return; ...
name = name.split("").filter(function (el) { return chars.indexOf(el) != -1; }).join("");
var asciiBytes = aBytes.filter(function (n) {return !(0x80 & n);});
name = name.split("").filter(function (el) { return chars.indexOf(el) != -1; }).join("");
return arguments.callee.__parent__ == global;
return arguments.callee.__parent__ == GLOBAL;
return function () { return arguments.callee.__parent__ == global; };
setTimeout( function(firstTextBox) { firstTextBox.focus(); }, 0, firstName );
setTimeout( function(firstTextBox) { firstTextBox.focus(); }, 0, focus );
setTimeout( function(firstTextBox) { firstTextBox.focus(); }, 0, firstName );
actual = (function (){return Array.concat.apply([], arguments)})(1,2,3);
actual = (function (){return Array.concat.apply([], arguments)})(1,2,3).toString();
actual = (function (){return Array.concat.apply([], arguments)})(1,2,3);
reportCompare(expect, actual, summary); exitFunc ('test'); }
}
(function() { <y/>.(<x/>.(false), (yield 3)) })().next(); reportCompare(expect, actual, summary); exitFunc ('test');}
setTimeout(function(aTabElt) { getBrowser().selectedTab = aTabElt; }, 0, getBrowser().addTab(url));
gBrowser.addEventListener("load", function(evt) { setTimeout(loadEventHandlers, 0, evt); }, true);
setTimeout(function(aTabElt) { getBrowser().selectedTab = aTabElt; }, 0, getBrowser().addTab(url));
var x = [function() {return "Hello";}];
x = [function() {return "Hello";}];
var x = [function() {return "Hello";}];
WINDOW_ATTRIBUTES.forEach(function(aAttr) { winData[aAttr] = this._getWindowDimension(aWindow, aAttr); }, this);
this._forEachBrowserWindow(function(aWindow) { if (aWindow != window) { aWindow.close(); } });
WINDOW_ATTRIBUTES.forEach(function(aAttr) { winData[aAttr] = this._getWindowDimension(aWindow, aAttr); }, this);
this.loadTimer=setTimeout(function () {thisHack.onDragLoadTarget(targetToBeLoaded)}, this.springLoadedMenuDelay);
setTimeout(function(aTabElt) { getBrowser().selectedTab = aTabElt; }, 0, getBrowser().addTab(url));
this.loadTimer=setTimeout(function () {thisHack.onDragLoadTarget(targetToBeLoaded)}, this.springLoadedMenuDelay);
alert("point not found");
suggest(aLoc);
gcoder.getLatLng(aLoc, function (point) { if (!point) { //mapHelper.suggest(aLoc); alert("point not found"); } else { map.setZoom(10); map.panTo(point); map.removeOverlay(marker); marker = new GMarker(point, {draggable: true}); map.addOverlay(marker); ...
this_.log( "error: " + exc );
this_.logError( exc );
function( subComp ) { try { var tzCal = getIcsService().createIcalComponent( "VCALENDAR" ); subComp = subComp.clone(); tzCal.addSubcomponent( subComp ); getIcsService...
this.closeTimer=setTimeout(function () {thisHack.onDragCloseTarget()}, this.springLoadedMenuDelay);
this.loadTimer=setTimeout(function () {thisHack.onDragLoadTarget(targetToBeLoaded)}, this.springLoadedMenuDelay);
this.closeTimer=setTimeout(function () {thisHack.onDragCloseTarget()}, this.springLoadedMenuDelay);
switch (a.length) { case 0: return new this(); case 1: return new this(a[0]); case 2: return new this(a[0], a[1]); case 3: return new this(a[0], a[1], a[2]); case 4: return new this(a[0], a[1], a[2], a[3]); case 5: return new this(a[0], a[1], a[2], a[3], a[4]); case 6: return new this(a[0], a[1], a[2], a[3], a[4], a[5]...
a = Array.prototype.splice.call(a, 0, a.length); return this.__applyConstructor__(a);
Fp.__defineProperty__('__construct__', function (a, x) { switch (a.length) { case 0: return new this(); case 1: return new this(a[0]); case 2: return new this(a[0], a[1]); case 3: return new this(a[0], a[1], a[2]); case ...
GEvent.addListener(marker, "dragend", function() { onDragEnd(); });
GDownloadUrl("/cake/js/suggest.php?s=" + loc, function(data, responseCode) { var xml = GXml.parse(data); var sug = xml.documentElement.getElementsByTagName("string"); if (sug[0].getAttribute('value') !== 0) { document.getElementById('locerrlink').innerHTML = sug[0].getAttribute('value'); document.getElementById('locerr...
GEvent.addListener(marker, "dragend", function() { onDragEnd(); });
setTimeout(function () { if (thisHack.mCurrentDragOverTarget) {thisHack.onDragRemoveFeedBack(thisHack.mCurrentDragOverTarget); thisHack.mCurrentDragOverTarget=null} thisHack.loadTimer=null; thisHack.onDragCloseTarget() }, 0);
this.closeTimer=setTimeout(function () {thisHack.onDragCloseTarget()}, this.springLoadedMenuDelay);
setTimeout(function () { if (thisHack.mCurrentDragOverTarget) {thisHack.onDragRemoveFeedBack(thisHack.mCurrentDragOverTarget); thisHack.mCurrentDragOverTarget=null} thisHack.loadTimer=null; thisHack.onDragCloseTarget() }, 0);
(this_.m_sessionId == null ||
(!this_.m_sessionId ||
function() { if (!this_.m_bNoLoginsAnymore && (this_.m_sessionId == null || this_.m_sessionId == timedOutSessionId)) { if (timedOutSessionId != null) { this_.m_sessionId = null; ...
if (timedOutSessionId != null) {
try {
function() { if (!this_.m_bNoLoginsAnymore && (this_.m_sessionId == null || this_.m_sessionId == timedOutSessionId)) { if (timedOutSessionId != null) { this_.m_sessionId = null; ...
this_.log( "session timeout; " + "prompting to reconnect." ); var prompt =getWindowWatcher().getNewPrompter(null); var bundle = getWcapBundle(); if (!prompt.confirm( bundle.GetStringFromName( "reconnectConfirmation.label"), bundle.formatStringFromName( "reconnectConfirmation.text", [this_.uri.hostPort], 1 ) )) { this_....
if (timedOutSessionId != null) { this_.log( "session timeout; " + "prompting to reconnect." ); var prompt = getWindowWatcher().getNewPrompter(null); var bundle = getWcapBundle(); if (!prompt.confirm( bundle.GetStringFromName( "reconnectConfirmation.label"), bundle.formatStringFromName( "reconnectConfirmation.text", [th...
function() { if (!this_.m_bNoLoginsAnymore && (this_.m_sessionId == null || this_.m_sessionId == timedOutSessionId)) { if (timedOutSessionId != null) { this_.m_sessionId = null; ...
if (!this_.m_bNoLoginsAnymore) this_.getSessionId_();
catch (exc) { this_.m_bNoLoginsAnymore = true; this_.logError( exc ); this_.log( "no logins anymore." ); throw exc; }
function() { if (!this_.m_bNoLoginsAnymore && (this_.m_sessionId == null || this_.m_sessionId == timedOutSessionId)) { if (timedOutSessionId != null) { this_.m_sessionId = null; ...
if (this_.m_sessionId != null) { this_.getSupportedTimezones(true ); this_.getServerTimeDiff(true ); var cals = this_.getSubscribedCalendars({}); for each ( cal in cals ) { cal.getCalProps_(true ); }
this_.getSupportedTimezones(true ); this_.getServerTimeDiff(true ); var cals = this_.getSubscribedCalendars({}); for each ( cal in cals ) { cal.getCalProps_(true );
function() { if (!this_.m_bNoLoginsAnymore && (this_.m_sessionId == null || this_.m_sessionId == timedOutSessionId)) { if (timedOutSessionId != null) { this_.m_sessionId = null; ...
GEvent.addListener(mark, "click", function() { mark.openInfoWindowHtml(aTxt); });
GEvent.addListener(marker, "dragend", function() { onDragEnd(); });
GEvent.addListener(mark, "click", function() { mark.openInfoWindowHtml(aTxt); });
setTimeout(function(loc, aloc) { gURLBar.value = loc; SetPageProxyState("valid", aloc);}, 0, location, aLocation);
setTimeout(function () { if (thisHack.mCurrentDragOverTarget) {thisHack.onDragRemoveFeedBack(thisHack.mCurrentDragOverTarget); thisHack.mCurrentDragOverTarget=null} thisHack.loadTimer=null; thisHack.onDragCloseTarget() }, 0);
setTimeout(function(loc, aloc) { gURLBar.value = loc; SetPageProxyState("valid", aloc);}, 0, location, aLocation);
aElm.addEventListener("command", ClickAndHoldStopEvent, false); aElm.addEventListener("click", ClickAndHoldStopEvent, false);
function _addClickAndHoldListenersOnElement(aElm) { aElm.addEventListener("mousedown", ClickAndHoldMouseDown, false); aElm.addEventListener("mouseup", MayStopClickAndHoldTimer, false); aElm.addEventListener("...
if (selectElem.data != 'addr_newsgroups' && selectElem.data != 'addr_followup') inputElem.disableAutocomplete = false; else
if (selectElem.value != 'addr_newsgroups' && selectElem.value != 'addr_followup') inputElem.disableAutocomplete = false; else
function _awSetAutoComplete(selectElem, inputElem){ if (selectElem.data != 'addr_newsgroups' && selectElem.data != 'addr_followup') inputElem.disableAutocomplete = false; else inputElem.disableAutocomplete = true;}
input[0].value = inputValue;
function _awSetInputAndPopup(inputValue, popupValue, parentNode, templateNode){ // remove leading spaces while (inputValue[0] == " " ) inputValue = inputValue.substring(1, inputValue.length); top.MAX_RECIPIENTS++; var newNode = templateNode.cloneNode(true); parentNode.appendChild(newNode); // we need to inse...
if (input) _awDisableAutoComplete(select[0], input[0]);
function _awSetInputAndPopup(inputValue, popupValue, parentNode, templateNode){ // remove leading spaces while (inputValue[0] == " " ) inputValue = inputValue.substring(1, inputValue.length); top.MAX_RECIPIENTS++; var newNode = templateNode.cloneNode(true); parentNode.appendChild(newNode); // we need to inse...
for (var i = 0; i < select[0].childNodes[0].childNodes.length; i ++) if (select[0].childNodes[0].childNodes[i].getAttribute("data") == popupValue) { select[0].selectedItem = select[0].childNodes[0].childNodes[i]; break; }
select[0].selectedItem = select[0].childNodes[0].childNodes[awGetSelectItemIndex(popupValue)];
function _awSetInputAndPopup(inputValue, popupValue, parentNode, templateNode){ // remove leading spaces while (inputValue[0] == " " ) inputValue = inputValue.substring(1, inputValue.length); top.MAX_RECIPIENTS++; var newNode = templateNode.cloneNode(true); parentNode.appendChild(newNode); // we need to inse...
select[0].value = popupValue;
for (var i = 0; i < select[0].childNodes[0].childNodes.length; i ++) if (select[0].childNodes[0].childNodes[i].getAttribute("data") == popupValue) { select[0].selectedItem = select[0].childNodes[0].childNodes[i]; break; }
function _awSetInputAndPopup(inputValue, popupValue, parentNode, templateNode){ // remove leading spaces while (inputValue[0] == " " ) inputValue = inputValue.substring(1, inputValue.length); top.MAX_RECIPIENTS++; var newNode = templateNode.cloneNode(true); parentNode.appendChild(newNode); // we need to inse...
var width = this._image.width * this._monitor.boxObject.width / screen.width; var height = this._image.height * this._monitor.boxObject.height / screen.height;
var width = this._image.naturalWidth * this._monitor.boxObject.width / screen.width; var height = this._image.naturalHeight * this._monitor.boxObject.height / screen.height;
_centerImage: function () { this.updateColor(this._backgroundColor); var img = this._createImage(); var width = this._image.width * this._monitor.boxObject.width / screen.width; var height = this._image.height * this._monitor.boxObject.height / screen.height; img.width = Math.floor(width)...
var messageKey = "tabs.openWarningMultiple";
var messageKey = "tabs.openWarningMultipleBranded";
_confirmOpenTabs: function(numTabsToOpen) { var pref = Components.classes["@mozilla.org/preferences-service;1"]. getService(Components.interfaces.nsIPrefBranch); const kWarnOnOpenPref = "browser.tabs.warnOnOpen"; var reallyOpen = true; if (pref.getBoolPref(kWarnOnOpenPref)) { if (numTa...
strings.getFormattedString(messageKey, [numTabsToOpen]),
strings.getFormattedString(messageKey, [numTabsToOpen, brandShortName]),
_confirmOpenTabs: function(numTabsToOpen) { var pref = Components.classes["@mozilla.org/preferences-service;1"]. getService(Components.interfaces.nsIPrefBranch); const kWarnOnOpenPref = "browser.tabs.warnOnOpen"; var reallyOpen = true; if (pref.getBoolPref(kWarnOnOpenPref)) { if (numTa...
strings.getString("tabs.openWarningPromptMe"),
strings.getFormattedString("tabs.openWarningPromptMeBranded", [brandShortName]),
_confirmOpenTabs: function(numTabsToOpen) { var pref = Components.classes["@mozilla.org/preferences-service;1"]. getService(Components.interfaces.nsIPrefBranch); const kWarnOnOpenPref = "browser.tabs.warnOnOpen"; var reallyOpen = true; if (pref.getBoolPref(kWarnOnOpenPref)) { if (numTa...
var messageKey = "tabs.openWarningMultiple";
var messageKey = "tabs.openWarningMultipleBranded";
_confirmOpenTabs: function(numTabsToOpen) { var reallyOpen = true; const kWarnOnOpenPref = "browser.tabs.warnOnOpen"; if (PREF.getBoolPref(kWarnOnOpenPref)) { if (numTabsToOpen >= PREF.getIntPref("browser.tabs.maxOpenBeforeWarn")) { var promptService = Components.classes["@m...
BookmarksUtils.getLocaleString(messageKey, [numTabsToOpen]),
BookmarksUtils.getLocaleString(messageKey, [numTabsToOpen, BookmarksUtils._brandShortName]),
_confirmOpenTabs: function(numTabsToOpen) { var reallyOpen = true; const kWarnOnOpenPref = "browser.tabs.warnOnOpen"; if (PREF.getBoolPref(kWarnOnOpenPref)) { if (numTabsToOpen >= PREF.getIntPref("browser.tabs.maxOpenBeforeWarn")) { var promptService = Components.classes["@m...
BookmarksUtils.getLocaleString("tabs.openWarningPromptMe"),
BookmarksUtils.getLocaleString("tabs.openWarningPromptMeBranded", [BookmarksUtils._brandShortName]),
_confirmOpenTabs: function(numTabsToOpen) { var reallyOpen = true; const kWarnOnOpenPref = "browser.tabs.warnOnOpen"; if (PREF.getBoolPref(kWarnOnOpenPref)) { if (numTabsToOpen >= PREF.getIntPref("browser.tabs.maxOpenBeforeWarn")) { var promptService = Components.classes["@m...
var pref = Components.classes["@mozilla.org/preferences-service;1"]. getService(Components.interfaces.nsIPrefBranch);
var pref = Cc["@mozilla.org/preferences-service;1"]. getService(Ci.nsIPrefBranch);
_confirmOpenTabs: function(numTabsToOpen) { var pref = Components.classes["@mozilla.org/preferences-service;1"]. getService(Components.interfaces.nsIPrefBranch); const kWarnOnOpenPref = "browser.tabs.warnOnOpen"; var reallyOpen = true; if (pref.getBoolPref(kWarnOnOpenPref)) { if (numTa...
var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]. getService(Components.interfaces.nsIPromptService);
var promptService = Cc["@mozilla.org/embedcomp/prompt-service;1"]. getService(Ci.nsIPromptService);
_confirmOpenTabs: function(numTabsToOpen) { var pref = Components.classes["@mozilla.org/preferences-service;1"]. getService(Components.interfaces.nsIPrefBranch); const kWarnOnOpenPref = "browser.tabs.warnOnOpen"; var reallyOpen = true; if (pref.getBoolPref(kWarnOnOpenPref)) { if (numTa...
updatesView.appendChild(element);
this._updatesView.appendChild(element);
_createAndInsertItem: function(update, state) { var element = document.createElementNS(XMLNS_XUL, "update"); updatesView.appendChild(element); element.setUpdate(update); return element; },
var img = document.createElementNS(kXULNS, "image");
var img = document.createElementNS(kXUL_NS, "image");
_createImage: function () { var img = document.createElementNS(kXULNS, "image"); img.setAttribute("src", this._image.src); return img; },
osvr.removeObserver(this, "profile-after-change");
osvr.removeObserver(this, "final-ui-startup");
_dispose: function() { // observer removal const osvr = Components.classes['@mozilla.org/observer-service;1'] .getService(Components.interfaces.nsIObserverService); osvr.removeObserver(this, "profile-change-teardown"); osvr.removeObserver(this, "xpcom-shutdown"); osvr.remov...
},
}
_formatDate: function(seconds) { var sdf = Components.classes["@mozilla.org/intl/scriptabledateformat;1"]. getService(Components.interfaces.nsIScriptableDateFormat); var date = new Date(seconds); return sdf.FormatDateTime("", sdf.dateFormatLong, sdf.timeFormatSeco...
format = this._statusFormatUnknownKB;
format = this._progressFormatUnknownKB;
_formatKBytes: function(currentKB, totalKB) { var progressHasMB = parseInt(currentKB / 1024) > 0; var totalHasMB = parseInt(totalKB / 1024) > 0; var format = ""; if (!progressHasMB && !totalHasMB) { if (!totalKB) { format = this._statusFormatUnknownKB; format = this._replaceInsert(...
format = this._statusFormatKBKB;
format = this._progressFormatKBKB;
_formatKBytes: function(currentKB, totalKB) { var progressHasMB = parseInt(currentKB / 1024) > 0; var totalHasMB = parseInt(totalKB / 1024) > 0; var format = ""; if (!progressHasMB && !totalHasMB) { if (!totalKB) { format = this._statusFormatUnknownKB; format = this._replaceInsert(...
format = this._statusFormatMBMB;
format = this._progressFormatMBMB;
_formatKBytes: function(currentKB, totalKB) { var progressHasMB = parseInt(currentKB / 1024) > 0; var totalHasMB = parseInt(totalKB / 1024) > 0; var format = ""; if (!progressHasMB && !totalHasMB) { if (!totalKB) { format = this._statusFormatUnknownKB; format = this._replaceInsert(...
format = this._statusFormatKBMB;
format = this._progressFormatKBMB;
_formatKBytes: function(currentKB, totalKB) { var progressHasMB = parseInt(currentKB / 1024) > 0; var totalHasMB = parseInt(totalKB / 1024) > 0; var format = ""; if (!progressHasMB && !totalHasMB) { if (!totalKB) { format = this._statusFormatUnknownKB; format = this._replaceInsert(...
format = this._statusFormatUnknownMB;
format = this._progressFormatUnknownMB;
_formatKBytes: function(currentKB, totalKB) { var progressHasMB = parseInt(currentKB / 1024) > 0; var totalHasMB = parseInt(totalKB / 1024) > 0; var format = ""; if (!progressHasMB && !totalHasMB) { if (!totalKB) { format = this._statusFormatUnknownKB; format = this._replaceInsert(...
#ifdef XP_MACOSX var lfm = aFile.QueryInterface(Components.interfaces.nsILocalFileMac); try { return lfm.bundleDisplayName; } catch (e) { } #endif
_getDisplayNameForFile: function (aFile) {#ifdef XP_WIN if (aFile instanceof Components.interfaces.nsILocalFileWin) { try { return aFile.getVersionInfoField("FileDescription"); } catch (e) { // fall through to the filename } }#endif // XXXben - Read the bundle name on OS X...
if (aFile instanceof Components.interfaces.nsILocalFileWin) return aFile.getVersionInfoField("FileDescription"); #else
if (aFile instanceof Components.interfaces.nsILocalFileWin) { try { return aFile.getVersionInfoField("FileDescription"); } catch (e) { } } #endif
_getDisplayNameForFile: function (aFile) {#ifdef XP_WIN if (aFile instanceof Components.interfaces.nsILocalFileWin) return aFile.getVersionInfoField("FileDescription"); #else // XXXben - Read the bundle name on OS X. var ios = Components.classes["@mozilla.org/network/io-service;1"] ...
#endif
_getDisplayNameForFile: function (aFile) {#ifdef XP_WIN if (aFile instanceof Components.interfaces.nsILocalFileWin) return aFile.getVersionInfoField("FileDescription"); #else // XXXben - Read the bundle name on OS X. var ios = Components.classes["@mozilla.org/network/io-service;1"] ...
return file.exists() ? file : null;
if (file.exists()) return file; file = getFile(KEY_APPDIR); file.append("updates"); file.append("last-update.log"); if (file.exists()) return file; return null;
_getUpdateLogFile: function() { var file = getFile(KEY_APPDIR); file.append("updates"); file.append("0"); file.append("update.log"); return file.exists() ? file : null; },
osvr.addObserver(this, "profile-after-change", false);
osvr.addObserver(this, "final-ui-startup", false);
_init: function() { // observer registration const osvr = Components.classes['@mozilla.org/observer-service;1'] .getService(Components.interfaces.nsIObserverService); osvr.addObserver(this, "profile-change-teardown", false); osvr.addObserver(this, "xpcom-shutdown", false); o...
this._convertOldPrefs();
_init: function() { engineMetadataService.init(); engineUpdateService.init(); this._addObservers(); var fileLocator = Cc["@mozilla.org/file/directory_service;1"]. getService(Ci.nsIProperties); var locations = fileLocator.get(NS_APP_SEARCH_DIR_LIST, ...
var appRow = this.element("selectedApplicationListitem");
_initFeedReaders: function() { this.updateSelectedApplicationInfo(); var wccr = Cc["@mozilla.org/embeddor.implemented/web-content-handler-registrar;1"]. getService(Ci.nsIWebContentConverterService); var handlers = wccr.getContentHandlers(TYPE_MAYBE_FEED, {}); if (handlers.length == 0) ...
appRow.parentNode.appendChild(row);
readersList.appendChild(row);
_initFeedReaders: function() { this.updateSelectedApplicationInfo(); var wccr = Cc["@mozilla.org/embeddor.implemented/web-content-handler-registrar;1"]. getService(Ci.nsIWebContentConverterService); var handlers = wccr.getContentHandlers(TYPE_MAYBE_FEED, {}); if (handlers.length == 0) ...
#ifdef HAVE_SHELL_SERVICE },
}
_launchExternalUrl: function(aURL) { var extProtocolSvc = Components.classes["@mozilla.org/uriloader/external-protocol-service;1"].getService(Components.interfaces.nsIExternalProtocolService); if (extProtocolSvc) extProtocolSvc.loadUrl(aURL);#ifdef HAVE_SHELL_SERVICE },
else { var ssEnabled = true; var prefBranch = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); try { ssEnabled = prefBranch.getBoolPref("browser.sessionstore.enabled"); } catch (ex) {} if (ssEnabled) { try { var ss = Components.classes["@mozilla.org/browser/se...
_onProfileStartup: function() { this.Sanitizer.onStartup(); // check if we're in safe mode var app = Components.classes["@mozilla.org/xre/app-info;1"].getService(Components.interfaces.nsIXULAppInfo) .QueryInterface(Components.interfaces.nsIXULRuntime); if (app.inSafeMode) { v...
else { var ssEnabled = true; var prefBranch = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch); try { ssEnabled = prefBranch.getBoolPref("browser.sessionstore.enabled"); } catch (ex) {} if (ssEnabled) { try { var ss = Components.classes["@mozilla.org/browser/se...
_onProfileStartup: function() { this.Sanitizer.onStartup(); // check if we're in safe mode var app = Components.classes["@mozilla.org/xre/app-info;1"].getService(Components.interfaces.nsIXULAppInfo) .QueryInterface(Components.interfaces.nsIXULRuntime); if (app.inSafeMode) { v...
_valueStack = []; _currValue = null; _cdata = null;
this._valueStack = []; this._currValue = null; this._cdata = null; this._foundFault = false;
_parseResponse: function(stream, length) { debug('Creating parser ... '); var parser = new SimpleXMLParser(stream, length); parser.setDocumentHandler(this); // Make sure state is clean _valueStack = []; _currValue = null; _cdata = null; debug('Cranking...
if (this._fault) {
if (this._foundFault) {
_parseResponse: function(stream, length) { debug('Creating parser ... '); var parser = new SimpleXMLParser(stream, length); parser.setDocumentHandler(this); // Make sure state is clean _valueStack = []; _currValue = null; _cdata = null; debug('Cranking...
_rgbToHex(aR, aG, aB)
_rgbToHex: function(aR, aG, aB)
_rgbToHex(aR, aG, aB) { var rHex = aR.toString(16).toUpperCase(); var gHex = aG.toString(16).toUpperCase(); var bHex = aB.toString(16).toUpperCase(); if (rHex.length == 1) rHex ='0' + rHex; if (gHex.length == 1) gHex ='0' + gHex; if (bHex.length == 1) bHex ='0' + bHex; return '#' + rHex + gHex ...
var msg = Bundle.GetStringFromName("documentDonePrefix") + elapsed + Bundle.GetStringFromName("documentDonePostfix");
var msg = gMessengerBundle.getString("documentDonePrefix") + elapsed + gMessengerBundle.getString("documentDonePostfix");
_stopMeteors : function() { this.ensureStatusFields(); // Record page loading time. var elapsed = ( (new Date()).getTime() - this.startTime ) / 1000; var msg = Bundle.GetStringFromName("documentDonePrefix") + elapsed + Bundle.GetStringFromName("documentDonePostfix"); this.sho...
var msg = gMessengerBundle.getString("documentDone"); this.showStatusString(msg); defaultStatus = msg;
this.showStatusString(defaultStatus);
_stopMeteors : function() { if(gTimelineEnabled){ gTimelineService.stopTimer("FolderLoading"); gTimelineService.markTimer("FolderLoading"); gTimelineService.resetTimer("FolderLoading"); } this.ensureStatusFields(); var msg = gMessengerBundle.getString("documentDone"); ...
if(gTimelineEnabled){ gTimelineService.stopTimer("FolderLoading"); gTimelineService.markTimer("FolderLoading"); gTimelineService.resetTimer("FolderLoading"); }
_stopMeteors : function() { this.ensureStatusFields(); // Record page loading time. var elapsed = ( (new Date()).getTime() - this.startTime ) / 1000; var msg = gMessengerBundle.getFormattedString("documentDoneTime", [ elapsed ]); this.sho...
this.statusBar.progresstext = ""; this.stopButton.setAttribute("disabled", true); this.stopMenu.setAttribute("disabled", true);
this.statusBar.label = ""; this.stopButton.setAttribute("disabled", true); this.stopMenu.setAttribute("disabled", true);
_stopMeteors : function() { this.ensureStatusFields(); // Record page loading time. var elapsed = ( (new Date()).getTime() - this.startTime ) / 1000; var msg = gMessengerBundle.getFormattedString("documentDoneTime", [ elapsed ]); this.showS...
var text = document.createElementNS(kXULNS, "label");
var text = document.createElementNS(kXUL_NS, "label");
_tileImage: function () { var bundle = document.getElementById("backgroundBundle"); this._monitor.style.backgroundColor = "white"; var text = document.createElementNS(kXULNS, "label"); text.setAttribute("id", "noPreviewAvailable"); text.setAttribute("value", bundle.getString("DesktopBackgroundNoPrevie...
var attr = " " + a.localName + '="' + unicodeToEntity(a.nodeValue) + '"';
var attr = " " + a.localName + '="' + InsUtil.unicodeToEntity(a.nodeValue) + '"';
_toXML: function(aNode, aLevel) { if (!aNode) return ""; var s = ""; var indent = ""; for (var i = 0; i < aLevel; ++i) indent += " "; var line = indent; if (aNode.nodeType == Node.ELEMENT_NODE) { line += "<" + aNode.localName; var attrIndent = ""; for (i = 0; ...
s += unicodeToEntity(aNode.data);
s += InsUtil.unicodeToEntity(aNode.data);
_toXML: function(aNode, aLevel) { if (!aNode) return ""; var s = ""; var indent = ""; for (var i = 0; i < aLevel; ++i) indent += " "; var line = indent; if (aNode.nodeType == Node.ELEMENT_NODE) { line += "<" + aNode.localName; var attrIndent = ""; for (i = 0; ...
s += line + "<!--" + unicodeToEntity(aNode.data) + "-->\n";
s += line + "<!--" + InsUtil.unicodeToEntity(aNode.data) + "-->\n";
_toXML: function(aNode, aLevel) { if (!aNode) return ""; var s = ""; var indent = ""; for (var i = 0; i < aLevel; ++i) indent += " "; var line = indent; if (aNode.nodeType == Node.ELEMENT_NODE) { line += "<" + aNode.localName; var attrIndent = ""; for (i = 0; ...
if (gAbView) gAbView.deleteSelectedCards();
var types = GetSelectedCardTypes(); if (types == kNothingSelected) return; var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptService); if (types != kCardsOnly) { var confirmDeleteMessage; if (types == kListsAndCards) confirmDeleteMessage = gAdd...
function AbDelete(){ if (gAbView) gAbView.deleteSelectedCards();}
Bundle.GetStringFromName("cannotDeleteTitle"), Bundle.GetStringFromName("cannotDeleteMessage"));
gAddressBookBundle.getString("cannotDeleteTitle"), gAddressBookBundle.getString("cannotDeleteMessage"));
function AbDeleteDirectory(){ dump("\AbDeleteDirectory from XUL\n"); var commonDialogsService = Components.classes["@mozilla.org/appshell/commonDialogs;1"].getService(); commonDialogsService = commonDialogsService.QueryInterface(Components.interfaces.nsICommonDialogs); var selArray = dirTree.se...
Bundle.GetStringFromName("confirmDeleteAddressbook");
gAddressBookBundle.getString("confirmDeleteAddressbook");
function AbDeleteDirectory(){ dump("\AbDeleteDirectory from XUL\n"); var commonDialogsService = Components.classes["@mozilla.org/appshell/commonDialogs;1"].getService(); commonDialogsService = commonDialogsService.QueryInterface(Components.interfaces.nsICommonDialogs); var selArray = dirTree.se...
var confirmDeleteAddressbook = Bundle.GetStringFromName("confirmDeleteAddressbook"); if(!window.confirm(confirmDeleteAddressbook)) return;
function AbDeleteDirectory(){ dump("\AbDeleteDirectory from XUL\n"); var selArray = dirTree.selectedItems; var count = selArray.length; debugDump("selArray.length = " + count + "\n"); if (count == 0) return; var parentArray = Components.classes["component://netscape/supports-array"].createInstance(Components.interface...
var editCardCallback = 0; if ( top.addressbook && top.addressbook.editCardCallback ) editCardCallback = top.addressbook.editCardCallback;
function AbEditCard(){ var rdf = Components.classes["component://netscape/rdf/rdf-service"].getService(); rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService); var resultsTree = document.getElementById('resultsTree'); if ( resultsTree.selectedItems && resultsTree.selectedItems.length == 1 ) { var uri = result...
card, editCardCallback);
card, top.editCardCallback);
function AbEditCard(){ var rdf = Components.classes["component://netscape/rdf/rdf-service"].getService(); rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService); var resultsTree = document.getElementById('resultsTree'); if ( resultsTree.selectedItems && resultsTree.selectedItems.length == 1 ) { var uri = result...
function AbNewCard()
function AbNewCard(abListItem)
function AbNewCard(){ var selectedAB = 0; if (dirTree && dirTree.selectedItems && (dirTree.selectedItems.length == 1)) selectedAB = dirTree.selectedItems[0].getAttribute("id"); goNewCardDialog(selectedAB);}
var selectedAB = 0; if (dirTree && dirTree.selectedItems && (dirTree.selectedItems.length == 1)) selectedAB = dirTree.selectedItems[0].getAttribute("id");
var selectedAB = GetSelectedAddressBookDirID(abListItem);
function AbNewCard(){ var selectedAB = 0; if (dirTree && dirTree.selectedItems && (dirTree.selectedItems.length == 1)) selectedAB = dirTree.selectedItems[0].getAttribute("id"); goNewCardDialog(selectedAB);}
return;
function AbNewList(){ return; var selectedAB = 0; if ( dirTree && dirTree.selectedItems && (dirTree.selectedItems.length == 1) ) selectedAB = dirTree.selectedItems[0].getAttribute('id'); window.openDialog("chrome://messenger/content/addressbook/abMailListDialog.xul", "", "chrome,resizeable=no", {se...