rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
appCore.Init( coreName );
appCore.Init( appCoreName );
function StartupViewSource() { // Generate unique name. coreName = "ViewSource." + ( new Date() ).getTime().toString(); // Create and initialize the browser app core. appCore = new BrowserAppCore(); appCore.Init( coreName ); appCore.setContentWindow(window.frames[0]); appCore.setWebShellWindo...
XPAppCoresManager.Find( coreName ).loadUrl(url);
appCore.loadUrl(url);
function StartupViewSource() { // Generate unique name. coreName = "ViewSource." + ( new Date() ).getTime().toString(); // Create and initialize the browser app core. appCore = new BrowserAppCore(); appCore.Init( coreName ); appCore.setContentWindow(window.frames[0]); appCore.setWebShellWindo...
window.title = "xmlterm: "+window.arguments;
document.title = "xmlterm: "+window.arguments;
function StartupXMLTerm() { //dump("StartupXMLTerm:"+window.frames.length+"\n"); //dump("StartupXMLTerm:"+window.frames[0].name+"\n"); if (window.frames.length == 2) { xmltwin = window.frames[1]; xmltwin.xmltbrowser = window.frames[0]; } else { xmltwin = window.frames[0]; } // Determine telne...
var xmltshell = Components.classes["component:
var xmltshell = Components.classes["@mozilla.org/xmlterm/xmltermshell;1"].createInstance();
function StartupXMLTerm() { dump("StartupXMLTerm:\n"); dump("StartupXMLTerm:"+window.frames.length+"\n"); dump("StartupXMLTerm:"+window.frames[0].name+"\n"); if (window.frames.length == 2) { xmltwin = window.frames[1]; xmltwin.xmltbrowser = window.frames[0]; } else { xmltwin = window.frames[0];...
var formsArray;
function stateFound(content, threshhold) { var captureStateFound = false; var prefillStateFound = false; if (!content || !content.document) { return {capture: false, prefill: false}; } var document = content.document; if (!("forms" in document)) { // this will occur if do...
if ( z.o.hide ) y.display = 'none';
z.el.curAnim[ prop ] = true; var done = true; for ( var i in z.el.curAnim ) if ( z.el.curAnim[i] !== true ) done = false; if ( done ) { y.overflow = z.el.oldOverflow; if ( z.o.hide ) y.display = 'none'; if ( z.o.hide ) { for ( var p in z.el.curAnim ) { y[ p ] = z.el.orig[p] + ( p == "opacity" ? "" : "px" );
z.step = function(firstNum, lastNum){ var t = (new Date()).getTime(); if (t > z.o.duration + z.startTime) { // Stop the timer clearInterval(z.timer); z.timer = null; z.now = lastNum; z.a(); // Hide the element if the "hide" operation was done if ( z.o.hide ) y.display = 'none'; // Reset ...
y.overflow = z.el.oldOverflow; if ( z.o.hide ) y[ prop ] = z.el.orig[ prop ].constructor == Number && prop != "opacity" ? z.el.orig[prop] + "px" : z.el.orig[prop]; if ( prop == 'height' || prop == 'width' ) jQuery.setAuto( z.el, prop );
if ( p == 'height' || p == 'width' ) jQuery.setAuto( z.el, p ); } } }
z.step = function(firstNum, lastNum){ var t = (new Date()).getTime(); if (t > z.o.duration + z.startTime) { // Stop the timer clearInterval(z.timer); z.timer = null; z.now = lastNum; z.a(); // Hide the element if the "hide" operation was done if ( z.o.hide ) y.display = 'none'; // Reset ...
if( z.o.complete && z.o.complete.constructor == Function )
if( done && z.o.complete && z.o.complete.constructor == Function )
z.step = function(firstNum, lastNum){ var t = (new Date()).getTime(); if (t > z.o.duration + z.startTime) { // Stop the timer clearInterval(z.timer); z.timer = null; z.now = lastNum; z.a(); // Hide the element if the "hide" operation was done if ( z.o.hide ) y.display = 'none'; // Reset ...
z.step = function(f,tt){
z.step = function(firstNum, lastNum){
z.step = function(f,tt){ var t = (new Date()).getTime(); var p = (t - z.s) / z.o.duration; if (t >= z.o.duration+z.s) { z.now = tt; z.clear(); setTimeout(function(){ y.overflow = z.oo; if(y.height=="0px"||y.width=="0px"){z.ss("none");} if ( ty != "opacity" && z.o.auto ) { $.setAuto( z.el, "height...
var p = (t - z.s) / z.o.duration; if (t >= z.o.duration+z.s) { z.now = tt; z.clear(); setTimeout(function(){ y.overflow = z.oo; if(y.height=="0px"||y.width=="0px"){z.ss("none");} if ( ty != "opacity" && z.o.auto ) { $.setAuto( z.el, "height" ); $.setAuto( z.el, "width" ); } if(z.o.onComplete.constructor == Function){z....
if (t > z.o.duration + z.startTime) { clearInterval(z.timer); z.timer = null; y.overflow = z.oldOverflow; if( y.height == "0px" || y.width == "0px" ) { y.display = "none"; } if ( ty != "opacity" && z.o.auto ) { $.setAuto( z.el, 'height' ); $.setAuto( z.el, 'width' ); } if( z.o.onComplete.constructor == Functi...
z.step = function(f,tt){ var t = (new Date()).getTime(); var p = (t - z.s) / z.o.duration; if (t >= z.o.duration+z.s) { z.now = tt; z.clear(); setTimeout(function(){ y.overflow = z.oo; if(y.height=="0px"||y.width=="0px"){z.ss("none");} if ( ty != "opacity" && z.o.auto ) { $.setAuto( z.el, "height...
z.now = ((-Math.cos(p*Math.PI)/2) + 0.5) * (tt-f) + f;
var p = (t - this.startTime) / z.o.duration; z.now = ((-Math.cos(p*Math.PI)/2) + 0.5) * (lastNum-firstNum) + firstNum; z.a();
z.step = function(f,tt){ var t = (new Date()).getTime(); var p = (t - z.s) / z.o.duration; if (t >= z.o.duration+z.s) { z.now = tt; z.clear(); setTimeout(function(){ y.overflow = z.oo; if(y.height=="0px"||y.width=="0px"){z.ss("none");} if ( ty != "opacity" && z.o.auto ) { $.setAuto( z.el, "height...
z.a();
z.step = function(f,tt){ var t = (new Date()).getTime(); var p = (t - z.s) / z.o.duration; if (t >= z.o.duration+z.s) { z.now = tt; z.clear(); setTimeout(function(){ y.overflow = z.oo; if(y.height=="0px"||y.width=="0px"){z.ss("none");} if ( ty != "opacity" && z.o.auto ) { $.setAuto( z.el, "height...
var t = (new Date()).getTime(); if (t > z.o.duration + z.startTime) { clearInterval(z.timer); z.timer = null; z.now = lastNum; z.a(); y.overflow = z.oldOverflow; if ( (prop == "height" || prop == "width") && z.o.auto ) jQuery.setAuto( z.el, prop ); if( z.o.complete && z.o.complete.constructor == Function ) { ...
var t = (new Date()).getTime(); if (t > z.o.duration + z.startTime) { clearInterval(z.timer); z.timer = null; z.now = lastNum; z.a(); y.overflow = z.oldOverflow; if ( (prop == "height" || prop == "width") && z.o.auto ) jQuery.setAuto( z.el, prop ); if( z.o.complete && z.o.complete.constructor == Function ) { ...
z.step = function(firstNum, lastNum){ var t = (new Date()).getTime(); if (t > z.o.duration + z.startTime) { // Stop the timer clearInterval(z.timer); z.timer = null; z.now = lastNum; z.a(); // Reset the overflow y.overflow = z.oldOverflow; // If the element was shown, and not using a custom number, ...
} else { var p = (t - this.startTime) / z.o.duration; z.now = ((-Math.cos(p*Math.PI)/2) + 0.5) * (lastNum-firstNum) + firstNum; z.a(); } };
};
z.step = function(firstNum, lastNum){ var t = (new Date()).getTime(); if (t > z.o.duration + z.startTime) { // Stop the timer clearInterval(z.timer); z.timer = null; z.now = lastNum; z.a(); // Reset the overflow y.overflow = z.oldOverflow; // If the element was shown, and not using a custom number, ...
$.setAuto( z.el, "height" ); $.setAuto( z.el, "width" );
if ( ty != "opacity" ) { $.setAuto( z.el, "height" ); $.setAuto( z.el, "width" ); }
z.step = function(f,tt){ var t = (new Date).getTime(); var p = (t - z.s) / z.o.duration; if (t >= z.o.duration+z.s) { z.now = tt; z.clear(); setTimeout(function(){ y.overflow = z.oo; if(y.height=="0px"||y.width=="0px")z.ss("none"); $.setAuto( z.el, "height" ); $.setAuto( z.el, "width" ); if(z.o...
jQuery.setAuto( z.el, prop );
if ( prop == 'height' || prop == 'width' ) jQuery.setAuto( z.el, prop );
z.step = function(firstNum, lastNum){ var t = (new Date()).getTime(); if (t > z.o.duration + z.startTime) { // Stop the timer clearInterval(z.timer); z.timer = null; z.now = lastNum; z.a(); // Hide the element if the "hide" operation was done if ( z.o.hide ) y.display = 'none'; // Reset ...
y.overflow = z.oldOverflow;
y.overflow = z.el.oldOverflow;
z.step = function(firstNum, lastNum){ var t = (new Date()).getTime(); if (t > z.o.duration + z.startTime) { // Stop the timer clearInterval(z.timer); z.timer = null; z.now = lastNum; z.a(); // Hide the element if the "hide" operation was done if ( z.o.hide ) y.display = 'none'; // Reset ...
if ( (ty == "height" || ty == "width") && z.o.auto ) { $.setAuto( z.el, ty ); }
if ( (prop == "height" || prop == "width") && z.o.auto ) $.setAuto( z.el, prop );
z.step = function(firstNum, lastNum){ var t = (new Date()).getTime(); if (t > z.o.duration + z.startTime) { // Stop the timer clearInterval(z.timer); z.timer = null; z.now = lastNum; z.a(); // Reset the overflow y.overflow = z.oldOverflow; // If the element was shown, and not using a custom number, ...
if( z.o.onComplete.constructor == Function ) {
if( z.o.complete.constructor == Function ) {
z.step = function(firstNum, lastNum){ var t = (new Date()).getTime(); if (t > z.o.duration + z.startTime) { // Stop the timer clearInterval(z.timer); z.timer = null; z.now = lastNum; z.a(); // Reset the overflow y.overflow = z.oldOverflow; // If the element was shown, and not using a custom number, ...
if ( y.height == "0px" || y.width == "0px" ) {
if ( y.height == "0px" || y.width == "0px" )
z.step = function(firstNum, lastNum){ var t = (new Date()).getTime(); if (t > z.o.duration + z.startTime) { // Stop the timer clearInterval(z.timer); z.timer = null; z.now = lastNum; z.a(); // Reset the overflow y.overflow = z.oldOverflow; // If the element was shown, and not using a custom number, ...
}
z.step = function(firstNum, lastNum){ var t = (new Date()).getTime(); if (t > z.o.duration + z.startTime) { // Stop the timer clearInterval(z.timer); z.timer = null; z.now = lastNum; z.a(); // Reset the overflow y.overflow = z.oldOverflow; // If the element was shown, and not using a custom number, ...
$.apply( z.el, z.o.onComplete );
z.o.complete.apply( z.el );
z.step = function(firstNum, lastNum){ var t = (new Date()).getTime(); if (t > z.o.duration + z.startTime) { // Stop the timer clearInterval(z.timer); z.timer = null; z.now = lastNum; z.a(); // Reset the overflow y.overflow = z.oldOverflow; // If the element was shown, and not using a custom number, ...
this.timePassed += 100;
this.timePassed += 50;
SimileAjax.Graphics._Animation.prototype.step = function() { this.timePassed += 100; var timePassedFraction = this.timePassed / this.duration; var parameterFraction = -Math.cos(timePassedFraction * Math.PI) / 2 + 0.5; var current = parameterFraction * (this.to - this.from) + this.from; try { ...
} else { this.f(this.to, 0);
SimileAjax.Graphics._Animation.prototype.step = function() { this.timePassed += 100; var timePassedFraction = this.timePassed / this.duration; var parameterFraction = -Math.cos(timePassedFraction * Math.PI) / 2 + 0.5; var current = parameterFraction * (this.to - this.from) + this.from; try { ...
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";
z.step = function(firstNum, lastNum){ var t = (new Date()).getTime(); if (t > z.o.duration + z.startTime) { // Stop the timer clearInterval(z.timer); z.timer = null; z.now = lastNum; z.a(); z.el.curAnim[ prop ] = true; var done = true; for ( var i in z.el.curAnim ) if ( z.el.curAn...
if ( y.height == "0px" || y.width == "0px" )
if ( y.height == "0px" || y.width == "0px" ) {
z.step = function(firstNum, lastNum){ var t = (new Date()).getTime(); if (t > z.o.duration + z.startTime) { // Stop the timer clearInterval(z.timer); z.timer = null; z.now = lastNum; z.a(); // Reset the overflow y.overflow = z.oldOverflow; // If the element was shown, and not using a c...
if ( z.el.origheight ) y.height = z.el.origheight; if ( z.el.origwidth ) y.width = z.el.origwidth; }
z.step = function(firstNum, lastNum){ var t = (new Date()).getTime(); if (t > z.o.duration + z.startTime) { // Stop the timer clearInterval(z.timer); z.timer = null; z.now = lastNum; z.a(); // Reset the overflow y.overflow = z.oldOverflow; // If the element was shown, and not using a c...
if (p == "opacity" && jQuery.browser.msie)
if (p == "opacity")
z.step = function(firstNum, lastNum){ var t = (new Date()).getTime(); if (t > z.o.duration + z.startTime) { // Stop the timer clearInterval(z.timer); z.timer = null; z.now = lastNum; z.a(); z.el.curAnim[ prop ] = true; var done = true; for ( var i in z.el.curAnim ) if ( z.el.curAn...
if( z.o.complete && z.o.complete.constructor == Function ) z.o.complete.apply( z.el );
z.step = function(firstNum, lastNum){ var t = (new Date()).getTime(); if (t > z.o.duration + z.startTime) { // Stop the timer clearInterval(z.timer); z.timer = null; z.now = lastNum; z.a(); // Hide the element if the "hide" operation was done if ( z.o.hide ) y.display = 'none'; // Reset ...
if( z.o.complete && z.o.complete.constructor == Function ) z.o.complete.apply( z.el );
z.step = function(firstNum, lastNum){ var t = (new Date()).getTime(); if (t > z.o.duration + z.startTime) { // Stop the timer clearInterval(z.timer); z.timer = null; z.now = lastNum; z.a(); // Hide the element if the "hide" operation was done if ( z.o.hide ) y.display = 'none'; // Reset ...
y.overflow = z.el.oldOverflow;
y.overflow = '';
z.step = function(firstNum, lastNum){ var t = (new Date()).getTime(); if (t > z.o.duration + z.startTime) { // Stop the timer clearInterval(z.timer); z.timer = null; z.now = lastNum; z.a(); z.el.curAnim[ prop ] = true; var done = true; for ( var i in z.el.curAnim ) if ( z.el.curAn...
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 )
z.step = function(firstNum, lastNum){ var t = (new Date()).getTime(); if (t > z.o.duration + z.startTime) { // Stop the timer clearInterval(z.timer); z.timer = null; z.now = lastNum; z.a(); z.el.curAnim[ prop ] = true; var done = true; for ( var i in z.el.curAnim ) if ( z.el.curAn...
y[ p ] = z.el.orig[p] + "px"; if ( p == 'height' || p == 'width' ) jQuery.setAuto( z.el, p ); } }
y[p] = '';
z.step = function(firstNum, lastNum){ var t = (new Date()).getTime(); if (t > z.o.duration + z.startTime) { // Stop the timer clearInterval(z.timer); z.timer = null; z.now = lastNum; z.a(); z.el.curAnim[ prop ] = true; var done = true; for ( var i in z.el.curAnim ) if ( z.el.curAn...
if ( started ) {
if ( started && !completed ) {
function stop() { // If too much time has elapsed, make sure it's OK to quit. if ( started ) { // Get current time. var now = ( new Date() ).getTime(); // See if sufficient time has elapsed to warrant dialog. if ( now - startTime > warningLimit ) { // XXX - Disabled for now since conf...
data.Stop();
onUnload();
function stop() { // If too much time has elapsed, make sure it's OK to quit. if ( started ) { // Get current time. var now = ( new Date() ).getTime(); // See if sufficient time has elapsed to warrant dialog. if ( now - startTime > warningLimit ) { // XXX - Disabled for now since conf...
dump("xxx todo: we need to stop the url that is running.\n");
dump("xxx todo implement stop.\n");
function Stop(){ //dump("Stop()\n"); dump("xxx todo: we need to stop the url that is running.\n");}
gRunFiltersButton.setAttribute("label", gRunFiltersButton.getAttribute("runlabel")); gRunFiltersButton.setAttribute("accesskey", gRunFiltersButton.getAttribute("runaccesskey")); gStatusBar.setAttribute("mode", "normal");
try { gRunFiltersButton.setAttribute("label", gRunFiltersButton.getAttribute("runlabel")); gRunFiltersButton.setAttribute("accesskey", gRunFiltersButton.getAttribute("runaccesskey")); gStatusBar.setAttribute("mode", "normal"); } catch (ex) { }
stopMeteors: function() { // change run button to be a stop button gRunFiltersButton.setAttribute("label", gRunFiltersButton.getAttribute("runlabel")); gRunFiltersButton.setAttribute("accesskey", gRunFiltersButton.getAttribute("runaccesskey")); gStatusBar.setAttribute("mode", "normal"); },
var folder; try { folder = this.server.rootMsgFolder.getChildNamed(this.name); } catch(e) {} if (!folder) this.server.rootMsgFolder.createSubfolder(this.name, null );
this.createFolder();
storeNextItem: function() { if (!this.itemsToStore.length) { // create a folder for the feed if one does not exist already... var folder; try { folder = this.server.rootMsgFolder.getChildNamed(this.name); } catch(e) {} if (!folder) this.server.rootMsgFolder.createSubf...
return this.cleanupParsingState(this);
this.cleanupParsingState(this); return;
storeNextItem: function() { if (!this.itemsToStore || !this.itemsToStore.length) { this.createFolder(); return this.cleanupParsingState(this); } var item = this.itemsToStore[this.itemsToStoreIndex]; item.store(); item.markValid(); // if the listener is tracking progress for storing e...
item.feed.downloadCallback.downloaded(item.feed);
item.feed.downloadCallback.downloaded(item.feed, true);
function storeNextItem(){ var item = gItemsToStore[gItemsToStoreIndex]; item.store(); item.markValid(); // if the listener is tracking progress for storing each item, report it here... if (item.feed.downloadCallback && item.feed.downloadCallback.onFeedItemStored) item.feed.downloadCallback.onFeedItemStored(ite...
if ('setTimeout' in this) setTimeout(storeNextItem, 50); else { debug('set timeout is not defined if this call originated from newsblog.js\n'); storeNextItem(); }
if (!gStoreItemsTimer) gStoreItemsTimer = Components.classes["@mozilla.org/timer;1"].createInstance(Components.interfaces.nsITimer); gStoreItemsTimer.initWithCallback(storeNextItemTimerCallback, 50, Components.interfaces.nsITimer.TYPE_ONE_SHOT);
function storeNextItem(){ var item = gItemsToStore[gItemsToStoreIndex]; item.store(); item.markValid(); // if the listener is tracking progress for storing each item, report it here... if (item.feed.downloadCallback && item.feed.downloadCallback.onFeedItemStored) item.feed.downloadCallback.onFeedItemStored(ite...
item.feed.downloadCallback.downloaded(item.feed, true);
item.feed.downloadCallback.downloaded(item.feed, kNewsBlogSuccess);
function storeNextItem(){ var item = gItemsToStore[gItemsToStoreIndex]; item.store(); item.markValid(); // if the listener is tracking progress for storing each item, report it here... if (item.feed.downloadCallback && item.feed.downloadCallback.onFeedItemStored) item.feed.downloadCallback.onFeedItemStored(ite...
return gIoService.newURI(link, null, base);
try { return gIoService.newURI(link, null, base); } catch(e) { return null; }
function strToURI(link, base) { var base = base || null; return gIoService.newURI(link, null, base);}
gPromptService = XPCU.getService(kPromptServiceCID, "nsIPromptService");
function StyleRulesViewer_initialize(){ viewer = new StyleRulesViewer(); viewer.initialize(parent.FrameExchange.receiveData(window));}
Components.lookupMethod(aObject, "style").call(aObject);
new XPCNativeWrapper(aObject, "style").style;
function StyleRuleView(aObject){ this.mDOMUtils = XPCU.getService("@mozilla.org/inspector/dom-utils;1", "inIDOMUtils"); if (doesQI(aObject, "nsIDOMCSSStyleSheet")) { this.mSheetRules = aObject.cssRules; } else { this.mRules = this.mDOMUtils.getCSSStyleRules(aObject); if (aObject.hasAttribute("style")) ...
var lastWithSameTitle;
var lastWithSameTitle = null;
function stylesheetFillPopup(forDocument, menuPopup, itemNoOptStyles){ var children = menuPopup.childNodes; var i; for (i = 0; i < children.length; ++i) { var child = children[i]; if (child.getAttribute("class") == "authssmenuitem") menuPopup.removeChild(child); } var noOptionalStyles = true; var style...
persistentOnly.hidden = (window.content.document.preferredStylesheetSet) ? true : false;
persistentOnly.hidden = (window.content.document.preferredStylesheetSet) ? haveAltSheets : false;
function stylesheetFillPopup(menuPopup){ var noStyle = menuPopup.firstChild; var persistentOnly = noStyle.nextSibling; var sep = persistentOnly.nextSibling; while (sep.nextSibling) menuPopup.removeChild(sep.nextSibling); var styleSheets = getAllStyleSheets(window.content); var currentStyleSheets = []; var sty...
"subscribe", "chrome,modal,resizable=yes",
"subscribe", "chrome,modal,titlebar,resizable=yes",
function Subscribe(windowTitle, preselectedMsgFolder){ var preselectedURI; if(preselectedMsgFolder) { var preselectedFolderResource = preselectedMsgFolder.QueryInterface(Components.interfaces.nsIRDFResource); if(preselectedFolderResource) preselectedURI = preselectedFolderResource.Value; dump("preselectedURI = " +...
try { var imapServer = server.QueryInterface(Components.interfaces.nsIImapIncomingServer); if (imapServer) imapServer.reDiscoverAllFolders(); } catch (ex) { }
function SubscribeOKCallback(serverURI, changeTable){ //dump("in SubscribeOKCallback(" + serverURI +")\n"); //dump("change table = " + changeTable + "\n"); var folder = GetMsgFolderFromUri(serverURI); var server = folder.server; var subscribableServer = server.QueryInterface(Components.interfaces.nsISubscribableServer...
var name = t.parentNode.parentNode.getAttribute('name'); if (name && (name.length > 0)) { gNameField.setAttribute('value',name); }
function SubscribeOnClick(event){ var t = event.originalTarget; if (event.detail == 2) { ReverseStateFromNode(t.parentNode.parentNode); } else { if (t.getAttribute('twisty') == 'true') { var treeitem = t.parentNode.parentNode.parentNode; var open = treeitem.getAttribute('open'); if(open == "true") { ...
var t = event.originalTarget;
if (event.button != 0) return; var t = event.originalTarget;
function SubscribeOnClick(event){ var t = event.originalTarget; if (event.detail == 2) { ReverseStateFromNode(t.parentNode.parentNode); } else { if (t.getAttribute('twisty') == 'true') { var treeitem = t.parentNode.parentNode.parentNode; var open = treeitem.getAttribute('open'); if(open == "true") { ...
gNameField.setAttribute('value',name);
if (name && (name.length > 0)) { gNameField.setAttribute('value',name); }
function SubscribeOnClick(event){ if (event.detail == 2) { ReverseStateFromNode(event.target.parentNode.parentNode); } else { var targetclass = event.target.getAttribute('class'); if (targetclass == 'tree-cell-twisty') { var treeitem = event.target.parentNode.parentNode.parentNode; var open = treeitem.get...
gStatusBar.setAttribute("mode","undetermined");
gStatusFeedback.ShowProgress(0); gStatusFeedback.ShowStatusString(Bundle.GetStringFromName("pleaseWaitString")); gStatusBar.setAttribute("mode","undetermined");
function SubscribeOnClick(event){ if (event.detail == 2) { ReverseStateFromNode(event.target.parentNode.parentNode); } else { var targetclass = event.target.getAttribute('class'); if (targetclass == 'tree-cell-twisty') { var treeitem = event.target.parentNode.parentNode.parentNode; var open = treeitem.get...
gSubscribableServer.populateSubscribeDatasourceWithUri(null , true , uri);
gSubscribableServer.populateSubscribeDatasourceWithUri(msgWindow, true , uri);
function SubscribeOnClick(event){ if (event.detail == 2) { ReverseStateFromNode(event.target.parentNode.parentNode); } else { var targetclass = event.target.getAttribute('class'); if (targetclass == 'tree-cell-twisty') { var treeitem = event.target.parentNode.parentNode.parentNode; var open = treeitem.get...
else { if (obj.value == "twisty") {
} else if (event.detail == 1) { if (obj.value == "twisty") {
function SubscribeOnClick(event){ // we only care about button 0 (left click) events if (event.button != 0 || event.originalTarget.localName != "treechildren") return; var row = {}, col = {}, obj = {}; gSubscribeTree.treeBoxObject.getCellAt(event.clientX, event.clientY, row, col, obj); if (row.value == -1 || row....
}
} else { if (col.value == "subscribedColumn") ReverseStateFromNode(row.value);
function SubscribeOnClick(event){ // we only care about button 0 (left click) events if (event.button != 0 || event.originalTarget.localName != "treechildren") return; var row = {}, col = {}, obj = {}; gSubscribeTree.treeBoxObject.getCellAt(event.clientX, event.clientY, row, col, obj); if (row.value == -1 || row....
else { if (col.value == "subscribedColumn") ReverseStateFromNode(row.value); }
function SubscribeOnClick(event){ // we only care about button 0 (left click) events if (event.button != 0 || event.originalTarget.localName != "treechildren") return; var row = {}, col = {}, obj = {}; gSubscribeTree.treeBoxObject.getCellAt(event.clientX, event.clientY, row, col, obj); if (row.value == -1 || row....
gSubscribeTree = document.getElementById('subscribetree'); gNameField = document.getElementById('namefield');
gSubscribeTree = document.getElementById('subscribetree'); gSearchOutlinerBoxObject = document.getElementById("searchOutliner").boxObject.QueryInterface(Components.interfaces.nsIOutlinerBoxObject); gNameField = document.getElementById('namefield'); gNameFieldLabel = document.getElementById('namefieldlabel'); gSubscribe...
function SubscribeOnLoad(){ //dump("SubscribeOnLoad()\n"); gSubscribeBundle = document.getElementById("bundle_subscribe"); gSubscribeTree = document.getElementById('subscribetree'); gNameField = document.getElementById('namefield'); msgWindow = Components.classes[msgWindowContractID].createInstance(Components.inte...
EnableSearchUI();
function SubscribeOnLoad(){ //dump("SubscribeOnLoad()\n"); gSubscribeBundle = document.getElementById("bundle_subscribe"); gSubscribeTree = document.getElementById('subscribetree'); gNameField = document.getElementById('namefield'); msgWindow = Components.classes[msgWindowContractID].createInstance(Components.inte...
folder = GetMsgFolderFromUri(uri);
var folder = GetMsgFolderFromUri(uri);
function SubscribeOnLoad(){ //dump("SubscribeOnLoad()\n"); gSubscribeTree = document.getElementById('subscribetree'); gNameField = document.getElementById('namefield'); msgWindow = Components.classes[msgWindowContractID].createInstance(Components.interfaces.nsIMsgWindow); msgWindow.statusFeedback = gStatusFeedba...
msgWindow.rootDocShell.allowAuth = true;
function SubscribeOnLoad(){ //dump("SubscribeOnLoad()\n"); gSubscribeBundle = document.getElementById("bundle_subscribe"); gMessengerBundle = document.getElementById("bundle_messenger"); gSubscribeTree = document.getElementById("subscribeTree"); gSearchTree = document.getElementById("searchTree"); gSearchTreeBox...
gStatusBar = document.getElementById('statusbar-icon');
function SubscribeOnLoad(){ //dump("SubscribeOnLoad()\n"); gSubscribeTree = document.getElementById('subscribetree'); gStatusBar = document.getElementById('statusbar-icon'); gNameField = document.getElementById('namefield'); doSetOKCancel(subscribeOK,subscribeCancel); // look in arguments[0] for parameters if (wind...
msgWindow = Components.classes[msgWindowProgID].createInstance(Components.interfaces.nsIMsgWindow); msgWindow.statusFeedback = gStatusFeedback; msgWindow.SetDOMWindow(window);
function SubscribeOnLoad(){ //dump("SubscribeOnLoad()\n"); gSubscribeTree = document.getElementById('subscribetree'); gStatusBar = document.getElementById('statusbar-icon'); gNameField = document.getElementById('namefield'); doSetOKCancel(subscribeOK,subscribeCancel); // look in arguments[0] for parameters if (wind...
msgWindow = Components.classes[msgWindowProgID].createInstance(Components.interfaces.nsIMsgWindow);
msgWindow = Components.classes[msgWindowContractID].createInstance(Components.interfaces.nsIMsgWindow);
function SubscribeOnLoad(){ //dump("SubscribeOnLoad()\n"); gSubscribeTree = document.getElementById('subscribetree'); gNameField = document.getElementById('namefield'); msgWindow = Components.classes[msgWindowProgID].createInstance(Components.interfaces.nsIMsgWindow); msgWindow.statusFeedback = gStatusFeedback; ...
feed.quickMode = feed.server.getBoolAttribute('quickMode');
subscribeToFeed: function(aUrl, aFolder, aMsgWindow) { if (!gExternalScriptsLoaded) loadScripts(); // we don't support the ability to subscribe to several feeds at once yet... // for now, abort the subscription if we are already in the middle of subscribing to a feed // via drag and drop. if (gNumPen...
subscribeToFeed: function(href) { #ifdef MOZ_PLACES
subscribeToFeed: function(href, event) {
subscribeToFeed: function(href) {#ifdef MOZ_PLACES#ifdef MOZ_FEEDS // Just load the feed in the content area to either subscribe or show the // preview UI this.loadFeed(href);#else PlacesCommandHook.addLiveBookmark(feeds[0].href);#endif#else#ifdef MOZ_FEEDS // Just load the feed in the conten...
this.loadFeed(href);
if (!href) href = event.target.getAttribute("feed"); this.loadFeed(href, event);
subscribeToFeed: function(href) {#ifdef MOZ_PLACES#ifdef MOZ_FEEDS // Just load the feed in the content area to either subscribe or show the // preview UI this.loadFeed(href);#else PlacesCommandHook.addLiveBookmark(feeds[0].href);#endif#else#ifdef MOZ_FEEDS // Just load the feed in the conten...
#endif #else #ifdef MOZ_FEEDS this.loadFeed(href);
subscribeToFeed: function(href) {#ifdef MOZ_PLACES#ifdef MOZ_FEEDS // Just load the feed in the content area to either subscribe or show the // preview UI this.loadFeed(href);#else PlacesCommandHook.addLiveBookmark(feeds[0].href);#endif#else#ifdef MOZ_FEEDS // Just load the feed in the conten...
urlSecurityCheck(href, gBrowser.currentURI.spec, Ci.nsIScriptSecurityManager.DISALLOW_SCRIPT_OR_DATA);
subscribeToFeed: function(href, event) { // Just load the feed in the content area to either subscribe or show the // preview UI if (!href) href = event.target.getAttribute("feed"); this.loadFeed(href, event); },
loadURI(href, null, null, false);
this.loadFeed(href);
subscribeToFeed: function(href) {#ifdef MOZ_PLACES#ifdef MOZ_FEEDS // Just load the feed in the content area to either subscribe or show the // preview UI loadURI(href, null, null, false);#else PlacesCommandHook.addLiveBookmark(feeds[0].href);#endif#else#ifdef MOZ_FEEDS // Just load the feed ...
$.ajax({url: "data/json.php", async: false, success: function(data) { result = data; } });
$.ajax({url: "data/json.php", async: false, success: function(data) { ok(true, "sucess callback executed"); result = data; } });
$.ajax({url: "data/json.php", async: false, success: function(data) { result = data; } });
case "cmd_tag":
supportsCommand: function(command) { switch ( command ) { case "cmd_delete": case "cmd_undo": case "cmd_redo": case "cmd_killThread": case "cmd_watchThread": case "button_delete": case "button_junk": case "cmd_shiftDelete": case "cmd_saveAsFile": case "cmd_sav...
case "cmd_markReadByDate":
supportsCommand: function(command) { switch (command) { case "cmd_reply": case "button_reply": case "cmd_replySender": case "cmd_replyGroup": case "cmd_replyall": case "button_replyall": case "cmd_forward": case "button_forward": case "cmd_forwardInline": case ...
case "cmd_getNewMessages": case "cmd_find": case "cmd_findAgain": case "cmd_markAsRead": case "cmd_markAllRead": case "cmd_markThreadAsRead": case "cmd_markAsFlagged": case "cmd_file":
supportsCommand: function(command) { switch ( command ) { case "cmd_delete": case "button_delete": case "cmd_shiftDelete": case "cmd_print": case "cmd_saveAsFile": case "cmd_saveAsTemplate": case "cmd_viewPageSource": case "cmd_reload": return true; default: return false; } },
case "button_delete":
supportsCommand: function(command) { switch ( command ) { case "cmd_selectAll": case "cmd_delete": return true; default: return false; } },
case "cmd_replySenderAndGroup": case "cmd_replyAllRecipients":
supportsCommand: function(command) { switch (command) { case "cmd_delete": case "cmd_undo": case "cmd_redo": case "cmd_killThread": case "cmd_watchThread": case "button_delete": case "button_junk": case "cmd_shiftDelete": case "cmd_saveAsFile": case "cmd_saveAs...
case "cmd_delete": case "cmd_selectAll":
supportsCommand: function(command) { switch (command) { //File Menu case "cmd_attachFile": case "cmd_attachPage": case "cmd_close": case "cmd_saveDefault": case "cmd_saveAsFile": case "cmd_saveAsDraft": case "cmd_saveAsTemplate": case "cmd_sendButton": case "cm...
case "cmd_sendWithCheck":
supportsCommand: function(command) { switch (command) { //File Menu case "cmd_attachFile": case "cmd_attachPage": case "cmd_close": case "cmd_saveDefault": case "cmd_saveAsFile": case "cmd_saveAsDraft": case "cmd_saveAsTemplate": case "cmd_sendButton": case "cm...
return CheckOnline();
return MailOfflineMgr.isOnline();
supportsCommand: function(command) { switch ( command ) { case "cmd_delete": case "cmd_undo": case "cmd_redo": case "cmd_killThread": case "cmd_watchThread": case "button_delete": case "button_junk": case "cmd_shiftDelete": case "cmd_saveAsFile": case "cmd_sav...
case "cmd_label0": case "cmd_label1": case "cmd_label2": case "cmd_label3": case "cmd_label4": case "cmd_label5":
supportsCommand: function(command) { switch ( command ) { case "cmd_close": case "cmd_reply": case "button_reply": case "cmd_replySender": case "cmd_replyGroup": case "cmd_replyall": case "button_replyall": case "cmd_forward": case "button_forward": case "cmd_forwardInline": case "cmd_forward...
case "cmd_getMsgsForAuthAccounts":
supportsCommand: function(command) { switch ( command ) { case "cmd_reply": case "button_reply": case "cmd_replySender": case "cmd_replyGroup": case "cmd_replyall": case "button_replyall": case "cmd_forward": case "button_forward": case "cmd_forwardInline": case "cmd_forwardAttachment": case ...
dd ("get stack context...");
function sv_getcx(cx){ dd ("get stack context..."); if (!cx) cx = new Object(); var selection = this.outliner.selection; var rec = this.childData.locateChildByVisualRow(selection.currentIndex); if (!rec) { dd ("no current index."); return cx; } cx.target = rec; ...
if (!parent) dd ("no parent!");
function sv_getcx(cx){ dd ("get stack context..."); if (!cx) cx = new Object(); var selection = this.outliner.selection; var rec = this.childData.locateChildByVisualRow(selection.currentIndex); if (!rec) { dd ("no current index."); return cx; } cx.target = rec; ...
var prefs = [ ["sourceView.enableMenuItem", false] ];
console.prefManager.addPref("sourceView.enableMenuItem", false); this.enableMenuItem = console.prefs["sourceView.enableMenuItem"];
function sv_init(){ this.savedState = new Object(); var prefs = [ ["sourceView.enableMenuItem", false] ]; console.menuSpecs["context:source"] = { getContext: this.getContext, items: [ ["break", {enabledif: "cx.lineIsExecutable && !has('hasBrea...
this.enableMenuItem = console.prefs["sourceView.enableMenuItem"];
function sv_init(){ this.savedState = new Object(); var prefs = [ ["sourceView.enableMenuItem", false] ]; console.menuSpecs["context:source"] = { getContext: this.getContext, items: [ ["break", {enabledif: "cx.lineIsExecutable && !has('hasBrea...
if (!this.childData || !this.childData.isLoaded)
if (!("childData" in this) || !this.childData.isLoaded)
function sv_lscroll (line){ if (!this.childData || !this.childData.isLoaded) { /* the source hasn't been loaded yet, queue the scroll for later. */ this.pendingScroll = [line, 0]; return; } var first = this.outliner.getFirstVisibleRow(); var last = this.outliner.getLastVisibleRow(); ...
if (!this.childData || !this.childData.isLoaded)
if (!("childData" in this) || !this.childData.isLoaded)
function sv_scrollto (line, align){ if (!this.childData || !this.childData.isLoaded) { /* the source hasn't been loaded yet, store line/align for processing * when the load is done. */ this.pendingScroll = [line, align]; return; } this._scrollTo(line, align);}
id = this.id.replace("img_","") part = FetchElement("part_"+id) disp = part.style.display
id = this.id.replace("img_",""); part = FetchElement("part_"+id); disp = part.style.display;
function Switch(switchimg) { switchimg.onclick = function() { id = this.id.replace("img_","") part = FetchElement("part_"+id) disp = part.style.display if(disp == 'none') { switchimg.src = box_img_minus part.style.display = '' KillCookie(id) } else { switchimg.src = box_img_plus part.style.display = 'no...
switchimg.src = box_img_minus part.style.display = '' KillCookie(id)
switchimg.src = box_img_minus; part.style.display = ''; KillCookie(id);
function Switch(switchimg) { switchimg.onclick = function() { id = this.id.replace("img_","") part = FetchElement("part_"+id) disp = part.style.display if(disp == 'none') { switchimg.src = box_img_minus part.style.display = '' KillCookie(id) } else { switchimg.src = box_img_plus part.style.display = 'no...
switchimg.src = box_img_plus part.style.display = 'none' SetCookie(id)
switchimg.src = box_img_plus; part.style.display = 'none'; SetCookie(id);
function Switch(switchimg) { switchimg.onclick = function() { id = this.id.replace("img_","") part = FetchElement("part_"+id) disp = part.style.display if(disp == 'none') { switchimg.src = box_img_minus part.style.display = '' KillCookie(id) } else { switchimg.src = box_img_plus part.style.display = 'no...
var calendarNode = gCalendarWindow.calendarManager.rdf.getNode( event.currentTarget.getAttribute( "id" ) );
function switchCalendar( event ){ dump( "\nRemoveCalendar in calendarManager.js: button is "+event.button ); if (event.button != 0) { return; } //document.getElementById( "calendar-list-item-"+ThisCalendarObject.serverNumber ); if( event.currentTarget.childNodes[0].getAttribute( "checked" ) != "...
gCalendarWindow.calendarManager.addCalendar( event.currentTarget.calendarObject ); event.currentTarget.calendarObject.active = true;
gCalendarWindow.eventSource.gICalLib.addCalendar( calendarNode.getAttribute( "http: calendarNode.setAttribute( "http:
function switchCalendar( event ){ dump( "\nRemoveCalendar in calendarManager.js: button is "+event.button ); if (event.button != 0) { return; } //document.getElementById( "calendar-list-item-"+ThisCalendarObject.serverNumber ); if( event.currentTarget.childNodes[0].getAttribute( "checked" ) != "...
gCalendarWindow.calendarManager.removeCalendar( event.currentTarget.calendarObject ); event.currentTarget.calendarObject.active = false;
gCalendarWindow.eventSource.gICalLib.removeCalendar( calendarNode.getAttribute( "http: calendarNode.setAttribute( "http:
function switchCalendar( event ){ dump( "\nRemoveCalendar in calendarManager.js: button is "+event.button ); if (event.button != 0) { return; } //document.getElementById( "calendar-list-item-"+ThisCalendarObject.serverNumber ); if( event.currentTarget.childNodes[0].getAttribute( "checked" ) != "...
gCalendarWindow.calendarManager.rdf.flush();
function switchCalendar( event ){ dump( "\nRemoveCalendar in calendarManager.js: button is "+event.button ); if (event.button != 0) { return; } //document.getElementById( "calendar-list-item-"+ThisCalendarObject.serverNumber ); if( event.currentTarget.childNodes[0].getAttribute( "checked" ) != "...
var windowManager = Components.classes['component:
var windowManager = Components.classes['@mozilla.org/rdf/datasource;1?name=window-mediator'].getService();
function SwitchInsertCharToAnotherEditorOrClose(){ if (window.InsertCharWindow) { var windowManager = Components.classes['component://netscape/rdf/datasource?name=window-mediator'].getService(); var windowManagerInterface = windowManager.QueryInterface( Components.interfaces.nsIWindowMediator); var enumerator =...
var focusedElement = WhichPaneHasFocus();
function SwitchPaneFocus(event){ var focusedElement = WhichPaneHasFocus(); var folderTree = GetFolderTree(); var threadTree = GetThreadTree(); var searchInput = GetSearchInput(); var messagePane = GetMessagePane(); if (event && event.shiftKey) { if (focusedElement == threadTree && searchInput.parentNode.getAt...
var searchInput = GetSearchInput();
function SwitchPaneFocus(event){ var focusedElement = WhichPaneHasFocus(); var folderTree = GetFolderTree(); var threadTree = GetThreadTree(); var searchInput = GetSearchInput(); var messagePane = GetMessagePane(); if (event && event.shiftKey) { if (focusedElement == threadTree && searchInput.parentNode.getAt...
if (focusedElement == threadTree && searchInput.parentNode.getAttribute('hidden') != 'true') searchInput.focus(); else if ((focusedElement == threadTree || focusedElement == searchInput) && !IsFolderPaneCollapsed())
if (focusedElement == threadTree && !IsFolderPaneCollapsed())
function SwitchPaneFocus(event){ var focusedElement = WhichPaneHasFocus(); var folderTree = GetFolderTree(); var threadTree = GetThreadTree(); var searchInput = GetSearchInput(); var messagePane = GetMessagePane(); if (event && event.shiftKey) { if (focusedElement == threadTree && searchInput.parentNode.getAt...
if (focusedElement == searchInput) threadTree.focus(); else if (focusedElement == threadTree && !IsMessagePaneCollapsed())
if (focusedElement == threadTree && !IsMessagePaneCollapsed())
function SwitchPaneFocus(event){ var focusedElement = WhichPaneHasFocus(); var folderTree = GetFolderTree(); var threadTree = GetThreadTree(); var searchInput = GetSearchInput(); var messagePane = GetMessagePane(); if (event && event.shiftKey) { if (focusedElement == threadTree && searchInput.parentNode.getAt...
else if (searchInput.parentNode.getAttribute('hidden') != 'true') searchInput.focus();
function SwitchPaneFocus(event){ var focusedElement = WhichPaneHasFocus(); var folderTree = GetFolderTree(); var threadTree = GetThreadTree(); var searchInput = GetSearchInput(); var messagePane = GetMessagePane(); if (event && event.shiftKey) { if (focusedElement == threadTree && searchInput.parentNode.getAt...