rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
$.event.trigger( 'ajaxSuccess' );
$.event.trigger( "ajaxSuccess" );
$.ajax = function( type, url, data, ret ) { // If only a single argument was passed in, // assume that it is a object of key/value pairs if ( !url ) { ret = type.complete; var success = type.success; var error = type.error; data = type.data; url = type.url; type = type.type; } // Create the request object var xml...
$.event.trigger( 'ajaxError' );
$.event.trigger( "ajaxError" );
$.ajax = function( type, url, data, ret ) { // If only a single argument was passed in, // assume that it is a object of key/value pairs if ( !url ) { ret = type.complete; var success = type.success; var error = type.error; data = type.data; url = type.url; type = type.type; } // Create the request object var xml...
var modRes = xml.getResponseHeader("Last-Modified"); if ( ifModified && modRes ) jQuery.lastModified[url] = modRes;
var modRes; try { modRes = xml.getResponseHeader("Last-Modified"); } catch(e) {} if ( ifModified && modRes ) jQuery.lastModified[url] = modRes;
ajax: function( type, url, data, ret, ifModified ) { // If only a single argument was passed in, // assume that it is a object of key/value pairs if ( !url ) { ret = type.complete; var success = type.success; var error = type.error; var dataType = type.dataType; var global = typeof type.global == "boolean...
url: null
contentType: "application/x-www-form-urlencoded", processData: true
ajax: function( s ) { // TODO introduce global settings, allowing the client to modify them for all requests, not only timeout s = jQuery.extend({ global: true, ifModified: false, type: "GET", timeout: jQuery.timeout, complete: null, success: null, error: null, dataType: null, data: null, url: nu...
if (typeof s.data != 'string')
if (s.processData && typeof s.data != 'string')
ajax: function( s ) { // TODO introduce global settings, allowing the client to modify them for all requests, not only timeout s = jQuery.extend({ global: true, ifModified: false, type: "GET", timeout: jQuery.timeout, complete: null, success: null, error: null, dataType: null, data: null, url: nu...
xml.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xml.setRequestHeader("Content-Type", s.contentType);
ajax: function( s ) { // TODO introduce global settings, allowing the client to modify them for all requests, not only timeout s = jQuery.extend({ global: true, ifModified: false, type: "GET", timeout: jQuery.timeout, complete: null, success: null, error: null, dataType: null, data: null, url: nu...
ajax: function( type, url, data, ret ) {
ajax: function( type, url, data, ret, ifModified ) {
ajax: function( type, url, data, ret ) { // If only a single argument was passed in, // assume that it is a object of key/value pairs if ( !url ) { ret = type.complete; var success = type.success; var error = type.error; data = type.data; url = type.url; type = type.type; } // Watch for a new set of...
if ( ifModified ) xml.setRequestHeader("If-Modified-Since", jQuery.lastModified[url] || "Thu, 01 Jan 1970 00:00:00 GMT" );
ajax: function( type, url, data, ret ) { // If only a single argument was passed in, // assume that it is a object of key/value pairs if ( !url ) { ret = type.complete; var success = type.success; var error = type.error; data = type.data; url = type.url; type = type.type; } // Watch for a new set of...
xml.onreadystatechange = function(){ if ( xml.readyState == 4 ) { if ( jQuery.httpSuccess( xml ) ) {
var onreadystatechange = function(istimeout){ if ( xml && (xml.readyState == 4 || istimeout) ) { var status = jQuery.httpSuccess( xml ) && !istimeout ? ifModified && jQuery.httpNotModified( xml, url ) ? "notmodified" : "success" : "error";
ajax: function( type, url, data, ret ) { // If only a single argument was passed in, // assume that it is a object of key/value pairs if ( !url ) { ret = type.complete; var success = type.success; var error = type.error; data = type.data; url = type.url; type = type.type; } // Watch for a new set of...
if ( success ) success( xml );
if ( success ) success( xml, status );
ajax: function( type, url, data, ret ) { // If only a single argument was passed in, // assume that it is a object of key/value pairs if ( !url ) { ret = type.complete; var success = type.success; var error = type.error; data = type.data; url = type.url; type = type.type; } // Watch for a new set of...
if ( error ) error( xml );
if ( error ) error( xml, status );
ajax: function( type, url, data, ret ) { // If only a single argument was passed in, // assume that it is a object of key/value pairs if ( !url ) { ret = type.complete; var success = type.success; var error = type.error; data = type.data; url = type.url; type = type.type; } // Watch for a new set of...
if ( ret ) ret(xml);
if ( ret ) ret(xml, status);
ajax: function( type, url, data, ret ) { // If only a single argument was passed in, // assume that it is a object of key/value pairs if ( !url ) { ret = type.complete; var success = type.success; var error = type.error; data = type.data; url = type.url; type = type.type; } // Watch for a new set of...
xml.onreadystatechange = onreadystatechange; if(jQuery.timeout > 0) setTimeout(function(){ if (xml) { xml.abort(); if (xml) onreadystatechange(1); xml = null; } }, jQuery.timeout);
ajax: function( type, url, data, ret ) { // If only a single argument was passed in, // assume that it is a object of key/value pairs if ( !url ) { ret = type.complete; var success = type.success; var error = type.error; data = type.data; url = type.url; type = type.type; } // Watch for a new set of...
url: null,
url: null
ajax: function( s ) { // TODO introduce global settings, allowing the client to modify them for all requests, not only timeout s = jQuery.extend({ global: true, ifModified: false, type: "GET", timeout: jQuery.timeout, complete: null, success: null, error: null, dataType: null, data: null, url: nu...
s.data = jQuery.param(s.data)
s.data = jQuery.param(s.data);
ajax: function( s ) { // TODO introduce global settings, allowing the client to modify them for all requests, not only timeout s = jQuery.extend({ global: true, ifModified: false, type: "GET", timeout: jQuery.timeout, complete: null, success: null, error: null, dataType: null, data: null, url: nu...
var global = true; var timeout = jQuery.timeout;
ajax: function( type, url, data, ret, ifModified ) { // If only a single argument was passed in, // assume that it is a object of key/value pairs if ( !url ) { ret = type.complete; var success = type.success; var error = type.error; var dataType = type.dataType; var global = typeof type.global == "boolean...
jQuery.event.trigger( "ajaxSuccess" );
jQuery.event.trigger( "ajaxSuccess", [xml, s] );
ajax: function( s ) { // TODO introduce global settings, allowing the client to modify them for all requests, not only timeout s = jQuery.extend({ global: true, ifModified: false, type: "GET", timeout: jQuery.timeout, complete: null, success: null, error: null, dataType: null, url: null, data: nu...
jQuery.event.trigger( "ajaxError" );
jQuery.event.trigger( "ajaxError", [xml, s] );
ajax: function( s ) { // TODO introduce global settings, allowing the client to modify them for all requests, not only timeout s = jQuery.extend({ global: true, ifModified: false, type: "GET", timeout: jQuery.timeout, complete: null, success: null, error: null, dataType: null, url: null, data: nu...
jQuery.event.trigger( "ajaxComplete" );
jQuery.event.trigger( "ajaxComplete", [xml, s] );
ajax: function( s ) { // TODO introduce global settings, allowing the client to modify them for all requests, not only timeout s = jQuery.extend({ global: true, ifModified: false, type: "GET", timeout: jQuery.timeout, complete: null, success: null, error: null, dataType: null, url: null, data: nu...
var ifModified = type.ifModified || false;
ifModified = type.ifModified || false;
ajax: function( type, url, data, ret, ifModified ) { // If only a single argument was passed in, // assume that it is a object of key/value pairs var global = true; var timeout = jQuery.timeout; if ( !url ) { ret = type.complete; var success = type.success; var error = type.error; var dataType = type.data...
$.xml(mth, url, $.param(this.vars), target);
$.ajax(mth, url, $.param(this.vars), target);
$.fn.ajaxSubmit = function(target, post_cb, pre_cb, url, mth) { if ( !this.vars ) this.serialize(); if (pre_cb && pre_cb.constructor == Function) if (pre_cb(this.vars) === false) return; var f = this.get(0); var url = url || f.action || ''; var mth = mth || f.method || 'POST'; if (target && target.constructor == Func...
$.xml(mth, url, $.param(this.vars), function(r) {
$.ajax(mth, url, $.param(this.vars), function(r) {
$.fn.ajaxSubmit = function(target, post_cb, pre_cb, url, mth) { if ( !this.vars ) this.serialize(); if (pre_cb && pre_cb.constructor == Function) if (pre_cb(this.vars) === false) return; var f = this.get(0); var url = url || f.action || ''; var mth = mth || f.method || 'POST'; if (target && target.constructor == Func...
if (!(result &= (iterator || Prototype.K)(value, index))) throw $break;
result = result && !!(iterator || Prototype.K)(value, index); if (!result) throw $break;
all: function(iterator) { var result = true; this.each(function(value, index) { if (!(result &= (iterator || Prototype.K)(value, index))) throw $break; }); return result; },
name = document.images[i].name;
name = document.images[i].alt;
function All(job) { for(var i =0; i < document.images.length; i++) { name = document.images[i].name; if (name == 'collapse') { switchimg = document.images[i]; id = switchimg.id.replace("img_","") part = FetchElement("part_"+id) if(job == 1) { switchimg.src = box_img_plus part.style.display = 'none' ...
id = switchimg.id.replace("img_","") part = FetchElement("part_"+id)
id = switchimg.id.replace("img_",""); part = FetchElement("part_"+id);
function All(job) { for(var i =0; i < document.images.length; i++) { name = document.images[i].name; if (name == 'collapse') { switchimg = document.images[i]; id = switchimg.id.replace("img_","") part = FetchElement("part_"+id) if(job == 1) { switchimg.src = box_img_plus part.style.display = 'none' ...
switchimg.src = box_img_plus part.style.display = 'none' SetCookie(id)
switchimg.src = box_img_plus; part.style.display = 'none'; SetCookie(id);
function All(job) { for(var i =0; i < document.images.length; i++) { name = document.images[i].name; if (name == 'collapse') { switchimg = document.images[i]; id = switchimg.id.replace("img_","") part = FetchElement("part_"+id) if(job == 1) { switchimg.src = box_img_plus part.style.display = 'none' ...
switchimg.src = box_img_minus part.style.display = 'block' KillCookie(id)
switchimg.src = box_img_minus; part.style.display = 'block'; KillCookie(id);
function All(job) { for(var i =0; i < document.images.length; i++) { name = document.images[i].name; if (name == 'collapse') { switchimg = document.images[i]; id = switchimg.id.replace("img_","") part = FetchElement("part_"+id) if(job == 1) { switchimg.src = box_img_plus part.style.display = 'none' ...
Switch(switchimg)
Switch(switchimg);
function All(job) { for(var i =0; i < document.images.length; i++) { name = document.images[i].name; if (name == 'collapse') { switchimg = document.images[i]; id = switchimg.id.replace("img_","") part = FetchElement("part_"+id) if(job == 1) { switchimg.src = box_img_plus part.style.display = 'none' ...
var buttonNode = document.getElementById("PersonalToolbar").firstChild; while(buttonNode.tagName != "toolbarseparator") { if(!buttonNode.hasAttribute("hidden") || buttonNode.getAttribute("hidden") == "false")
var buttonNode = document.getElementById("home-bm-separator").previousSibling; while (buttonNode) { if (buttonNode.localName != "tooltip" && !buttonNode.hidden)
function allLeftButtonsAreHidden(){ var buttonNode = document.getElementById("PersonalToolbar").firstChild; while(buttonNode.tagName != "toolbarseparator") { if(!buttonNode.hasAttribute("hidden") || buttonNode.getAttribute("hidden") == "false") return false; buttonNode = buttonNode.nextSibling; } return ...
buttonNode = buttonNode.nextSibling;
buttonNode = buttonNode.previousSibling;
function allLeftButtonsAreHidden(){ var buttonNode = document.getElementById("PersonalToolbar").firstChild; while(buttonNode.tagName != "toolbarseparator") { if(!buttonNode.hasAttribute("hidden") || buttonNode.getAttribute("hidden") == "false") return false; buttonNode = buttonNode.nextSibling; } return ...
"", "chrome,resizable=no,titlebar,modal,centerscreen", {primaryEmail:authorEmailAddress, displayName:names.value[0], allowRemoteContent:'true'});
"", "chrome,resizable=no,titlebar,modal,centerscreen", args); allowRemoteContent = args.allowRemoteContent;
function allowRemoteContentForSender(){ // get the sender of the msg hdr var msgHdr = msgHdrForCurrentMessage(); if (!msgHdr) return; var headerParser = Components.classes["@mozilla.org/messenger/headerparser;1"] .getService(Components.interfaces.nsIMsgHeaderParser); var names = {}; var ...
MsgReload();
if (allowRemoteContent) MsgReload();
function allowRemoteContentForSender(){ // get the sender of the msg hdr var msgHdr = msgHdrForCurrentMessage(); if (!msgHdr) return; var headerParser = Components.classes["@mozilla.org/messenger/headerparser;1"] .getService(Components.interfaces.nsIMsgHeaderParser); var names = {}; var ...
function alternateRowColors()
DWRUtil.alternateRowColors = function()
function alternateRowColors(){ var tables = document.getElementsByTagName("table"); var rowCount = 0; for (var i = 0; i < tables.length; i++) { var table = tables.item(i); var rows = table.getElementsByTagName("tr"); for (var j = 0; j < rows.length; j++) { var row = ro...
var i = 0;
this.curAnim = prop;
animate: function(prop,speed,callback) { return this.queue(function(){ var i = 0; for ( var p in prop ) { var e = new jQuery.fx( this, jQuery.speed(speed,callback,i++), p ); if ( prop[p].constructor == Number ) e.custom( e.cur(), prop[p] ); else e[ prop[p] ]( prop ); } }); },
var e = new jQuery.fx( this, jQuery.speed(speed,callback,i++), p );
var e = new jQuery.fx( this, jQuery.speed(speed,callback), p );
animate: function(prop,speed,callback) { return this.queue(function(){ var i = 0; for ( var p in prop ) { var e = new jQuery.fx( this, jQuery.speed(speed,callback,i++), p ); if ( prop[p].constructor == Number ) e.custom( e.cur(), prop[p] ); else e[ prop[p] ]( prop ); } }); },
jQuery.prototype.animate = function(prop,speed,callback) { return this.queue(function(){ var i = 0; for ( var p in prop ) { var e = new jQuery.fx( this, jQuery.speed(speed,callback,i++), p ); if ( prop[p].constructor == Number ) e.custom( e.cur(), prop[p] ); else e[ prop[p] ](); } }); };
animate: function(prop,speed,callback) { return this.queue(function(){ var i = 0; for ( var p in prop ) { var e = new jQuery.fx( this, jQuery.speed(speed,callback,i++), p ); if ( prop[p].constructor == Number ) e.custom( e.cur(), prop[p] ); else e[ prop[p] ](); } }); },
jQuery.prototype.animate = function(prop,speed,callback) { return this.queue(function(){ var i = 0; for ( var p in prop ) { var e = new jQuery.fx( this, jQuery.speed(speed,callback,i++), p ); if ( prop[p].constructor == Number ) e.custom( e.cur(), prop[p] ); else e[ prop[p] ](); } });};
e[ prop[p] ]();
e[ prop[p] ]( prop );
animate: function(prop,speed,callback) { return this.queue(function(){ var i = 0; for ( var p in prop ) { var e = new jQuery.fx( this, jQuery.speed(speed,callback,i++), p ); if ( prop[p].constructor == Number ) e.custom( e.cur(), prop[p] ); else e[ prop[p] ](); } }); },
this.curAnim = prop;
this.curAnim = jQuery.extend({}, prop);
animate: function(prop,speed,callback) { return this.queue(function(){ this.curAnim = prop; for ( var p in prop ) { var e = new jQuery.fx( this, jQuery.speed(speed,callback), p ); if ( prop[p].constructor == Number ) e.custom( e.cur(), prop[p] ); else e[ prop[p] ]( prop ); } }); },
if (result &= (iterator || Prototype.K)(value, index))
if (result = !!(iterator || Prototype.K)(value, index))
any: function(iterator) { var result = true; this.each(function(value, index) { if (result &= (iterator || Prototype.K)(value, index)) throw $break; }); return result; },
for ( var i in a )
for ( var i = 0; i < a.length; i++ )
append: function() { var clone = this.size() > 1; var a = $.clean(arguments); return this.each(function(){ for ( var i in a ) this.appendChild( clone ? a[i].cloneNode(true) : a[i] ); }); },
/* Note: we always want a zero-length textfield so the user
/* Note: we always want a zero-length textbox so the user
function Append(thisMenuList) { /* Note: we always want a zero-length textfield so the user * can start typing in a new value. So we need to determine * if user has started typing into the zero-length textfield * in which case it's time to create yet another zero-length * one. We also need to det...
* if user has started typing into the zero-length textfield
* if user has started typing into the zero-length textbox
function Append(thisMenuList) { /* Note: we always want a zero-length textfield so the user * can start typing in a new value. So we need to determine * if user has started typing into the zero-length textfield * in which case it's time to create yet another zero-length * one. We also need to det...
* text in a textfield in which case that textfield needs to
* text in a textbox in which case that textbox needs to
function Append(thisMenuList) { /* Note: we always want a zero-length textfield so the user * can start typing in a new value. So we need to determine * if user has started typing into the zero-length textfield * in which case it's time to create yet another zero-length * one. We also need to det...
classes.push(className);elmt.className=classes.join(" ");};SimileAjax.DOM.createInputElement=function(type){var div=document.createElement("div");div.innerHTML="<input type='"+type+"' />";return div.firstChild;};SimileAjax.DOM.createDOMFromTemplate=function(doc,template){var result={};result.elmt=SimileAjax.DOM._create...
classes.push(className);elmt.className=classes.join(" ");};SimileAjax.DOM.createInputElement=function(type){var div=document.createElement("div");div.innerHTML="<input type='"+type+"' />";return div.firstChild;};SimileAjax.DOM.createDOMFromTemplate=function(doc,template){var result={};result.elmt=SimileAjax.DOM._create...
return{left:left,top:top};};SimileAjax.DOM.getEventRelativeCoordinates=function(evt,elmt){if(SimileAjax.Platform.browser.isIE){return{x:evt.offsetX,y:evt.offsetY};}else{var coords=SimileAjax.DOM.getPageCoordinates(elmt);return{x:evt.pageX-coords.left,y:evt.pageY-coords.top};}};SimileAjax.DOM.cancelEvent=function(evt){e...
var extCount = { }; var extList = { }; mimeInfo.GetFileExtensions(extCount, extList);
var extEnumerator = mimeInfo.getFileExtensions();
function appendFiltersForContentType(aFilePicker, aContentType, aSaveMode){ var bundle = getStringBundle(); switch (aContentType) { case "text/html": if (aSaveMode == MODE_COMPLETE) aFilePicker.appendFilter(bundle.GetStringFromName("WebPageCompleteFilter"), "*.htm; *.html"); aFilePicker.appendFilter(b...
for (var i = 0; i < extCount.value; ++i) { if (i > 0) extString += "; "; extString += "*." + extList.value[i];
while (extEnumerator.hasMore()) { var extension = extEnumerator.getNext(); if (extString) extString += "; "; extString += "*." + extension;
function appendFiltersForContentType(aFilePicker, aContentType, aSaveMode){ var bundle = getStringBundle(); switch (aContentType) { case "text/html": if (aSaveMode == MODE_COMPLETE) aFilePicker.appendFilter(bundle.GetStringFromName("WebPageCompleteFilter"), "*.htm; *.html"); aFilePicker.appendFilter(b...
if (extCount.value > 0) {
if (extString) {
function appendFiltersForContentType(aFilePicker, aContentType, aSaveMode){ var bundle = getStringBundle(); switch (aContentType) { case "text/html": if (aSaveMode == MODE_COMPLETE) aFilePicker.appendFilter(bundle.GetStringFromName("WebPageCompleteFilter"), "*.htm; *.html"); aFilePicker.appendFilter(b...
aFilePicker.appendFilter(bundle.GetStringFromName("TextOnlyFilter"), "*.txt");
function appendFiltersForContentType(aFilePicker, aContentType, aSaveMode){ var bundle = getStringBundle(); switch (aContentType) { case "text/html": if (aSaveMode == MODE_COMPLETE) aFilePicker.appendFilter(bundle.GetStringFromName("WebPageCompleteFilter"), "*.htm; *.html"); aFilePicker.appendFilter(b...
optgroupObject.prototype.appendOption = function appendOption(child, parent) { var index = gDialog.nextChild(parent); var primaryCol = treeBoxObject.getPrimaryColumn(); treeBoxObject.invalidateCell(index - 1, primaryCol); itemArray.splice(index, 0, new optionObject(child, 2)); treeBoxObject.rowCountChanged(index, 1);...
appendOption: function appendOption(child, parent) { var index = itemArray.length; treeBoxObject.invalidateRange(this.lastChild(), index); itemArray.push(new optionObject(child, 1)); treeBoxObject.rowCountChanged(index, 1); selectTreeIndex(index, false); },
optgroupObject.prototype.appendOption = function appendOption(child, parent){ var index = gDialog.nextChild(parent); // XXX need to repaint the lines, tree won't do this var primaryCol = treeBoxObject.getPrimaryColumn(); treeBoxObject.invalidateCell(index - 1, primaryCol); // insert the wrapped object as the last ...
var popupNode = document.createElement("menupopup");
var list = document.getElementById("printerList");
appendPrinterNames: function (aDataObject) { var popupNode = document.createElement("menupopup"); var strDefaultPrinterName = ""; var printerName; // build popup menu from printer names while (aDataObject.hasMoreElements()) { printerName = aDat...
var itemNode = document.createElement("menuitem"); itemNode.setAttribute("value", printerNameStr); itemNode.setAttribute("label", printerNameStr); popupNode.appendChild(itemNode);
list.appendItem(printerNameStr, printerNameStr, getPrinterDescription(printerNameStr));
appendPrinterNames: function (aDataObject) { var popupNode = document.createElement("menupopup"); var strDefaultPrinterName = ""; var printerName; // build popup menu from printer names while (aDataObject.hasMoreElements()) { printerName = aDat...
this.listElement.appendChild(popupNode);
appendPrinterNames: function (aDataObject) { var popupNode = document.createElement("menupopup"); var strDefaultPrinterName = ""; var printerName; // build popup menu from printer names while (aDataObject.hasMoreElements()) { printerName = aDat...
gNoFontsForThisLang = true;
appendStrings: function ( aDataObject ) { var popupNode = document.createElement( "menupopup" ); faces = aDataObject.toString().split(","); faces.sort(); for( var i = 0; i < faces.length; i++ ) { if( faces[i] == "" ) { ...
gNoFontsForThisLang = false;
appendStrings: function ( aDataObject ) { var popupNode = document.createElement( "menupopup" ); faces = aDataObject.toString().split(","); faces.sort(); for( var i = 0; i < faces.length; i++ ) { if( faces[i] == "" ) { ...
editorShell.NormalizeTable(TableElement);
function Apply(){ if (ValidateData()) { editorShell.BeginBatchChanges(); // Can't use editorShell.CloneAttributes -- we must change only // attributes that are checked! ApplyTableAttributes(); // We may have just a table, so check for cell element if (globalCellElement) { ApplyCellAttribut...
if (dialog.RowSpanCheckbox.checked && dialog.RowSpanCheckbox.getAttribute("disabled") != "true") CloneAttribute(destElement, globalCellElement, "rowspan"); if (dialog.ColSpanCheckbox.checked && dialog.ColSpanCheckbox.getAttribute("disabled") != "true") CloneAttribute(destElement, globalCellElement, "colspan");
function ApplyAttributesToOneCell(destElement){ if (dialog.CellHeightCheckbox.checked) CloneAttribute(destElement, globalCellElement, "height"); if (dialog.CellWidthCheckbox.checked) CloneAttribute(destElement, globalCellElement, "width"); if (dialog.RowSpanCheckbox.checked && dialog.RowSpanCheckbox.getAttribu...
const kPrefSvcContractID = "@mozilla.org/preferences;1"; const kPrefSvcIID = Components.interfaces.nsIPref; const kPrefSvc = Components.classes[kPrefSvcContractID].getService(kPrefSvcIID);
function applySkin(){ var data = parent.hPrefWindow.wsm.dataManager.pageData["chrome://communicator/content/pref/pref-themes.xul"]; if (data.name == null) return; const kPrefSvcContractID = "@mozilla.org/preferences;1"; const kPrefSvcIID = Components.interfaces.nsIPref; const kPrefSvc = Components.classes[kPref...
theme = kPrefSvc.getComplexValue("general.skins.selectedSkin", Components.interfaces.nsISupportsString).data;
theme = parent.hPrefWindow.pref.getComplexValue("general.skins.selectedSkin", Components.interfaces.nsISupportsString).data;
function applySkin(){ var data = parent.hPrefWindow.wsm.dataManager.pageData["chrome://communicator/content/pref/pref-themes.xul"]; if (data.name == null) return; const kPrefSvcContractID = "@mozilla.org/preferences;1"; const kPrefSvcIID = Components.interfaces.nsIPref; const kPrefSvc = Components.classes[kPref...
var str = Components.classes["@mozilla.org/supports-string;1"] .createInstance(Components.interfaces.nsISupportsString); str.data = data.name; kPrefSvc.setComplexValue("general.skins.selectedSkin", Components.interfaces.nsISupportsString, str);
parent.hPrefWindow.setPref("string", "general.skins.selectedSkin", data.name);
function applySkin(){ var data = parent.hPrefWindow.wsm.dataManager.pageData["chrome://communicator/content/pref/pref-themes.xul"]; if (data.name == null) return; const kPrefSvcContractID = "@mozilla.org/preferences;1"; const kPrefSvcIID = Components.interfaces.nsIPref; const kPrefSvc = Components.classes[kPref...
const kPrefSvcContractID = "@mozilla.org/preferences;1"; const kPrefSvcIID = Components.interfaces.nsIPref;
const kPrefSvcContractID = "@mozilla.org/preferences-service;1"; const kPrefSvcIID = Components.interfaces.nsIPrefService;
function applySkin(){ var data = parent.hPrefWindow.wsm.dataManager.pageData["chrome://communicator/content/pref/pref-themes.xul"]; if (data.name == null) return; const kPrefSvcContractID = "@mozilla.org/preferences;1"; const kPrefSvcIID = Components.interfaces.nsIPref; const kPrefSvc = Components.classes[kPref...
var str;
function applyTheme(themeName){ if (themeName.getAttribute("name") == "") return; var chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"] .getService(Components.interfaces.nsIChromeRegistry); var oldTheme = false; try { oldTheme = !chromeRegistry.checkThemeVersion(themeName.getAttr...
Components.interfaces.nsISupportsWString, true);
Components.interfaces.nsISupportsWString, str);
function applyTheme(themeName){ if (themeName.getAttribute("name") == "") return; var chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"] .getService(Components.interfaces.nsIChromeRegistry); var oldTheme = false; try { oldTheme = !chromeRegistry.checkThemeVersion(themeName.getAttr...
Components.interfaces.nsISupportsWString, themeName.getAttribute("name"));
Components.interfaces.nsISupportsWString, str);
function applyTheme(themeName){ if (themeName.getAttribute("name") == "") return; var chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"] .getService(Components.interfaces.nsIChromeRegistry); var oldTheme = false; try { oldTheme = !chromeRegistry.checkThemeVersion(themeName.getAttr...
oldTheme = false;
function applyTheme(themeName){ if (themeName.getAttribute("name") == "") return; var chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"] .getService(Components.interfaces.nsIChromeRegistry); try { oldTheme = !chromeRegistry.checkThemeVersion(themeName.getAttribute("name")); } cat...
var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptService);
function applyTheme(themeName){ if (themeName.getAttribute("name") == "") return; var chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"] .getService(Components.interfaces.nsIChromeRegistry); try { oldTheme = !chromeRegistry.checkThemeVersion(themeName.getAttribute("name")); } cat...
pref.SetUnicharPref("general.skins.removelist." + themeName.getAttribute("name"), true);
function applyTheme(themeName){ if (themeName.getAttribute("name") == "") return; var chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"] .getService(Components.interfaces.nsIChromeRegistry); try { oldTheme = !chromeRegistry.checkThemeVersion(themeName.getAttribute("name")); } cat...
chromeRegistry.selectSkin(themeName.getAttribute("name"), true); chromeRegistry.refreshSkins();
pref.SetUnicharPref("general.skins.selectedSkin", themeName.getAttribute("name")); if (promptService) { var dialogTitle = gNavigatorBundle.getString("switchskinstitle"); var brandName = gBrandBundle.getString("brandShortName"); var msg = gNavigatorBundle.getFormattedString("switchskins", [brandName]); promptService.al...
function applyTheme(themeName){ if (themeName.getAttribute("name") == "") return; var chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"] .getService(Components.interfaces.nsIChromeRegistry); try { oldTheme = !chromeRegistry.checkThemeVersion(themeName.getAttribute("name")); } cat...
var name = themeName.getAttribute("name");
var id = themeName.getAttribute('id'); var name=id.substring('urn:mozilla.skin.'.length, id.length);
function applyTheme(themeName){ var name = themeName.getAttribute("name"); if (!name) return; var chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"] .getService(Components.interfaces.nsIXULChromeRegistry); var oldTheme = false; try { oldTheme = !chromeRegistry.checkThemeVersion(n...
str.data = themeName.getAttribute("name");
str.data = name;
function applyTheme(themeName){ var name = themeName.getAttribute("name"); if (!name) return; var chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"] .getService(Components.interfaces.nsIXULChromeRegistry); var oldTheme = false; try { oldTheme = !chromeRegistry.checkThemeVersion(n...
observerService.Notify(null, "skin-selected", null);
observerService.notifyObservers(null, "skin-selected", null);
function applyTheme(themeName){ if (themeName.getAttribute("name") == "") return; var chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"] .getService(Components.interfaces.nsIChromeRegistry); var oldTheme = false; try { oldTheme = !chromeRegistry.checkThemeVersion(themeName.getAttr...
try { var chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"].getService(); if ( chromeRegistry ) chromeRegistry = chromeRegistry.QueryInterface( Components.interfaces.nsIChromeRegistry );
var chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"] .getService(Components.interfaces.nsIChromeRegistry); chromeRegistry.selectSkin(themeName.getAttribute("name"), true); chromeRegistry.refreshSkins();
function applyTheme(themeName){try { var chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"].getService(); if ( chromeRegistry ) chromeRegistry = chromeRegistry.QueryInterface( Components.interfaces.nsIChromeRegistry );}catch(e) {}chromeRegistry.selectSkin( themeName.getAttribute('name'), ...
catch(e) {} chromeRegistry.selectSkin( themeName.getAttribute('name'), true ); chromeRegistry.refreshSkins(); }
function applyTheme(themeName){try { var chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"].getService(); if ( chromeRegistry ) chromeRegistry = chromeRegistry.QueryInterface( Components.interfaces.nsIChromeRegistry );}catch(e) {}chromeRegistry.selectSkin( themeName.getAttribute('name'), ...
.getService(Components.interfaces.nsIChromeRegistry);
.getService(Components.interfaces.nsIChromeRegistry); try { oldTheme = !chromeRegistry.checkThemeVersion(themeName.getAttribute("name")); } catch(e) { oldTheme = false; } if (oldTheme) { var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptServic...
function applyTheme(themeName){ var chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"] .getService(Components.interfaces.nsIChromeRegistry); chromeRegistry.selectSkin(themeName.getAttribute("name"), true); chromeRegistry.refreshSkins();}
var chromeRegistry = Components.classes["component:
var chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"].getService();
function applyTheme(themeName){try { var chromeRegistry = Components.classes["component://netscape/chrome/chrome-registry"].getService(); if ( chromeRegistry ) chromeRegistry = chromeRegistry.QueryInterface( Components.interfaces.nsIChromeRegistry );}catch(e) {}chromeRegistry.selectSkin( themeName.getAttribute('na...
var canGetMessages = protocolInfo.canGetMessages && false; SetItemDisplay("JunkSettings", canGetMessages);
var canControlJunk = protocolInfo.canGetMessages && false; SetItemDisplay("JunkSettings", canControlJunk);
function ArrangeAccountCentralItems(server, protocolInfo, msgFolder){ try { /***** Email header and items : Begin *****/ // Read Messages var canGetMessages = protocolInfo.canGetMessages; SetItemDisplay("ReadMessages", canGetMessages); // Compose Messages link var showCo...
var displayAdvFeatures = canSearchMessages || canHaveFilters || supportsOffline || canGetMessages;
var displayAdvFeatures = canSearchMessages || canHaveFilters || supportsOffline || canControlJunk;
function ArrangeAccountCentralItems(server, protocolInfo, msgFolder){ try { /***** Email header and items : Begin *****/ // Read Messages var canGetMessages = protocolInfo.canGetMessages; SetItemDisplay("ReadMessages", canGetMessages); // Compose Messages link var showCo...
var canShowCreateAccount = ! nsPrefBranch.prefIsLocked("mail.accountmanager.accounts");
var canShowCreateAccount = ! nsPrefBranch.prefIsLocked("mail.disable_new_account_addition");
function ArrangeAccountCentralItems(server, protocolInfo, msgFolder){ try { /***** Email header and items : Begin *****/ // Read Messages var canGetMessages = protocolInfo.canGetMessages; SetItemDisplay("ReadMessages", canGetMessages); // Compose Messages link var showCo...
change = promptSvc.confirmCheck(window, title, changeEngineMsg, dontAskAgainMsg, checkbox);
var choice = promptSvc.confirmEx(window, title, changeEngineMsg, (promptSvc.BUTTON_TITLE_YES * promptSvc.BUTTON_POS_0) + (promptSvc.BUTTON_TITLE_NO * promptSvc.BUTTON_POS_1), null, null, null, dontAskAgainMsg, checkbox); if (choice == 0) change = true;
function AskChangeDefaultEngine(aSelectedEngine){ const kDontAskAgainPref = "browser.search.set_default.dont_ask_again"; const kDefaultEnginePref = "browser.search.defaultengine"; // don't prompt user if selection is same as old default engine var oldDefault = nsPreferences.copyUnicharPref(kDefaultEnginePref); if...
var mimeSource = gRDF.GetResource(aMIMEString); var valueProperty = gRDF.GetResource(NC_RDF(aPropertyString));
var mimeSource = gRDF.GetUnicodeResource(aMIMEString); var valueProperty = gRDF.GetUnicodeResource(NC_RDF(aPropertyString));
function assertMIMEStuff(aMIMEString, aPropertyString, aValueString){ var mimeSource = gRDF.GetResource(aMIMEString); var valueProperty = gRDF.GetResource(NC_RDF(aPropertyString)); var mimeLiteral = gRDF.GetLiteral(aValueString); gDS.Assert(mimeSource, valueProperty, mimeLiteral, true);}
#ifdef MOZ_PLACES
#ifdef MOZ_PLACES_BOOKMARKS
asyncUpdateUI : function () { FeedHandler.updateFeeds(); BrowserSearch.updateSearchButton();#ifdef MOZ_PLACES PlacesCommandHook.updateTagButton();#endif },
var fp = Components.classes["component:
var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker);
function AttachFile(){ dump("AttachFile()\n"); currentAttachment = ""; //Get file using nsIFilePicker and convert to URL try { var fp = Components.classes["component://mozilla/filepicker"].createInstance(nsIFilePicker); fp.init(window, Bundle.GetStringFromName("chooseFileToAttach"), nsIFilePicker.modeOpen); fp...
if (commonDialogsService) commonDialogsService.Alert(window, errorTitle, errorMsg);
if (promptService) promptService.Alert(window, errorTitle, errorMsg);
function AttachFile(){// dump("AttachFile()\n"); currentAttachment = ""; //Get file using nsIFilePicker and convert to URL try { var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker); fp.init(window, gComposeMsgsBundle.getString("chooseFileToAttach"), nsIFilePicker.modeOpen); ...
var currentAttachment = ioService.getURLSpecFromFile(currentFile);
var fileHandler = ioService.getProtocolHandler("file").QueryInterface(Components.interfaces.nsIFileProtocolHandler); var currentAttachment = fileHandler.getURLSpecFromFile(currentFile);
function AttachFile(){ var attachments; //Get file using nsIFilePicker and convert to URL try { var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker); fp.init(window, sComposeMsgsBundle.getString("chooseFileToAttach"), nsIFilePicker.modeOpenMultiple); var lastD...
event.currentTarget.focus();
function AttachmentBucketClicked(event){ if (event.button != 0) return; if (event.originalTarget.localName == "listboxbody") goDoCommand('cmd_attachFile');}
if (event.button != 0) return;
function AttachmentBucketClicked(event){ if (event.originalTarget.localName == 'treechildren') goDoCommand('cmd_attachFile');}
{ if(event.detail == 2) {
{ if (event.button != 0) return; if(event.detail == 2) {
function attachmentTreeClick(event){ if(event.detail == 2) // double click { var target = event.originalTarget; item = target.parentNode.parentNode; if (item.localName == "treeitem") { var commandStringSuffix = item.getAttribute("commandSuffix"); var openString = 'openAttachment' + commandStringSuffix; ...
if (commonDialogsService)
if (promptService)
function AttachPage(){ if (commonDialogsService) { var result = {value:0}; if (commonDialogsService.Prompt( window, gComposeMsgsBundle.getString("attachPageDlogTitle"), gComposeMsgsBundle.getString("attachPageDlogMessage"), null, result)) { AddAttachm...
if (commonDialogsService.Prompt(
if (promptService.Prompt(
function AttachPage(){ if (commonDialogsService) { var result = {value:0}; if (commonDialogsService.Prompt( window, gComposeMsgsBundle.getString("attachPageDlogTitle"), gComposeMsgsBundle.getString("attachPageDlogMessage"), null, result)) { AddAttachm...
"", 0,
function AttachPage(){ if (commonDialogsService) { var result = {value:0}; if (commonDialogsService.Prompt( window, gComposeMsgsBundle.getString("attachPageDlogTitle"), gComposeMsgsBundle.getString("attachPageDlogMessage"), null, result)) { AddAttachm...
var br = document.createElementNS("http: attachNode.appendChild( br);
function attachStrings(aNode, aString){ var attachNode = document.getElementById(aNode); if (!aString) { attachNode.parentNode.setAttribute("hidden", "true"); return; } var strings = aString.split("\n"); for (var i = 0; i < strings.length; i++) { if (strings[i]) { var currNode = document.createTextNo...
if ( o.setAttribute ) {
if ( o.setAttribute && a != 'disabled' ) {
$.attr = function(o,a,v){ if ( a && a.constructor == String ) { var fix = { 'for': 'htmlFor', 'text': 'cssText', 'class': 'className', 'float': 'cssFloat' }; a = (fix[a] && fix[a].replace && fix[a]) || a; var r = new RegExp("-([a-z])","ig"); a = a.replace(r,function(z,b){return b.toUpperCase();}); if ( ty...
return key.constructor != String || value ?
return key.constructor != String || value != undefined ?
attr: function( key, value, type ) { // Check to see if we're setting style values return key.constructor != String || value ? this.each(function(){ // See if we're setting a hash of styles if ( value == undefined ) // Set all the styles for ( var prop in key ) jQuery.attr( type ? this.sty...
if ( v !== null ) {
if ( typeof v != 'undefined' ) {
$.attr = function(o,a,v){ if ( a && a.constructor == String ) { var fix = { 'for': 'htmlFor', 'text': 'cssText', 'class': 'className', 'float': 'cssFloat' }; a = (fix[a] && fix[a].replace && fix[a]) || a; var r = new RegExp("-([a-z])","ig"); a = a.replace(r,function(z,b){return b.toUpperCase();}); if ( v ...
'float': 'cssFloat'
'float': 'cssFloat', 'style': 'cssText'
$.attr = function(o,a,v){ if ( a && a.constructor == String ) { var fix = { 'for': 'htmlFor', 'text': 'cssText', 'class': 'className', 'float': 'cssFloat' }; a = (fix[a] && fix[a].replace && fix[a]) || a; var r = new RegExp("-([a-z])","ig"); a = a.replace(r,function(z,b){return b.toUpperCase();}); if ( ty...
'for': 'htmlFor', 'text': 'cssText', 'class': 'className', 'float': 'cssFloat'
"for": "htmlFor", "class": "className", "float": "cssFloat"
$.attr = function(o,a,v){ if ( a && a.constructor == String ) { var fix = { 'for': 'htmlFor', 'text': 'cssText', 'class': 'className', 'float': 'cssFloat' }; a = (fix[a] && fix[a].replace && fix[a]) || a; var r = new RegExp("-([a-z])","ig"); a = a.replace(r,function(z,b){return b.toUpperCase();}); if ( ty...
var r = new RegExp("-([a-z])","ig");
var r = /-([a-z])/ig;
$.attr = function(o,a,v){ if ( a && a.constructor == String ) { var fix = { 'for': 'htmlFor', 'text': 'cssText', 'class': 'className', 'float': 'cssFloat' }; a = (fix[a] && fix[a].replace && fix[a]) || a; var r = new RegExp("-([a-z])","ig"); a = a.replace(r,function(z,b){return b.toUpperCase();}); if ( ty...
if ( typeof v != 'undefined' ) {
if ( v != undefined ) {
$.attr = function(o,a,v){ if ( a && a.constructor == String ) { var fix = { 'for': 'htmlFor', 'text': 'cssText', 'class': 'className', 'float': 'cssFloat' }; a = (fix[a] && fix[a].replace && fix[a]) || a; var r = new RegExp("-([a-z])","ig"); a = a.replace(r,function(z,b){return b.toUpperCase();}); if ( ty...
if ( o.setAttribute && a != 'disabled' ) {
if ( o.setAttribute && a != "disabled" )
$.attr = function(o,a,v){ if ( a && a.constructor == String ) { var fix = { 'for': 'htmlFor', 'text': 'cssText', 'class': 'className', 'float': 'cssFloat' }; a = (fix[a] && fix[a].replace && fix[a]) || a; var r = new RegExp("-([a-z])","ig"); a = a.replace(r,function(z,b){return b.toUpperCase();}); if ( ty...
}
$.attr = function(o,a,v){ if ( a && a.constructor == String ) { var fix = { 'for': 'htmlFor', 'text': 'cssText', 'class': 'className', 'float': 'cssFloat' }; a = (fix[a] && fix[a].replace && fix[a]) || a; var r = new RegExp("-([a-z])","ig"); a = a.replace(r,function(z,b){return b.toUpperCase();}); if ( ty...
return o[a] || o.getAttribute(a) || ''; } else { return ''; }
return o[a] || o.getAttribute(a) || ""; } else return "";
$.attr = function(o,a,v){ if ( a && a.constructor == String ) { var fix = { 'for': 'htmlFor', 'text': 'cssText', 'class': 'className', 'float': 'cssFloat' }; a = (fix[a] && fix[a].replace && fix[a]) || a; var r = new RegExp("-([a-z])","ig"); a = a.replace(r,function(z,b){return b.toUpperCase();}); if ( ty...