rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
if ( prop == "opacity" ) { if (jQuery.browser.mozilla && z.now == 1) z.now = 0.9999; if (window.ActiveXObject) y.filter = "alpha(opacity=" + z.now*100 + ")"; else y.opacity = z.now; } else if ( parseInt(z.now) )
if ( prop == "opacity" ) jQuery.attr(y, "opacity", z.now); else if ( parseInt(z.now) )
fx: function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete, step: options.step }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( o...
z.custom( 0, z.el.orig[prop] );
if (prop == "opacity") z.custom(z.el.orig[prop], 1); else z.custom(0, z.el.orig[prop]);
fx: function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete, step: options.step }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( o...
if ( jQuery.browser.msie && !z.el.currentStyle.hasLayout ) y.zoom = "1";
fx: function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete, step: options.step }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( o...
y[ p ] = z.el.orig[p] + ( p == "opacity" ? "" : "px" );
if (p == "opacity" && jQuery.browser.msie) jQuery.attr(y, p, z.el.orig[p]); else y[ p ] = z.el.orig[p] + "px";
fx: function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete, step: options.step }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( o...
return z.el["orig"+prop] || z.cur();
return parseFloat( jQuery.css(z.el,prop) );
fx: function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( prop == "opacity" ) { ...
return parseFloat( jQuery.css(z.el,prop) );
return parseFloat( jQuery.curCSS(z.el,prop) ) || z.max();
fx: function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( prop == "opacity" ) { ...
y.display = "block";
z.el["orig"+prop] = this.cur();
fx: function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( prop == "opacity" ) { ...
if ( y.height == "0px" || y.width == "0px" )
if ( y.height == "0px" || y.width == "0px" ) {
fx: function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( prop == "opacity" ) { ...
if ( z.el.origheight ) y.height = z.el.origheight; if ( z.el.origwidth ) y.width = z.el.origwidth; }
fx: function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( prop == "opacity" ) { ...
z.show = function( p ){
z.show = function(){
fx: function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete, step: options.step }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( o...
if (p == "opacity" && jQuery.browser.msie)
if (p == "opacity")
fx: function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete, step: options.step }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( o...
if( z.o.complete && z.o.complete.constructor == Function ) z.o.complete.apply( z.el );
fx: function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( prop == "opacity" ) { ...
if( z.o.complete && z.o.complete.constructor == Function ) z.o.complete.apply( z.el );
fx: function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( prop == "opacity" ) { ...
z.o.show = true;
fx: function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete, step: options.step }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( o...
if ( !z.el.oldOverflow ) z.el.oldOverflow = jQuery.css( z.el, "overflow" );
fx: function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete, step: options.step }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( o...
y.overflow = z.el.oldOverflow;
y.overflow = '';
fx: function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete, step: options.step }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( o...
if ( z.o.hide ) { for ( var p in z.el.curAnim ) {
else if ( z.o.show ) y.display = ''; if ( z.o.hide || z.o.show ) for ( var p in z.el.curAnim )
fx: function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete, step: options.step }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( o...
y[ p ] = z.el.orig[p] + "px"; if ( p == 'height' || p == 'width' ) jQuery.setAuto( z.el, p ); } }
y[p] = '';
fx: function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete, step: options.step }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( o...
if ( z.el.oldOverlay == "visible" ) y.overflow = "hidden";
y.overflow = "hidden";
fx: function( elem, options, prop ){ var z = this; // The users options z.o = { duration: options.duration || 400, complete: options.complete }; // The element z.el = elem; // The styles var y = z.el.style; // Simple function for setting a style value z.a = function(){ if ( prop == "opacity" ) { ...
$.setAuto( z.el, "height" ); $.setAuto( z.el, "width" );
if ( ty != "opacity" ) { $.setAuto( z.el, "height" ); $.setAuto( z.el, "width" ); }
function fx(el,op,ty,tz){ var z = this; z.a = function(){z.el.style[ty]=z.now+z.o.unit}; z.max = function(){return z.el["io"+ty]||z.el["natural"+tz]||z.el["scroll"+tz]||z.cur()}; z.cur = function(){return parseInt($.getCSS(z.el,ty))}; z.show = function(){z.ss("block");z.custom(0,z.max())}; z.hide = function(){z.el.$o=$...
if ( not === false ) {
if ( not === false )
var g = $.grep; if ( not === false ) { g = function(a,f) {return $.grep(a,f,true);};
new Object();
tmp2 = tmp * 1.5;
function gc(){ try { // Thanks to dveditz netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect'); var jsdIDebuggerService = Components.interfaces.jsdIDebuggerService; var service = Components.classes['@mozilla.org/js/jsd/debugger-service;1']. getService(jsdIDebuggerService); serv...
dump("****** GENERAL DRAG ********\n");
if ( !gDragDropEnabled ) return; dump("****** DRAG MADE IT TO TOPLEVEL WINDOW ********\n");
function GeneralDrag ( event ) { dump("****** GENERAL DRAG ********\n"); }
text = cell.getAttribute("value");
text = cell.getAttribute("attachment");
function GenerateAttachmentsString(){ var attachments = ""; var body = document.getElementById('bucketBody'); var item, row, cell, text, colon; for (var index = 0; index < body.childNodes.length; index++) { item = body.childNodes[index]; if (item.childNodes && item.childNodes.length) { row = item.childNodes[0]; ...
return self.wrapNode(node, type) + suffix;
return PlacesUtils.wrapNode(node, type) + suffix;
function generateChunk(type) { var suffix = i < (nodes.length - 1) ? NEWLINE : ""; return self.wrapNode(node, type) + suffix; }
else if ( formName == "error2.htm" ) { showBack = true; showExit = true; showNext = false; showAgain = true; showDone = false; if ( editMode == true ) showBack = true; }
function generateControls(){ var editMode = false; var showAcctsetEdit = false; var showRegFileEdit = false; var showISPFileEdit = false; var showExit = true; var showHelp = true; var showBack = true; var showNext = true; var showConnectServer = false; var showConnectRegServer = false; var showCo...
if (gEditCard.generateDisplayName) { var displayName;
if (!gEditCard.generateDisplayName) return;
function GenerateDisplayName(){ if (gEditCard.generateDisplayName) { var displayName; var firstNameField = document.getElementById('FirstName'); var lastNameField = document.getElementById('LastName'); var displayNameField = document.getElementById('DisplayName'); if (lastNameField.value && firstNameFi...
var firstNameField = document.getElementById('FirstName'); var lastNameField = document.getElementById('LastName'); var displayNameField = document.getElementById('DisplayName');
var displayName;
function GenerateDisplayName(){ if (gEditCard.generateDisplayName) { var displayName; var firstNameField = document.getElementById('FirstName'); var lastNameField = document.getElementById('LastName'); var displayNameField = document.getElementById('DisplayName'); if (lastNameField.value && firstNameFi...
if (lastNameField.value && firstNameField.value) { displayName = (gEditCard.displayLastNameFirst) ? gAddressBookBundle.getFormattedString("lastFirstFormat", [lastNameField.value, firstNameField.value]) : gAddressBookBundle.getFormattedString("firstLastFormat", [firstNameField.value, lastNameField.value]); } else { dis...
var firstNameValue = document.getElementById("FirstName").value; var lastNameValue = document.getElementById("LastName").value; if (lastNameValue && firstNameValue) { displayName = (gEditCard.displayLastNameFirst) ? gAddressBookBundle.getFormattedString("lastFirstFormat", [lastNameValue, firstNameValue]) : gAddressBook...
function GenerateDisplayName(){ if (gEditCard.generateDisplayName) { var displayName; var firstNameField = document.getElementById('FirstName'); var lastNameField = document.getElementById('LastName'); var displayNameField = document.getElementById('DisplayName'); if (lastNameField.value && firstNameFi...
displayNameField.value = displayName;
document.getElementById("DisplayName").value = displayName;
function GenerateDisplayName(){ if (gEditCard.generateDisplayName) { var displayName; var firstNameField = document.getElementById('FirstName'); var lastNameField = document.getElementById('LastName'); var displayNameField = document.getElementById('DisplayName'); if (lastNameField.value && firstNameFi...
SetCardDialogTitle(displayName); }
SetCardDialogTitle(displayName);
function GenerateDisplayName(){ if (gEditCard.generateDisplayName) { var displayName; var firstNameField = document.getElementById('FirstName'); var lastNameField = document.getElementById('LastName'); var displayNameField = document.getElementById('DisplayName'); if (lastNameField.value && firstNameFi...
if (aMessage.type != LDAP_RES_BIND) {
if (aMessage.type != aMessage.RES_BIND) {
function generateGetTargetsBoundCallback(callerObject, outer) { function getTargetsBoundCallback(callerObject, outer) { this.callerObject = callerObject; this.outer = outer; } getTargetsBoundCallback.prototype.callerObject = null; getTarg...
dataObject.localname = aElement.localName;
generic_Get: function ( aElement ) { if( aElement ) { var dataObject = []; var wsmAttributes = aElement.getAttribute( "wsm_attributes" ); var attributes = wsm.attributes; // make a copy if( wsmAttributes != "" ) ...
dataObject.localname = aElement.localName;
generic_Get: function ( aElement ) { if( aElement ) { var dataObject = []; var wsmAttributes = aElement.getAttribute( "wsm_attributes" ); var attributes = wsm.attributes; // make a copy if( wsmAttributes != "" ) ...
if (commonDialogsService)
if (promptService)
function GenericSendMessage( msgType ){ dump("GenericSendMessage from XUL\n"); dump("Identity = " + getCurrentIdentity() + "\n"); if (msgCompose != null) { var msgCompFields = msgCompose.compFields; if (msgCompFields) { Recipients2CompFields(msgCompFields); var subject = document.getElementById("msgSub...
if (commonDialogsService.Prompt(
if (promptService.Prompt(
function GenericSendMessage( msgType ){ dump("GenericSendMessage from XUL\n"); dump("Identity = " + getCurrentIdentity() + "\n"); if (msgCompose != null) { var msgCompFields = msgCompose.compFields; if (msgCompFields) { Recipients2CompFields(msgCompFields); var subject = document.getElementById("msgSub...
"", 0,
function GenericSendMessage( msgType ){ dump("GenericSendMessage from XUL\n"); dump("Identity = " + getCurrentIdentity() + "\n"); if (msgCompose != null) { var msgCompFields = msgCompose.compFields; if (msgCompFields) { Recipients2CompFields(msgCompFields); var subject = document.getElementById("msgSub...
"askSendFormatDialog", "chrome,modal,centerscreen",
"askSendFormatDialog", "chrome,modal,titlebar,centerscreen",
function GenericSendMessage( msgType ){ dump("GenericSendMessage from XUL\n"); dump("Identity = " + getCurrentIdentity() + "\n"); if (msgCompose != null) { var msgCompFields = msgCompose.compFields; if (msgCompFields) { Recipients2CompFields(msgCompFields); var subject = document.getElementById("ms...
jQuery.get = function( url, callback, type ) { jQuery.ajax( "GET", url, null, function(r) { if ( callback ) callback( jQuery.httpData(r,type) ); }); };
get: function( url, data, callback, type ) { if ( data.constructor == Function ) { callback = data; data = null; } if ( data ) url += "?" + jQuery.param(data); jQuery.ajax( "GET", url, null, function(r) { if ( callback ) callback( jQuery.httpData(r,type) ); }); },
jQuery.get = function( url, callback, type ) { // Build and start the HTTP Request jQuery.ajax( "GET", url, null, function(r) { if ( callback ) callback( jQuery.httpData(r,type) ); });};
jQuery.ajax({
return jQuery.ajax({
get: function( url, data, callback, type, ifModified ) { // shift arguments if data argument was ommited if ( data && data.constructor == Function ) { callback = data; data = null; } // Delegate jQuery.ajax({ url: url, data: data, success: callback, dataType: type, ifModified: ifModified }); },
if ( data.constructor == Function ) {
if ( data && data.constructor == Function ) {
get: function( url, data, callback, type, ifModified ) { if ( data.constructor == Function ) { type = callback; callback = data; data = null; } // append ? + data or & + data, in case there are already params if ( data ) url += ((url.indexOf("?") > -1) ? "&" : "?") + jQuery.param(data); // Build and sta...
$.get = function( url, ret, type ) { $.xml( "GET", url, null, function(r) { if ( ret ) { ret( $.httpData(r,type) ); }
$.get = function( url, callback, type ) { $.ajax( "GET", url, null, function(r) { if ( callback ) callback( $.httpData(r,type) );
$.get = function( url, ret, type ) { $.xml( "GET", url, null, function(r) { if ( ret ) { ret( $.httpData(r,type) ); } });};
type = callback;
get: function( url, data, callback, type, ifModified ) { // shift arguments if data argument was ommited if ( data && data.constructor == Function ) { type = callback; callback = data; data = null; } // Delegate jQuery.ajax({ url: url, data: data, success: callback, dataType: type, ifModified: ifM...
return i === null ? this.cur : this.cur[i];
return typeof i == 'undefined' ? this.cur : this.cur[i];
get: function(i) { return i === null ? this.cur : this.cur[i]; },
if ( num && num.constructor == Array ) {
return num == undefined ?
get: function( num ) { // Watch for when an array (of elements) is passed in if ( num && num.constructor == Array ) { // Use a tricky hack to make the jQuery object // look and feel like an array this.length = 0; [].push.apply( this, num ); return this; } else return num == undefined ? // Return a 'c...
this.length = 0; [].push.apply( this, num );
jQuery.merge( this, [] ) :
get: function( num ) { // Watch for when an array (of elements) is passed in if ( num && num.constructor == Array ) { // Use a tricky hack to make the jQuery object // look and feel like an array this.length = 0; [].push.apply( this, num ); return this; } else return num == undefined ? // Return a 'c...
return this; } else return num == undefined ? jQuery.merge( this, [] ) : this[num];
this[num];
get: function( num ) { // Watch for when an array (of elements) is passed in if ( num && num.constructor == Array ) { // Use a tricky hack to make the jQuery object // look and feel like an array this.length = 0; [].push.apply( this, num ); return this; } else return num == undefined ? // Return a 'c...
get: function( url, data, callback, type ) {
get: function( url, data, callback, type, ifModified ) {
get: function( url, data, callback, type ) { if ( data.constructor == Function ) { callback = data; data = null; } if ( data ) url += "?" + jQuery.param(data); // Build and start the HTTP Request jQuery.ajax( "GET", url, null, function(r) { if ( callback ) callback( jQuery.httpData(r,type) ); }); },
jQuery.ajax( "GET", url, null, function(r) { if ( callback ) callback( jQuery.httpData(r,type) ); });
jQuery.ajax( "GET", url, null, function(r, status) { if ( callback ) callback( jQuery.httpData(r,type), status ); }, ifModified);
get: function( url, data, callback, type ) { if ( data.constructor == Function ) { callback = data; data = null; } if ( data ) url += "?" + jQuery.param(data); // Build and start the HTTP Request jQuery.ajax( "GET", url, null, function(r) { if ( callback ) callback( jQuery.httpData(r,type) ); }); },
jQuery.map( this, function(a){ return a } ) :
jQuery.merge( this, [] ) :
get: function( num ) { // Watch for when an array (of elements) is passed in if ( num && num.constructor == Array ) { // Use a tricky hack to make the jQuery object // look and feel like an array this.length = 0; [].push.apply( this, num ); return this; } else return num == undefined ? // Return a...
if ( data ) url += "?" + jQuery.param(data);
if ( data ) url += ((url.indexOf("?") > -1) ? "&" : "?") + jQuery.param(data);
get: function( url, data, callback, type, ifModified ) { if ( data.constructor == Function ) { type = callback; callback = data; data = null; } if ( data ) url += "?" + jQuery.param(data); // Build and start the HTTP Request jQuery.ajax( "GET", url, null, function(r, status) { if ( callback ) callback...
return typeof i == 'undefined' ? this.cur : this.cur[i]; },
return i == undefined ? this.cur : this.cur[i]; },
get: function(i) { return typeof i == 'undefined' ? this.cur : this.cur[i]; },
return nsJSComponentManager.getService("component:
return nsJSComponentManager.getService("@mozilla.org/widget/dragservice;1",
get mDragService() { return nsJSComponentManager.getService("component://netscape/widget/dragservice", "nsIDragService"); },
get _ios() { if (!this.__ios) { this.__ios = Cc["@mozilla.org/network/io-service;1"]. getService(Ci.nsIIOService);
get _livemarks() { if (!this.__livemarks) { this.__livemarks = Cc["@mozilla.org/browser/livemark-service;1"]. getService(Ci.nsILivemarkService);
get _ios() { if (!this.__ios) { this.__ios = Cc["@mozilla.org/network/io-service;1"]. getService(Ci.nsIIOService); } return this.__ios; },
return this.__ios;
return this.__livemarks;
get _ios() { if (!this.__ios) { this.__ios = Cc["@mozilla.org/network/io-service;1"]. getService(Ci.nsIIOService); } return this.__ios; },
var filename = ""; var name = this.mContentDisposition; if (name) { const filenamePrefix = "filename="; var ix = name.indexOf(filenamePrefix); if (ix >= 0) { ix += filenamePrefix.length; filename = name.substr(ix, name.length); if (filename != "") { ix = filename.lastIndexOf(";"); if (ix > 0) filename = filename.subst...
var fileName = ""; if (this.mContentDisposition) { const mhpContractID = "@mozilla.org/network/mime-hdrparam;1" const mhpIID = Components.interfaces.nsIMIMEHeaderParam; const mhp = Components.classes[mhpContractID].getService(mhpIID); var dummy = { value: null }; var charset = getCharsetforSave(null); try { fileName ...
get suggestedFileName() { var filename = ""; var name = this.mContentDisposition; if (name) { const filenamePrefix = "filename="; var ix = name.indexOf(filenamePrefix); if (ix >= 0) { // Adjust ix to point to start of actual name ix += filenamePrefix.length; filename = na...
return filename;
fileName = fileName.replace(/^"|"$/g, ""); return fileName;
get suggestedFileName() { var filename = ""; var name = this.mContentDisposition; if (name) { const filenamePrefix = "filename="; var ix = name.indexOf(filenamePrefix); if (ix >= 0) { // Adjust ix to point to start of actual name ix += filenamePrefix.length; filename = na...
get value() { return document.getElementById("searchFilter").value;
get value() { if (!this._value) { if (this._pb.prefHasUserValue(this._pref)) { var valueString = this._pb.getCharPref(this._pref); this._value = this._serializable.deserialize(valueString); } else this._value = this._defaultValue; } return this._value;
get value() { return document.getElementById("searchFilter").value; },
throw Components.results.NS_NOT_IMPLEMENTED;
throw Components.results.NS_ERROR_NOT_IMPLEMENTED;
get icalComponent() { throw Components.results.NS_NOT_IMPLEMENTED; },
mIsAllDay: false, get isAllDay() { return this.mIsAllDay; }, set isAllDay(v) { if (this.mImmutable) throw Components.results.NS_ERROR_FAILURE; else this.mIsAllDay = v; },
get icalComponent() { const icssvc = Components. classes["@mozilla.org/calendar/ics-service;1"]. getService(Components.interfaces.calIICSService); var icalcomp = icssvc.createIcalComponent(ICAL.VEVENT_COMPONENT); this.fillIcalComponentFromBase(icalcomp); this.mapPropsToICS(icalcomp, this.icsEventPropMap); return icalco...
mIsAllDay: false, get isAllDay() { return this.mIsAllDay; }, set isAllDay(v) { if (this.mImmutable) throw Components.results.NS_ERROR_FAILURE; else this.mIsAllDay = v; },
get icalComponent() { const icssvc = Components. classes["@mozilla.org/calendar/ics-service;1"]. getService(Components.interfaces.calIICSService); var icalcomp = icssvc.createIcalComponent("VTODO"); this.fillIcalComponentFromBase(icalcomp); this.mapPropsToICS(icalcomp, this.icsEventPropMap); var bagenum = this.mProper...
get entryDate() { return this.getProperty("DTSTART"); }
get icalComponent() { const icssvc = Components. classes["@mozilla.org/calendar/ics-service;1"]. getService(Components.interfaces.calIICSService); var icalcomp = icssvc.createIcalComponent("VTODO"); this.fillIcalComponentFromBase(icalcomp); this.mapPropsToICS(icalcomp, ...
var percentprop = icssvc.createIcalProperty("PERCENT-COMPLETE"); percentprop.stringValue = this.mPercentComplete; icalcomp.addProperty(percentprop);
if (this.mPercentComplete != undefined) { var percentprop = icssvc.createIcalProperty("PERCENT-COMPLETE"); percentprop.stringValue = this.mPercentComplete; icalcomp.addProperty(percentprop); }
get icalComponent() { const icssvc = Components. classes["@mozilla.org/calendar/ics-service;1"]. getService(Components.interfaces.calIICSService); var icalcomp = icssvc.createIcalComponent("VTODO"); this.fillIcalComponentFromBase(icalcomp); this.mapPropsToICS(icalcomp, ...
get filterInrex() { return this.mFilterIndex; },
get filterIndex() { return this.mFilterIndex; },
get filterInrex() { return this.mFilterIndex; },
return nsJSComponentManager.getService("component:
return nsJSComponentManager.getService("@mozilla.org/widget/clipboard;1",
get mClipboard() { return nsJSComponentManager.getService("component://netscape/widget/clipboard", "nsIClipboard"); },
if (ix > 0) {
if (ix >= 0) {
get suggestedFileName() { var filename = ""; var name = this.mContentDisposition; if (name) { const filenamePrefix = "filename="; var ix = name.indexOf(filenamePrefix); if (ix > 0) { // Adjust ix to point to start of actual name ix += filenamePrefix.length; filename = nam...
filename = filename.replace(/^"|"$/g, "");
get suggestedFileName() { var filename = ""; var name = this.mContentDisposition; if (name) { const filenamePrefix = "filename="; var ix = name.indexOf(filenamePrefix); if (ix > 0) { // Adjust ix to point to start of actual name ix += filenamePrefix.length; filename = nam...
var currentZoom = Math.round(getMarkupDocumentViewer().textZoom * 100); if (this.indexOf(currentZoom) == -1) { if (currentZoom != this.factorOther) { this.factorOther = currentZoom; this.factorAnchor = this.factorOther;
var currentZoom; try { currentZoom = Math.round(getMarkupDocumentViewer().textZoom * 100); if (this.indexOf(currentZoom) == -1) { if (currentZoom != this.factorOther) { this.factorOther = currentZoom; this.factorAnchor = this.factorOther; }
get textZoom() { var currentZoom = Math.round(getMarkupDocumentViewer().textZoom * 100); if (this.indexOf(currentZoom) == -1) { if (currentZoom != this.factorOther) { this.factorOther = currentZoom; this.factorAnchor = this.factorOther; } } return currentZoom; },
} catch (e) { currentZoom = 100;
get textZoom() { var currentZoom = Math.round(getMarkupDocumentViewer().textZoom * 100); if (this.indexOf(currentZoom) == -1) { if (currentZoom != this.factorOther) { this.factorOther = currentZoom; this.factorAnchor = this.factorOther; } } return currentZoom; },
get icalComponent() { const icssvc = Components. classes["@mozilla.org/calendar/ics-service;1"]. getService(Components.interfaces.calIICSService); var icalcomp = icssvc.createIcalComponent("VEVENT"); this.fillIcalComponentFromBase(icalcomp); this.mapPropsToICS(icalcomp, this.icsEventPropMap); var bagenum = this.mPrope...
get startDate() { return this.getProperty("DTSTART"); }
get icalComponent() { const icssvc = Components. classes["@mozilla.org/calendar/ics-service;1"]. getService(Components.interfaces.calIICSService); var icalcomp = icssvc.createIcalComponent("VEVENT"); this.fillIcalComponentFromBase(icalcomp); this.mapPropsToICS(icalcomp,...
return nsJSComponentManager.getService("component:
return nsJSComponentManager.getService("@mozilla.org/preferences;1", "nsIPref");
get mPrefService() { return nsJSComponentManager.getService("component://netscape/preferences", "nsIPref"); },
document.getElementById("bookmarks-ptf"), document.getElementById("bookmarks-menu").parentNode
document.getAnonymousElementByAttribute(bt , "anonid", "bookmarks-ptf"), document.getElementById("bookmarks-menu").parentNode, document.getAnonymousElementByAttribute(bt , "class", "chevron").parentNode
get mObservers () { if (!this._observers) { this._observers = [ document.getElementById("bookmarks-ptf"), document.getElementById("bookmarks-menu").parentNode ] } return this._observers; },
var checked = wsm.contentArea.document.getElementById( aElementID ).checked;
var checked = element.checked;
get_Checkbox: function ( aElementID ) { var element = wsm.contentArea.document.getElementById( aElementID ); var dataObject = wsm.generic_Get( element ); if( dataObject ) { var checked = wsm.contentArea.document.getElementById( aElementID ).checked; ...
return;
return null;
function get_destination_channel(destinationDirectoryLocation, fileName, login, password){ try { var ioService = GetIOService(); if (!ioService) { return; } // create a channel for the destination location var fullurl = destinationDirectoryLocation + fileName; destChannel = create_channel_f...
dump_tree(content);
function get_iframe(content) { debug("---------- get_iframe"); dump_tree(content); var unsandboxed_iframe = content.childNodes.item(1); var sandboxed_iframe = content.childNodes.item(2); if (unsandboxed_iframe.getAttribute('src').match(/^chrome:/)) { return unsandboxed_iframe; } else { return sandboxed_ifra...
url = url.replace(/%VERSION%/g, SIDEBAR_VERSION);
url = url.replace(/%SIDEBAR_VERSION%/g, SIDEBAR_VERSION);
function get_remote_datasource_url() { var url = ''; var prefs = Components.classes['component://netscape/preferences']; if (prefs) { prefs = prefs.getService(); } if (prefs) { prefs = prefs.QueryInterface(Components.interfaces.nsIPref); } if (prefs) { try { url = prefs.CopyCharPref("sidebar.custom...
var prefs = Components.classes['component:
var prefs = Components.classes['@mozilla.org/preferences;1'];
function get_remote_datasource_url() { var url = ''; var prefs = Components.classes['component://netscape/preferences']; if (prefs) { prefs = prefs.getService(); } if (prefs) { prefs = prefs.QueryInterface(Components.interfaces.nsIPref); } if (prefs) { var locale; try { url = prefs.CopyCharPref(...
var locale_progid = 'component: var syslocale = Components.classes[locale_progid].getService();
var locale_contractid = '@mozilla.org/intl/nslocaleservice;1'; var syslocale = Components.classes[locale_contractid].getService();
function get_remote_datasource_url() { var url = ''; var prefs = Components.classes['component://netscape/preferences']; if (prefs) { prefs = prefs.getService(); } if (prefs) { prefs = prefs.QueryInterface(Components.interfaces.nsIPref); } if (prefs) { var locale; try { url = prefs.CopyCharPref(...
var file_url = Components.classes["@mozilla.org/network/standard-url;1"].createInstance(Components.interfaces.nsIFileURL); file_url.file = sidebar_file; return file_url.spec;
return sidebar_file.URL;
function get_sidebar_datasource_uri() { try { var sidebar_file = sidebar_get_panels_file(); var file_url = Components.classes["@mozilla.org/network/standard-url;1"].createInstance(Components.interfaces.nsIFileURL); file_url.file = sidebar_file; return file_url.spec; } catch (ex) { // This should not ha...
function get_sidebar_datasource_uri(panels_file_id) {
function get_sidebar_datasource_uri() {
function get_sidebar_datasource_uri(panels_file_id) { try { var locator_interface = Components.interfaces.nsIFileLocator; var locator_prog_id = 'component://netscape/filelocator'; var locator_service = Components.classes[locator_prog_id].getService(); // use the fileLocator to look in the profile directory...
var locator_interface = Components.interfaces.nsIFileLocator; var locator_prog_id = 'component: var locator_service = Components.classes[locator_prog_id].getService(); locator_service = locator_service.QueryInterface(locator_interface); var sidebar_file = locator_service.GetFileLocation(panels_file_id); if (!sid...
var sidebar_file = sidebar_get_panels_file();
function get_sidebar_datasource_uri(panels_file_id) { try { var locator_interface = Components.interfaces.nsIFileLocator; var locator_prog_id = 'component://netscape/filelocator'; var locator_service = Components.classes[locator_prog_id].getService(); // use the fileLocator to look in the profile directory...
var file_url = Components.classes["component:
var file_url = Components.classes["@mozilla.org/network/standard-url;1"].createInstance(Components.interfaces.nsIFileURL);
function get_sidebar_datasource_uri() { try { var sidebar_file = sidebar_get_panels_file(); var file_url = Components.classes["component://netscape/network/standard-url"].createInstance(Components.interfaces.nsIFileURL); file_url.file = sidebar_file; return file_url.spec; } catch (ex) { // This should ...
dataObject.value = wsm.contentArea.document.getElementById( aElementID ).value;
dataObject.value = element.value;
get_Textbox: function ( aElementID ) { var element = wsm.contentArea.document.getElementById( aElementID ); var dataObject = wsm.generic_Get( element ); if( dataObject ) { dataObject.value = wsm.contentArea.document.getElementById( aElementID ).value; ...
var rdf_uri = "component:
var rdf_uri = "@mozilla.org/rdf/rdf-service;1";
function getAbsoluteID(root, node){ var url = node.getAttribute("ref"); if ((url == null) || (url == "")) { url = node.getAttribute("id"); } try { var rootNode = document.getElementById(root); var ds = null; if (rootNode) { ds = rootNode.database; }...
var rdf = Components.classes["component:
var rdf = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService();
function getAbsoluteID(root, node){ var url = node.getAttribute("ref"); if ((url == null) || (url == "")) { url = node.getAttribute("id"); } try { var rootNode = document.getElementById(root); var ds = null; if (rootNode) { ds = rootNode.database; } // add support for anonymous resources such as Internet Searc...
var prop = rdf.GetResource(NC + "URL",
var prop = rdf.GetResource(NC_NS + "URL",
function getAbsoluteID(root, node){ var url = node.getAttribute("ref"); if ((url == null) || (url == "")) { url = node.getAttribute("id"); } try { var rootNode = document.getElementById(root); var ds = null; if (rootNode) { ds = rootNode.database; }...
var body = document.getElementById('dirTreeBody')
var tree = document.getElementById('dirTree'); if ( tree ) { var body = tree.getElementById('dirTreeBody')
function GetAddressBooksAndURIs(abArray, uriArray){ var numAddressBooks = 0; var selected = 0; var body = document.getElementById('dirTreeBody') if ( body ) { var treeitems = body.getElementsByTagName('treeitem'); if ( treeitems ) { var name, uri, item; for ( var index = 0; index < treeitems.length; index++ )...
if ( body ) { var treeitems = body.getElementsByTagName('treeitem'); if ( treeitems )
if ( body )
function GetAddressBooksAndURIs(abArray, uriArray){ var numAddressBooks = 0; var selected = 0; var body = document.getElementById('dirTreeBody') if ( body ) { var treeitems = body.getElementsByTagName('treeitem'); if ( treeitems ) { var name, uri, item; for ( var index = 0; index < treeitems.length; index++ )...
var name, uri, item; for ( var index = 0; index < treeitems.length; index++ ) { item = treeitems[index]; uri = item.getAttribute('id'); if ( item.getAttribute('selected') ) selected = numAddressBooks; var buttons = item.getElementsByTagName('titledbutton'); if ( uri && buttons && buttons.length == 1 ) { name = buttons...
var treeitems = body.getElementsByTagName('treeitem'); if ( treeitems ) { var name, uri, item, selectedItem = 0; if ( tree.selectedItems && (tree.selectedItems.length == 1) ) selectedItem = tree.selectedItems[0]; for ( var index = 0; index < treeitems.length; index++ ) { item = treeitems[index]; uri = item.getAttribu...
function GetAddressBooksAndURIs(abArray, uriArray){ var numAddressBooks = 0; var selected = 0; var body = document.getElementById('dirTreeBody') if ( body ) { var treeitems = body.getElementsByTagName('treeitem'); if ( treeitems ) { var name, uri, item; for ( var index = 0; index < treeitems.length; index++ )...
abArray[numAddressBooks] = name; uriArray[numAddressBooks] = uri; numAddressBooks++;
name = buttons[0].getAttribute('value'); if ( name ) { abArray[numAddressBooks] = name; uriArray[numAddressBooks] = uri; numAddressBooks++; }
function GetAddressBooksAndURIs(abArray, uriArray){ var numAddressBooks = 0; var selected = 0; var body = document.getElementById('dirTreeBody') if ( body ) { var treeitems = body.getElementsByTagName('treeitem'); if ( treeitems ) { var name, uri, item; for ( var index = 0; index < treeitems.length; index++ )...
var ary = aliasDefs[i].split(/\s*=\s*/); if (ary[0] == commandName) return [i, ary[1]];
var ary = aliasDefs[i].match(/^(.*?)\s*=\s*(.*)$/); if (ary[1] == commandName) return [i, ary[2]];
function getAlias(commandName) { for (var i = 0; i < aliasDefs.length; ++i) { var ary = aliasDefs[i].split(/\s*=\s*/); if (ary[0] == commandName) return [i, ary[1]]; } return null; };
for ( var i = 0; i < s.length; i++ ) {
for ( var i = 0; i < s.length; i++ )
$.getAll = function(o,r) { r = r || []; var s = o.childNodes; for ( var i = 0; i < s.length; i++ ) { if ( s[i].nodeType == 1 ) { r[r.length] = s[i]; $.getAll( s[i], r ); } } return r;};
}
$.getAll = function(o,r) { r = r || []; var s = o.childNodes; for ( var i = 0; i < s.length; i++ ) { if ( s[i].nodeType == 1 ) { r[r.length] = s[i]; $.getAll( s[i], r ); } } return r;};
commands = ["find", "separator", "cut", "copy", "paste", "delete"];
commands = ["find", "separator", "bm_cut", "bm_copy", "bm_paste", "bm_delete", "separator", "newfolder"];
getAllCmds: function (aNodeID) { var type = this.resolveType(aNodeID); var commands = []; switch (type) { case "http://home.netscape.com/NC-rdf#BookmarkSeparator": commands = ["find", "separator", "cut", "copy", "paste", "delete"]; break; case "http://home.netscape.com/NC-r...
commands = ["open", "find", "separator", "cut", "copy", "paste", "delete", "separator", "rename", "separator", "properties"];
commands = ["open", "find", "separator", "bm_cut", "bm_copy", "bm_paste", "bm_delete", "separator", "rename", "separator", "newfolder", "separator", "properties"];
getAllCmds: function (aNodeID) { var type = this.resolveType(aNodeID); var commands = []; switch (type) { case "http://home.netscape.com/NC-rdf#BookmarkSeparator": commands = ["find", "separator", "cut", "copy", "paste", "delete"]; break; case "http://home.netscape.com/NC-r...
"cut", "copy", "paste", "delete", "separator", "rename",
"bm_cut", "bm_copy", "bm_paste", "bm_delete", "separator", "rename",
getAllCmds: function (aNodeID) { var type = this.resolveType(aNodeID); var commands = []; switch (type) { case "http://home.netscape.com/NC-rdf#BookmarkSeparator": commands = ["find", "separator", "cut", "copy", "paste", "delete"]; break; case "http://home.netscape.com/NC-r...
commands = ["open", "find", "separator", "copy", "separator", "rename",
commands = ["open", "find", "separator", "bm_copy", "separator", "rename",
getAllCmds: function (aNodeID) { var type = this.resolveType(aNodeID); var commands = []; switch (type) { case "http://home.netscape.com/NC-rdf#BookmarkSeparator": commands = ["find", "separator", "cut", "copy", "paste", "delete"]; break; case "http://home.netscape.com/NC-r...
commands = ["open", "find", "separator", "copy"];
commands = ["open", "find", "separator", "bm_copy"];
getAllCmds: function (aNodeID) { var type = this.resolveType(aNodeID); var commands = []; switch (type) { case "http://home.netscape.com/NC-rdf#BookmarkSeparator": commands = ["find", "separator", "cut", "copy", "paste", "delete"]; break; case "http://home.netscape.com/NC-r...
var doc = this.mDOMView.rootNode;
var doc = this.mDOMView.rootNode.ownerDocument;
getAllDocuments: function() { var doc = this.mDOMView.rootNode; // The node is the top-level document node. var results = [doc]; this.findDocuments(doc, results); return results; },
if (linkNode.href) return linkNode.href; else if (linkNode.name) return linkNode.name return null;
return linkNode.href || linkNode.name || null;
getAnchorUrl: function(linkNode) { if (linkNode.href) return linkNode.href; else if (linkNode.name) return linkNode.name return null; },
dump( "there's no case for "+document.getElementById( "event-filter-menulist" ).selectedItem.value );
dump( "there's no case for "+document.getElementById( "event-filter-menulist" ).selectedItem.value+"\n" );
function getAndSetEventTable( ){ var Today = new Date(); //do this to allow all day events to show up all day long var StartDate = new Date( Today.getFullYear(), Today.getMonth(), Today.getDate(), 0, 0, 0 ); var EndDate; switch( document.getElementById( "event-filter-menulist" ).selectedItem.value ) { ...