rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
if (e.type == "info") data = "'" + e.msg + "'"; | function event_tracer (e){ var name="", data=""; switch (e.set) { case "server": name = e.destObject.connection.host; if (e.type == "rawdata") data = "'" + e.data + "'"; if (e.type == "senddata") data = "'" + e.destObject.sendQueue[0].replac... | |
data = "'" + nextLine.replace ("\n", "\\n") + "' (may retry a few times)"; | if (nextLine) data = "'" + nextLine.replace ("\n", "\\n") + "' (may retry a few times)"; else data = "!!! Nothing to send !!!"; | function event_tracer (e){ var name=""; var data=""; switch (e.set) { case "server": name = e.destObject.connection.host; if (e.type == "rawdata") data = "'" + e.data + "'"; if (e.type == "senddata") { var nextLine = ... |
var data = (e.debug) ? e.debug : ""; | var data = ("debug" in e) ? e.debug : ""; | function event_tracer (e){ var name = ""; var data = (e.debug) ? e.debug : ""; switch (e.set) { case "server": name = e.destObject.connection.host; if (e.type == "rawdata") data = "'" + e.data + "'"; if (e.type == "senddata") { ... |
if (nextLine) data = "'" + nextLine.replace ("\n", "\\n") + "' (may retry a few times)"; | if ("logged" in nextLine) return true; if (nextLine) { data = "'" + nextLine.replace ("\n", "\\n") + "'"; nextLine.logged = true; } | function event_tracer (e){ var name = ""; var data = (e.debug) ? e.debug : ""; switch (e.set) { case "server": name = e.destObject.connection.host; if (e.type == "rawdata") data = "'" + e.data + "'"; if (e.type == "senddata") { ... |
data = "!!! Nothing to send !!!"; if (debugData.lastEventType == "senddata" && debugData.lastEventData == data) { return; } | data = "!!! Nothing to send !!!"; | function event_tracer (e){ var name = ""; var data = (e.debug) ? e.debug : ""; switch (e.set) { case "server": name = e.destObject.connection.host; if (e.type == "rawdata") data = "'" + e.data + "'"; if (e.type == "senddata") { ... |
str = "Level " + e.level + ": '" + e.type + "', " + | var str = "Level " + e.level + ": '" + e.type + "', " + | function event_tracer (e){ var name = ""; var data = (e.debug) ? e.debug : ""; switch (e.set) { case "server": name = e.destObject.connection.host; if (e.type == "rawdata") data = "'" + e.data + "'"; if (e.type == "senddata") { ... |
debugData.lastEventType = e.type; debugData.lastEventData = data; | function event_tracer (e){ var name = ""; var data = (e.debug) ? e.debug : ""; switch (e.set) { case "server": name = e.destObject.connection.host; if (e.type == "rawdata") data = "'" + e.data + "'"; if (e.type == "senddata") { ... | |
sHTMLHeader = | const sHTMLHeader = | function eventArrayToHTML( calendarEventArray ){ sHTMLHeader = "<html>\n" + "<head>\n" + "<title>Mozilla Calendar</title>\n" + "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n" + "</head>\n"+ "<body bgcolor=\"#FFFFFF\" text=\"#000000\">\n"; sHTMLFooter = "\n</body>\n</... |
sHTMLFooter = | const sHTMLFooter = | function eventArrayToHTML( calendarEventArray ){ sHTMLHeader = "<html>\n" + "<head>\n" + "<title>Mozilla Calendar</title>\n" + "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n" + "</head>\n"+ "<body bgcolor=\"#FFFFFF\" text=\"#000000\">\n"; sHTMLFooter = "\n</body>\n</... |
sHTMLText += "<p>"; | var start = new Date(calendarEvent.start.getTime()); var end = new Date(calendarEvent.end.getTime()); var when = dateFormat.formatInterval(start, end, calendarEvent.allDay); var desc = calendarEvent.description; if (desc == null) desc = ""; if (desc.length > 0) { if (desc.indexOf("\n ") >= 0 || desc.indexOf("\n\t") >= ... | function eventArrayToHTML( calendarEventArray ){ sHTMLHeader = "<html>\n" + "<head>\n" + "<title>"+gCalendarBundle.getString( "HTMLTitle" )+"</title>\n" + "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n" + "</head>\n"+ "<body bgcolor=\"#FFFFFF\" text=\"#000000\">\n"; sHTML... |
sHTMLText += "<B>"+gCalendarBundle.getString( "eventDescription" )+"</B>\t" + calendarEvent.description + "<BR>\n"; sHTMLText += "<B>"+gCalendarBundle.getString( "eventWhen" )+"</B>" + formatDateTimeInterval(calendarEvent.start, calendarEvent.end) + "<BR>\n"; sHTMLText += "<B>"+gCalendarBundle.getString( "eventWhere" )... | sHTMLText += "<B>"+gCalendarBundle.getString( "eventWhen" )+"</B>\t" + when.replace("--", "–") + "<BR>\n"; sHTMLText += "<B>"+gCalendarBundle.getString( "eventWhere" )+"</B>\t" + calendarEvent.location + "<BR>\n"; | function eventArrayToHTML( calendarEventArray ){ sHTMLHeader = "<html>\n" + "<head>\n" + "<title>"+gCalendarBundle.getString( "HTMLTitle" )+"</title>\n" + "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n" + "</head>\n"+ "<body bgcolor=\"#FFFFFF\" text=\"#000000\">\n"; sHTML... |
sHTMLText += "</p>"; | sHTMLText += "</p>\n"; sHTMLText += desc; sHTMLText += "</div>\n"; | function eventArrayToHTML( calendarEventArray ){ sHTMLHeader = "<html>\n" + "<head>\n" + "<title>"+gCalendarBundle.getString( "HTMLTitle" )+"</title>\n" + "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n" + "</head>\n"+ "<body bgcolor=\"#FFFFFF\" text=\"#000000\">\n"; sHTML... |
var calendarEvent = calendarEventArray[ eventArrayIndex ].clone(); | var calendarObject = calendarEventArray[ eventArrayIndex ].clone(); | function eventArrayToICalString( calendarEventArray, doPatchForExport ){ if( !calendarEventArray) calendarEventArray = gCalendarWindow.EventSelection.selectedEvents; var sTextiCalendar = ""; for( var eventArrayIndex = 0; eventArrayIndex < calendarEventArray.length; ++eventArrayIndex ) { var calend... |
if(calendarEvent.allDay != true) convertLocalToZulu( calendarEvent ); | if( isEvent(calendarObject) && calendarObject.allDay != true ) convertLocalToZulu( calendarObject ); | function eventArrayToICalString( calendarEventArray, doPatchForExport ){ if( !calendarEventArray) calendarEventArray = gCalendarWindow.EventSelection.selectedEvents; var sTextiCalendar = ""; for( var eventArrayIndex = 0; eventArrayIndex < calendarEventArray.length; ++eventArrayIndex ) { var calend... |
if( calendarEvent.method == 0 ) calendarEvent.method = calendarEvent.ICAL_METHOD_PUBLISH; if( calendarEvent.stamp.year == 0 ) calendarEvent.stamp.setTime( new Date() ); | if( calendarObject.method == 0 ) calendarObject.method = calendarObject.ICAL_METHOD_PUBLISH; if( calendarObject.stamp.year == 0 ) calendarObject.stamp.setTime( new Date() ); | function eventArrayToICalString( calendarEventArray, doPatchForExport ){ if( !calendarEventArray) calendarEventArray = gCalendarWindow.EventSelection.selectedEvents; var sTextiCalendar = ""; for( var eventArrayIndex = 0; eventArrayIndex < calendarEventArray.length; ++eventArrayIndex ) { var calend... |
if ( doPatchForExport ) sTextiCalendar += patchICalStringForExport( calendarEvent.getIcalString() ); | if ( isEvent(calendarObject) && doPatchForExport ) sTextiCalendar += patchICalStringForExport( calendarObject.getIcalString() ); | function eventArrayToICalString( calendarEventArray, doPatchForExport ){ if( !calendarEventArray) calendarEventArray = gCalendarWindow.EventSelection.selectedEvents; var sTextiCalendar = ""; for( var eventArrayIndex = 0; eventArrayIndex < calendarEventArray.length; ++eventArrayIndex ) { var calend... |
sTextiCalendar += calendarEvent.getIcalString() ; | { if( isEvent(calendarObject) ) sTextiCalendar += calendarObject.getIcalString(); else sTextiCalendar += calendarObject.getTodoIcalString(); } | function eventArrayToICalString( calendarEventArray, doPatchForExport ){ if( !calendarEventArray) calendarEventArray = gCalendarWindow.EventSelection.selectedEvents; var sTextiCalendar = ""; for( var eventArrayIndex = 0; eventArrayIndex < calendarEventArray.length; ++eventArrayIndex ) { var calend... |
sRTFText += "\\b\\f0\\fs20 " + gCalendarBundle.getString( "eventDescription" ) + "\\b0\\tab " + calendarEvent.description + "\\par\n"; sRTFText += "\\b When:\\b0\\tab " + formatDateTimeInterval(calendarEvent.start, calendarEvent.end) + "\\par\n"; sRTFText += "\\b Where:\\b0\\tab " + calendarEvent.location + "\\par\n"... | sRTFText += "\\b " + gCalendarBundle.getString( "eventWhen" ) + "\\b0\\tab " + when.replace("--", "\\endash ") + "\\par\n"; sRTFText += "\\b " + gCalendarBundle.getString( "eventWhere" ) + "\\b0\\tab " + calendarEvent.location + "\\par\n"; | function eventArrayToRTF( calendarEventArray ){ sRTFHeader = "{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fswiss\\fcharset0 Arial;}{\\f1\\fmodern\\fcharset0 Courier New;}}" + "{\\colortbl ;\\red0\\green0\\blue0;}" + "\\viewkind4\\uc1\\pard\\fi-1800\\li1800\\tx1800\\cf1"; sRTFFoote... |
sRTFText += desc.replace(/\n/g, "\\par\n"); | function eventArrayToRTF( calendarEventArray ){ sRTFHeader = "{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fswiss\\fcharset0 Arial;}{\\f1\\fmodern\\fcharset0 Courier New;}}" + "{\\colortbl ;\\red0\\green0\\blue0;}" + "\\viewkind4\\uc1\\pard\\fi-1800\\li1800\\tx1800\\cf1"; sRTFFoote... | |
alert("Caught exception: " + msg2 + "\n\nDetails: " + e2.description); | if (!SimileAjax.Debug.silent) { alert("Caught exception: " + msg2 + "\n\nDetails: " + e2.description); } | SimileAjax.Debug.exception = function(msg, e) { var f; if ("console" in window && "error" in window.console) { // FireBug installed f = function(msg2, e2) { console.error(msg2 + " %o", e2); } } else { f = SimileAjax.Platform.browser.isIE ? function(msg2, e2) { ... |
alert("Caught exception: " + msg2 + "\n\nDetails: " + e2); | if (!SimileAjax.Debug.silent) { alert("Caught exception: " + msg2 + "\n\nDetails: " + e2); } | SimileAjax.Debug.exception = function(msg, e) { var f; if ("console" in window && "error" in window.console) { // FireBug installed f = function(msg2, e2) { console.error(msg2 + " %o", e2); } } else { f = SimileAjax.Platform.browser.isIE ? function(msg2, e2) { ... |
console.error(e); | var f; if ("console" in window && "error" in window.console) { f = function(e2) { console.error("%o", e2); } } else { f = SimileAjax.Platform.browser.isIE ? function(e2) { alert("Caught exception: " + e2.message); } : function(e2) { alert("Caught exception: " + e2); }; } SimileAjax.Debug.exception = f; f(e); | SimileAjax.Debug.exception = function(e) { //alert("Caught exception: " + (SimileAjax.Platform.isIE ? e.message : e)); console.error(e);}; |
SimileAjax.Debug.exception = function(e) { | SimileAjax.Debug.exception = function(msg, e) { | SimileAjax.Debug.exception = function(e) { var f; if ("console" in window && "error" in window.console) { // FireBug installed f = function(e2) { console.error("%o", e2); } } else { f = SimileAjax.Platform.browser.isIE ? function(e2) { alert("Caught exc... |
function(e2) { alert("Caught exception: " + e2.message); | function(msg2, e2) { alert("Caught exception: " + msg2 + "\n\nDetails: " + e2.description); | SimileAjax.Debug.exception = function(e) { var f; if ("console" in window && "error" in window.console) { // FireBug installed f = function(e2) { console.error("%o", e2); } } else { f = SimileAjax.Platform.browser.isIE ? function(e2) { alert("Caught exc... |
function(e2) { alert("Caught exception: " + e2); | function(msg2, e2) { alert("Caught exception: " + msg2 + "\n\nDetails: " + e2); | SimileAjax.Debug.exception = function(e) { var f; if ("console" in window && "error" in window.console) { // FireBug installed f = function(e2) { console.error("%o", e2); } } else { f = SimileAjax.Platform.browser.isIE ? function(e2) { alert("Caught exc... |
f(e); | f(msg, e); | SimileAjax.Debug.exception = function(e) { var f; if ("console" in window && "error" in window.console) { // FireBug installed f = function(e2) { console.error("%o", e2); } } else { f = SimileAjax.Platform.browser.isIE ? function(e2) { alert("Caught exc... |
f = function(e2) { console.error("%o", e2); | f = function(msg2, e2) { console.error(msg2 + " %o", e2); | SimileAjax.Debug.exception = function(msg, e) { var f; if ("console" in window && "error" in window.console) { // FireBug installed f = function(e2) { console.error("%o", e2); } } else { f = SimileAjax.Platform.browser.isIE ? function(msg2, e2) { alert(... |
var args = [{ property: NC_NS + "parent", resource: NODE_ID(parentNode) }]; | args = [{ property: NC_NS + "parent", resource: NODE_ID(parentNode) }]; | execCommand: function (aCommandID) { var args = []; var selection = this.getSelection (); if (selection.length >= 1) var selectedItem = selection[0]; switch (aCommandID) { case "open": this.openRDFNode(selectedItem); break; case "openfolder": this.commands.openFolder(selectedI... |
this.openRDFNode(selectedItem); | this.open(null, selectedItem); | execCommand: function (aCommandID) { var args = []; var selection = this.getSelection (); if (selection.length >= 1) var selectedItem = selection[0]; switch (aCommandID) { case "open": this.openRDFNode(selectedItem); break; case "openfolder": this.commands.openFolder(selectedI... |
case "cut": | case "bm_cut": | execCommand: function (aCommandID) { var args = []; var selection = this.getSelection (); if (selection.length >= 1) var selectedItem = selection[0]; switch (aCommandID) { case "open": this.openRDFNode(selectedItem); break; case "openfolder": this.commands.openFolder(selectedI... |
case "copy": | case "bm_copy": | execCommand: function (aCommandID) { var args = []; var selection = this.getSelection (); if (selection.length >= 1) var selectedItem = selection[0]; switch (aCommandID) { case "open": this.openRDFNode(selectedItem); break; case "openfolder": this.commands.openFolder(selectedI... |
case "paste": | case "bm_paste": | execCommand: function (aCommandID) { var args = []; var selection = this.getSelection (); if (selection.length >= 1) var selectedItem = selection[0]; switch (aCommandID) { case "open": this.openRDFNode(selectedItem); break; case "openfolder": this.commands.openFolder(selectedI... |
case "delete": | case "bm_delete": | execCommand: function (aCommandID) { var args = []; var selection = this.getSelection (); if (selection.length >= 1) var selectedItem = selection[0]; switch (aCommandID) { case "open": this.openRDFNode(selectedItem); break; case "openfolder": this.commands.openFolder(selectedI... |
if (func != null && typeof func != "function" && typeof func != "object") { alert("Supplied callback function is neither null nor a function: "+func); return; } | DWREngine.execute = function(func, classname, methodname, vararg_params){ var call = new Object(); call.callback = func // Get a unique ID for this call var random = Math.floor(Math.random() * 10001); call.id = (random + "_" + new Date().getTime()).toString(); DWREngine.calls[call.id] = call; if (D... | |
call.map.xml = true; | DWREngine.execute = function(func, classname, methodname, vararg_params){ var call = new Object(); call.callback = func // Get a unique ID for this call var random = Math.floor(Math.random() * 10001); call.id = (random + "_" + new Date().getTime()).toString(); DWREngine.calls[call.id] = call; if (D... | |
call.map.xml = false; | DWREngine.execute = function(func, classname, methodname, vararg_params){ var call = new Object(); call.callback = func // Get a unique ID for this call var random = Math.floor(Math.random() * 10001); call.id = (random + "_" + new Date().getTime()).toString(); DWREngine.calls[call.id] = call; if (D... | |
function executeUrlBarHistoryCommand( aEvent ) | function executeUrlBarHistoryCommand( aTarget) | function executeUrlBarHistoryCommand( aEvent ) { var index = aEvent.target.getAttribute("index"); var value = aEvent.target.value; if (index && value) { gURLBar.value = value; BrowserLoadURL(); } } |
var index = aEvent.target.getAttribute("index"); var value = aEvent.target.value; | var index = aTarget.getAttribute("index"); var value = aTarget.getAttribute("value"); | function executeUrlBarHistoryCommand( aEvent ) { var index = aEvent.target.getAttribute("index"); var value = aEvent.target.value; if (index && value) { gURLBar.value = value; BrowserLoadURL(); } } |
gURLBar.value = value; BrowserLoadURL(); | loadShortcutOrURI(value); | function executeUrlBarHistoryCommand( aTarget ) { var index = aTarget.getAttribute("index"); var value = aTarget.getAttribute("value"); if (index != "nothing_available" && value) { gURLBar.value = value; BrowserLoadURL(); } } |
var appShell = Components.classes['component: | var appShell = Components.classes['@mozilla.org/appshell/appShellService;1'].getService(); | function ExitApp(){ // Need to call this to stop the event loop var appShell = Components.classes['component://netscape/appshell/appShellService'].getService(); appShell = appShell.QueryInterface( Components.interfaces.nsIAppShellService); appShell.Quit();} |
var t_min = SPEC.config.xmin; var t_max = SPEC.config.xmax; | SPEC.exitEditing = function() { if(!($('#CH1_SHOW').hasClass('active') || $('#CH2_SHOW').hasClass('active'))){ if(SPEC.params.orig['CH1_SHOW'].value == true) $('#CH2_SHOW').addClass('active'); else if(SPEC.params.orig['CH2_SHOW'].value == true) $('#CH1_SHOW').addClass('active'); } for(var key in SPEC.params... | |
if (SPEC.config.xmin >= SPEC.config.xmax) { SPEC.params.local['xmin'].value = t_min; SPEC.params.local['xmax'].value = t_max; SPEC.params.orig['xmin'].value = t_min; SPEC.config.xmin = t_min; SPEC.params.orig['xmax'].value = t_max; SPEC.config.xmax = t_max; } | SPEC.exitEditing = function() { if(!($('#CH1_SHOW').hasClass('active') || $('#CH2_SHOW').hasClass('active'))){ if(SPEC.params.orig['CH1_SHOW'].value == true) $('#CH2_SHOW').addClass('active'); else if(SPEC.params.orig['CH2_SHOW'].value == true) $('#CH1_SHOW').addClass('active'); } for(var key in SPEC.params... | |
img = FetchElement('img_admin_menu'+i) | img = FetchElement('img_admin_menu'+i); | function Expand_all() { for (var i=1; i<=20; i++) { img = FetchElement('img_admin_menu'+i) if (img) { SetCookie('admin_menu'+i) } } location.href = 'admin.php?action=frames';} |
SetCookie('admin_menu'+i) | SetCookie('admin_menu'+i); | function Expand_all() { for (var i=1; i<=20; i++) { img = FetchElement('img_admin_menu'+i) if (img) { SetCookie('admin_menu'+i) } } location.href = 'admin.php?action=frames';} |
gBookmarksTree.focus(); | function expandTree(){ setFolderTreeHeight(); var willCollapse = !gBookmarksTree.collapsed; document.getElementById("expander").setAttribute("class",willCollapse?"down":"up"); if (willCollapse) document.documentElement.buttons = "accept,cancel"; else { document.documentElement.buttons = "accept,cancel,extra2... | |
selectFolder(gSelectedFolder); gBookmarksTree.focus(); | function expandTree(){ setFolderTreeHeight(); var willCollapse = !gBookmarksTree.collapsed; document.getElementById("expander").setAttribute("class",willCollapse?"down":"up"); if (willCollapse) document.documentElement.buttons = "accept,cancel"; else { document.documentElement.buttons = "accept,cancel,extra2... | |
fileName = kFilePicker.fileURL.spec; | fileName = kFilePicker.file.path; | exportBookmarks: function () { try { const kFilePickerContractID = "@mozilla.org/filepicker;1"; const kFilePickerIID = Components.interfaces.nsIFilePicker; const kFilePicker = Components.classes[kFilePickerContractID].createInstance(kFilePickerIID); const kTitle = BookmarksUtils.getLocal... |
extend: function(obj,prop) { if ( !prop ) { prop = obj; obj = this; } for ( var i in prop ) obj[i] = prop[i]; return obj; } | jQuery.extend = jQuery.fn.extend = function(obj,prop) { if ( !prop ) { prop = obj; obj = this; } for ( var i in prop ) obj[i] = prop[i]; return obj; }; | extend: function(obj,prop) { if ( !prop ) { prop = obj; obj = this; } for ( var i in prop ) obj[i] = prop[i]; return obj; } |
jQuery.extend = jQuery.fn.extend = function(obj,prop) { if ( arguments.length > 1 && (prop === null || prop == undefined) ) return obj; | jQuery.extend = jQuery.fn.extend = function() { var target = arguments[0], a = 1; | jQuery.extend = jQuery.fn.extend = function(obj,prop) { // Watch for the case where null or undefined gets passed in by accident if ( arguments.length > 1 && (prop === null || prop == undefined) ) return obj; // If no property object was provided, then we're extending jQuery if ( !prop ) { prop = obj; obj = this; } //... |
if ( !prop ) { prop = obj; obj = this; } for ( var i in prop ) obj[i] = prop[i]; | if ( arguments.length == 1 ) { target = this; a = 0; } var prop; while (prop = arguments[a++]) for ( var i in prop ) target[i] = prop[i]; | jQuery.extend = jQuery.fn.extend = function(obj,prop) { // Watch for the case where null or undefined gets passed in by accident if ( arguments.length > 1 && (prop === null || prop == undefined) ) return obj; // If no property object was provided, then we're extending jQuery if ( !prop ) { prop = obj; obj = this; } //... |
return obj; | return target; | jQuery.extend = jQuery.fn.extend = function(obj,prop) { // Watch for the case where null or undefined gets passed in by accident if ( arguments.length > 1 && (prop === null || prop == undefined) ) return obj; // If no property object was provided, then we're extending jQuery if ( !prop ) { prop = obj; obj = this; } //... |
return urlstr.slice(urlstr.lastIndexOf( "/" )+1); | var lastSlash = urlstr.slice(urlstr.lastIndexOf( "/" )+1); if (lastSlash) { var nameIndex = lastSlash.lastIndexOf( "filename=" ); if (nameIndex != -1) return (lastSlash.slice(nameIndex+9)); else return lastSlash; } return null; | function extractFileNameFromUrl(urlstr){ if (!urlstr) return null; return urlstr.slice(urlstr.lastIndexOf( "/" )+1);} |
year = date.getFullYear(); | regexp = new RegExp(date.toDateString() + '(.*)' + '$'); try { TimeString = date.toString().match(regexp)[1]; } catch(e) { return cnERR; } | function extractLocaleTimeString(date) { year = date.getFullYear(); // strip the year off date.toDateString(). // the pattern for regexp: /(.*)year$/ regexp = new RegExp('(.*)' + year + '$'); reducedDateString = (date.toDateString()).match(regexp)[1]; // now extract the middle of date.toString() by match... |
regexp = new RegExp('(.*)' + year + '$'); reducedDateString = (date.toDateString()).match(regexp)[1]; | regexp= /([^G]*)GMT.*/; try { hopeThisIsLocaleTimeString = TimeString.match(regexp)[1]; } catch(e) { return TimeString; } | function extractLocaleTimeString(date) { year = date.getFullYear(); // strip the year off date.toDateString(). // the pattern for regexp: /(.*)year$/ regexp = new RegExp('(.*)' + year + '$'); reducedDateString = (date.toDateString()).match(regexp)[1]; // now extract the middle of date.toString() by match... |
regexp=new RegExp(reducedDateString + '([^G]*)GMT.*'); hopeThisIsLocaleTimeString = (date.toString()).match(regexp)[1]; return trimR(hopeThisIsLocaleTimeString); } | return trimL(trimR(hopeThisIsLocaleTimeString)); } | function extractLocaleTimeString(date) { year = date.getFullYear(); // strip the year off date.toDateString(). // the pattern for regexp: /(.*)year$/ regexp = new RegExp('(.*)' + year + '$'); reducedDateString = (date.toDateString()).match(regexp)[1]; // now extract the middle of date.toString() by match... |
year = date.getFullYear(); | regexp = new RegExp(date.toDateString() + '(.*)' + '$'); | function extractTimeString(date) { year = date.getFullYear(); // strip the year off date.toDateString(). // the pattern for regexp: /(.*)year$/ regexp = new RegExp('(.*)' + year + '$'); reducedDateString = (date.toDateString()).match(regexp)[1]; // now extract the middle of date.toString() // the patter... |
regexp = new RegExp('(.*)' + year + '$'); reducedDateString = (date.toDateString()).match(regexp)[1]; | try { hopeThisIsTimeString = date.toString().match(regexp)[1]; } catch(e) { return cnERR; } | function extractTimeString(date) { year = date.getFullYear(); // strip the year off date.toDateString(). // the pattern for regexp: /(.*)year$/ regexp = new RegExp('(.*)' + year + '$'); reducedDateString = (date.toDateString()).match(regexp)[1]; // now extract the middle of date.toString() // the patter... |
regexp=new RegExp( reducedDateString + '(.*)' + year + '$'); hopeThisIsTimeString = (date.toString()).match(regexp)[1]; return trimR(hopeThisIsTimeString); | return trimL(trimR(hopeThisIsTimeString)); | function extractTimeString(date) { year = date.getFullYear(); // strip the year off date.toDateString(). // the pattern for regexp: /(.*)year$/ regexp = new RegExp('(.*)' + year + '$'); reducedDateString = (date.toDateString()).match(regexp)[1]; // now extract the middle of date.toString() // the patter... |
alert(msg2); | if (!SimileAjax.Debug.silent) { alert(msg2); } | f = function(msg2) { alert(msg2); } |
jQuery.prototype.fadeIn = function(speed,callback){ return this.animate({opacity: "show"}, speed, callback); }; | fadeIn: function(speed,callback){ return this.animate({opacity: "show"}, speed, callback); }, | jQuery.prototype.fadeIn = function(speed,callback){ return this.animate({opacity: "show"}, speed, callback);}; |
new $.fx.Opacity(this,o).show(); | new $.fx.Opacity(this,o,1).show(); | $.fn.fadeIn = function(a,o) { o = $.speed(a,o); return a ? this.each(function(){ new $.fx.Opacity(this,o).show(); }) : this._show();}; |
$.fn.fadeIn = function(a,o) { o = $.speed(a,o); return a ? this.queue(function(){ new $.fx.Opacity(this,o,1).show(); }) : this._show(); | $.fn.fadeIn = function(speed,callback){ return this.animate({opacity: "show"}, speed, callback); | $.fn.fadeIn = function(a,o) { o = $.speed(a,o); return a ? this.queue(function(){ new $.fx.Opacity(this,o,1).show(); }) : this._show();}; |
jQuery.prototype.fadeOut = function(speed,callback){ return this.animate({opacity: "hide"}, speed, callback); }; | fadeOut: function(speed,callback){ return this.animate({opacity: "hide"}, speed, callback); }, | jQuery.prototype.fadeOut = function(speed,callback){ return this.animate({opacity: "hide"}, speed, callback);}; |
new $.fx.Opacity(this,o).hide(); | new $.fx.Opacity(this,o,1).hide(); | $.fn.fadeOut = function(a,o) { o = $.speed(a,o); return a ? this.each(function(){ new $.fx.Opacity(this,o).hide(); }) : this._hide();}; |
$.fn.fadeOut = function(a,o) { o = $.speed(a,o); return a ? this.queue(function(){ new $.fx.Opacity(this,o,1).hide(); }) : this._hide(); | $.fn.fadeOut = function(speed,callback){ return this.animate({opacity: "hide"}, speed, callback); | $.fn.fadeOut = function(a,o) { o = $.speed(a,o); return a ? this.queue(function(){ new $.fx.Opacity(this,o,1).hide(); }) : this._hide();}; |
var p = new $.fx.Opacity(e,o); | var p = new $.fx.Opacity(e,o,1); | $.fx.FadeSize = function(e,o){ var z = this; var r = new $.fx.Resize(e,o); if(o) { o.onComplete = null; } var p = new $.fx.Opacity(e,o); for(var i in $.fx.fn){(function(){ var j = $.fx.fn[i]; z[j] = function(a,b){p[j]();r[j](a,b);}; })();}}; |
if(o) o.onComplete = null; var r = new fx.Resize(e,o); | fx.FadeSize = function(e,o){ var z = this; var p = new fx.Opacity(e,o); if(o) o.onComplete = null; var r = new fx.Resize(e,o); for(var i in fx.fn){(function(){ var j = fx.fn[i]; z[j] = function(a,b){p[j]();r[j](a,b);}; })()}}; | |
ef = new fx.Opacity(this,o); | ef = new $.fx.Opacity(this,o); | $.fn.fadeTo = function(a,ev,o) { o = $.speed(a,o); return a ? this.each(function(){ ef = new fx.Opacity(this,o); ef.custom(ef.cur(),parseFloat(ev)); ef.show(); }) : this._show();}; |
jQuery.prototype.fadeTo = function(speed,to,callback){ return this.animate({opacity: to}, speed, callback); }; | fadeTo: function(speed,to,callback){ return this.animate({opacity: to}, speed, callback); }, | jQuery.prototype.fadeTo = function(speed,to,callback){ return this.animate({opacity: to}, speed, callback);}; |
$.fn.fadeTo = function(a,ev,o) { o = $.speed(a,o); return a ? this.queue(function(){ ef = new $.fx.Opacity(this,o); ef.custom(ef.cur(),parseFloat(ev)); ef.show(); }) : this._show(); | $.fn.fadeTo = function(speed,to,callback){ return this.animate({opacity: to}, speed, callback); | $.fn.fadeTo = function(a,ev,o) { o = $.speed(a,o); return a ? this.queue(function(){ ef = new $.fx.Opacity(this,o); ef.custom(ef.cur(),parseFloat(ev)); ef.show(); }) : this._show();}; |
return ("x-jsd:fbreak?url=" + escape(this.url) + | return ("x-jsd:fbreak?url=" + encodeURIComponent(this.url) + | function fb_getURL (){ return ("x-jsd:fbreak?url=" + escape(this.url) + "&lineNumber=" + this.lineNumber + "&conditionEnabled=" + this.conditionEnabled + "&condition=" + escape(this.condition) + "&passExceptions=" + this.passExceptions + "&logResult=" + this.log... |
"&condition=" + escape(this.condition) + | "&condition=" + encodeURIComponent(this.condition) + | function fb_getURL (){ return ("x-jsd:fbreak?url=" + escape(this.url) + "&lineNumber=" + this.lineNumber + "&conditionEnabled=" + this.conditionEnabled + "&condition=" + escape(this.condition) + "&passExceptions=" + this.passExceptions + "&logResult=" + this.log... |
function Feed(resource) | function Feed(aResource) | function Feed(resource) { this.resource = resource.QueryInterface(Components.interfaces.nsIRDFResource); this.description = null; this.author = null; this.request = null; this.folder = null; this.server = null; this.downloadCallback = null; this.items = new Array(); return this;} |
this.resource = resource.QueryInterface(Components.interfaces.nsIRDFResource); this.description = null; this.author = null; this.request = null; this.folder = null; this.server = null; this.downloadCallback = null; this.items = new Array(); return this; | this.resource = aResource.QueryInterface(Components.interfaces.nsIRDFResource); | function Feed(resource) { this.resource = resource.QueryInterface(Components.interfaces.nsIRDFResource); this.description = null; this.author = null; this.request = null; this.folder = null; this.server = null; this.downloadCallback = null; this.items = new Array(); return this;} |
this.id = null; | function Feed() { this._sub = null; this._title = null; this.items = []; this.link = null; this.baseURI = null;} | |
var tDate = new Date(); tDate.setDate(d); tDate.setMonth(m); tDate.setYear(y); return tDate.getDay(); | var tDate = new Date(); tDate.setDate(d); tDate.setMonth(m); tDate.setFullYear(y); return tDate.getDay(); | function figureDOTW(m,d,y){ var tDate = new Date(); tDate.setDate(d); tDate.setMonth(m); tDate.setYear(y); return tDate.getDay();} |
dirHistory = new Array(); | function filepickerLoad() { gFilePickerBundle = document.getElementById("bundle_filepicker"); dirHistory = new Array(); textInput = document.getElementById("textInput"); okButton = document.getElementById("ok"); outlinerView = new nsFileView(); outlinerView.selectionCallback = onSelect; if (window.arguments) { ... | |
} if (filePickerMode != nsIFilePicker.modeOpen) { var newDirButton = document.getElementById("newDirButton"); newDirButton.removeAttribute("hidden"); | function filepickerLoad() { gFilePickerBundle = document.getElementById("bundle_filepicker"); textInput = document.getElementById("textInput"); okButton = document.documentElement.getButton("accept"); treeView = Components.classes[nsFileView_CONTRACTID].createInstance(nsIFileView); if (window.arguments) { var o... | |
window.title = title; | document.title = title; | function filepickerLoad() { gFilePickerBundle = document.getElementById("bundle_filepicker"); textInput = document.getElementById("textInput"); okButton = document.documentElement.getButton("accept"); treeView = Components.classes[nsFileView_CONTRACTID].createInstance(nsIFileView); if (window.arguments) { var o... |
var newDirectoryURL = Components.classes[nsStdURL_PROGID].createInstance().QueryInterface(nsIFileURL); | var newDirectoryURL = Components.classes[nsStdURL_CONTRACTID].createInstance().QueryInterface(nsIFileURL); | function fileToURL(aFile) { var newDirectoryURL = Components.classes[nsStdURL_PROGID].createInstance().QueryInterface(nsIFileURL); newDirectoryURL.file = aFile; return newDirectoryURL;} |
include (jslib_dirutils); this.mDirUtils = new DirUtils(); | function FileUtils() {} // constructor | |
for (var i = 0; i < columns.length; ++i) { | for (i = 0; i < columns.length; ++i) { | function fillColumnsMenu(aEvent) { var bookmarksView = document.getElementById("bookmarks-view"); var columns = bookmarksView.columns; if (!gConstructedColumnsMenuItems) { for (var i = 0; i < columns.length; ++i) { var menuitem = document.createElement("menuitem"); menuitem.setAttribute("label", columns... |
for (var cmdIndex = 0; cmdIndex < cmdArray.lenght; cmdIndex++) | for (var cmdIndex = 0; cmdIndex < cmdArray.length; cmdIndex++) | function fillContextMenu(name){ if (!name) return(false); var popupNode = document.getElementById(name); if (!popupNode) return(false); // remove the menu node (which tosses all of its kids); // do this in case any old command nodes are hanging around var menuNode = popupNode.childNodes[0]; popupNode.removeChild(menuNo... |
for (var nextCmdIndex = 0; nextCmdIndex < nextCmdArray.lenght; nextCmdIndex++) | for (var nextCmdIndex = 0; nextCmdIndex < nextCmdArray.length; nextCmdIndex++) | function fillContextMenu(name){ if (!name) return(false); var popupNode = document.getElementById(name); if (!popupNode) return(false); // remove the menu node (which tosses all of its kids); // do this in case any old command nodes are hanging around var menuNode = popupNode.childNodes[0]; popupNode.removeChild(menuNo... |
if (cmdfound == false) | if (cmdFound == false) | function fillContextMenu(name){ if (!name) return(false); var popupNode = document.getElementById(name); if (!popupNode) return(false); // remove the menu node (which tosses all of its kids); // do this in case any old command nodes are hanging around var menuNode = popupNode.childNodes[0]; popupNode.removeChild(menuNo... |
SetupNewMenuItem(folderResource, numSelected, isServer, serverType, specialFolder); | function fillFolderPaneContextMenu(){ if (IsFakeAccount()) return false; var folderTree = GetFolderTree(); var startIndex = {}; var endIndex = {}; folderTree.view.selection.getRangeAt(0, startIndex, endIndex); if (startIndex.value < 0) return false; var numSelected = endIndex.value - startIndex.value + 1; ... | |
ShowMenuItem("folderPaneContext-copy-location", !isServer); | ShowMenuItem("folderPaneContext-copy-location", !isServer && !isVirtualFolder); | function fillFolderPaneContextMenu(){ if (IsFakeAccount()) return false; var folderTree = GetFolderTree(); var startIndex = {}; var endIndex = {}; folderTree.view.selection.getRangeAt(0, startIndex, endIndex); if (startIndex.value < 0) return false; var numSelected = endIndex.value - startIndex.value + 1; ... |
ShowMenuItem("folderPaneContext-subscribe", (numSelected <= 1) && canSubscribeToFolder); | ShowMenuItem("folderPaneContext-subscribe", (numSelected <= 1) && canSubscribeToFolder && !isVirtualFolder); | function fillFolderPaneContextMenu(){ if (IsFakeAccount()) return false; var folderTree = GetFolderTree(); var startIndex = {}; var endIndex = {}; folderTree.view.selection.getRangeAt(0, startIndex, endIndex); if (startIndex.value < 0) return false; var numSelected = endIndex.value - startIndex.value + 1; ... |
ShowMenuItem("folderPaneContext-markMailFolderAllRead", (numSelected <= 1) && isMailFolder); | ShowMenuItem("folderPaneContext-markMailFolderAllRead", (numSelected <= 1) && isMailFolder && !isVirtualFolder); | function fillFolderPaneContextMenu(){ if (IsFakeAccount()) return false; var folderTree = GetFolderTree(); var startIndex = {}; var endIndex = {}; folderTree.view.selection.getRangeAt(0, startIndex, endIndex); if (startIndex.value < 0) return false; var numSelected = endIndex.value - startIndex.value + 1; ... |
ShowMenuItem("folderPaneContext-searchMessages", (numSelected<=1)); | ShowMenuItem("folderPaneContext-searchMessages", (numSelected <= 1) && !isVirtualFolder); | function fillFolderPaneContextMenu(){ if (IsFakeAccount()) return false; var folderTree = GetFolderTree(); var startIndex = {}; var endIndex = {}; folderTree.view.selection.getRangeAt(0, startIndex, endIndex); if (startIndex.value < 0) return false; var numSelected = endIndex.value - startIndex.value + 1; ... |
EnableMenuItem("folderPaneContext-openNewWindow", (false)); | EnableMenuItem("folderPaneContext-openNewWindow", (true)); | function fillFolderPaneContextMenu(){ var tree = GetFolderTree(); var selectedItems = tree.selectedItems; var numSelected = selectedItems.length; var popupNode = document.getElementById('folderPaneContext'); var targetFolder = document.popupNode.parentNode.parentNode; if (targetFolder.getAttribute('selected') != 'tr... |
ShowMenuItem("folderPaneContext-getMessages", (numSelected <= 1) && (isServer && (serverType != 'nntp'))); | ShowMenuItem("folderPaneContext-getMessages", (numSelected <= 1) && canGetMessages); | function fillFolderPaneContextMenu(){ var tree = GetFolderTree(); var selectedItems = tree.selectedItems; var numSelected = selectedItems.length; var popupNode = document.getElementById('folderPaneContext'); var targetFolder = document.popupNode.parentNode.parentNode; if (targetFolder.getAttribute('selected') != 'tr... |
ShowMenuItem("folderPaneContext-unsubscribe", (numSelected <= 1) && ((serverType == 'nntp') && !isServer)); EnableMenuItem("folderPaneContext-unsubscribe", false); ShowMenuItem("folderPaneContext-markFolderRead", (numSelected <= 1) && ((serverType == 'nntp') && !isServer)); EnableMenuItem("folderPaneContext-markFolder... | function fillFolderPaneContextMenu(){ var tree = GetFolderTree(); var selectedItems = tree.selectedItems; var numSelected = selectedItems.length; var popupNode = document.getElementById('folderPaneContext'); var targetFolder = document.popupNode.parentNode.parentNode; if (targetFolder.getAttribute('selected') != 'tr... | |
ShowMenuItem("folderPaneContext-subscribe", (numSelected <= 1) && (serverType == 'nntp')); | ShowMenuItem("folderPaneContext-subscribe", (numSelected <= 1) && canSubscribeToFolder && serverType != 'nntp'); | function fillFolderPaneContextMenu(){ var tree = GetFolderTree(); var selectedItems = tree.selectedItems; var numSelected = selectedItems.length; var popupNode = document.getElementById('folderPaneContext'); var targetFolder = document.popupNode.parentNode.parentNode; if (targetFolder.getAttribute('selected') != 'tr... |
ShowMenuItem("folderPaneContext-sep-new", ((numSelected<=1) && (specialFolder != "Unsent Messages"))); | ShowMenuItem("folderPaneContext-newsSubscribe", (numSelected <= 1) && canSubscribeToFolder && isServer && serverType == 'nntp'); EnableMenuItem("folderPaneContext-subscribe", true); | function fillFolderPaneContextMenu(){ var tree = GetFolderTree(); var selectedItems = tree.selectedItems; var numSelected = selectedItems.length; var popupNode = document.getElementById('folderPaneContext'); var targetFolder = document.popupNode.parentNode.parentNode; if (targetFolder.getAttribute('selected') != 'tr... |
EnableMenuItem("folderPaneContext-searchMessages", false); | EnableMenuItem("folderPaneContext-searchMessages", true); | function fillFolderPaneContextMenu(){ var tree = GetFolderTree(); var selectedItems = tree.selectedItems; var numSelected = selectedItems.length; var popupNode = document.getElementById('folderPaneContext'); var targetFolder = document.popupNode.parentNode.parentNode; if (targetFolder.getAttribute('selected') != 'tr... |
ShowMenuItem("folderPaneContext-markMailFolderAllRead", (numSelected <= 1) && ! isNewsgroup); | ShowMenuItem("folderPaneContext-markMailFolderAllRead", (numSelected <= 1) && isMailFolder); | function fillFolderPaneContextMenu(){ if (IsFakeAccount()) return false; var folderTree = GetFolderTree(); var startIndex = {}; var endIndex = {}; folderTree.treeBoxObject.selection.getRangeAt(0, startIndex, endIndex); if (startIndex.value < 0) return false; var numSelected = endIndex.value - startIndex.va... |
if (count > 0) aParent.lastChild.removeAttribute( "hidden" ); | aParent.lastChild.hidden = (count == 0); | function FillHistoryMenu(aParent, aMenu) { // Remove old entries if any deleteHistoryItems(aParent); var sessionHistory = getWebNavigation().sessionHistory; var count = sessionHistory.count; var index = sessionHistory.index; var end; var j; var entry; switch (aMenu) { case "back"... |
for (j = index + 1; j < end; j++) | for (j = index + 1; j <= end; j++) | function FillHistoryMenu(aParent, aMenu) { // Remove old entries if any deleteHistoryItems(aParent); var sessionHistory = getWebNavigation().sessionHistory; var count = sessionHistory.count; var index = sessionHistory.index; var end; var j; var entry; switch (aMenu) { case "back"... |
var sessionHistory = getWebNavigation().sessionHistory; | var webNav = getWebNavigation(); if (!webNav) { return true; } var sessionHistory = webNav.sessionHistory; | function FillHistoryMenu(aParent, aMenu, aInsertBefore) { // Remove old entries if any deleteHistoryItems(aParent); var sessionHistory = getWebNavigation().sessionHistory; var count = sessionHistory.count; var index = sessionHistory.index; var end; var j; var entry; switch (aMenu) { ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.