rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
var notificationCallbacks = { getInterface: function(iid, instance) { if (iid.equals(Components.interfaces.nsIAuthPrompt)) { var ww = Components.classes["@mozilla.org/embedcomp/window-watcher;1"] .getService(Components.interfaces.nsIWindowWatcher); return ww.getNewAuthPrompter(null); } Components.returnCode = Compone... | calendarManager.prototype.getRemoteCalendarText = function calMan_getRemoteCalendarText( Channel, onResponse, onError ){ var Listener = { onStreamComplete: function(loader, ctxt, status, resultLength, result) { window.setCursor( "default" ); var retval = false; result = String.from... | |
var ch = Channel.QueryInterface(Components.interfaces.nsIHttpChannel); if (!ch.requestSucceeded) { | var ch; try { ch = loader.request.QueryInterface(Components.interfaces.nsIHttpChannel); } catch(e) { } if (ch && !ch.requestSucceeded) { | calendarManager.prototype.getRemoteCalendarText = function calMan_getRemoteCalendarText( Channel, onResponse, onError ){ var Listener = { onStreamComplete: function(loader, ctxt, status, resultLength, result) { window.setCursor( "default" ); var retval = false; if( typeof( result )... |
} else if (!Components.isSuccessCode(loader.request.status)) { alert("Getting the calendar file failed.\nStatus code: 0x"+loader.request.status.toString(16)); | calendarManager.prototype.getRemoteCalendarText = function calMan_getRemoteCalendarText( Channel, onResponse, onError ){ var Listener = { onStreamComplete: function(loader, ctxt, status, resultLength, result) { window.setCursor( "default" ); var retval = false; if( typeof( result )... | |
var retval = false; | calendarManager.prototype.getRemoteCalendarText = function calMan_getRemoteCalendarText( Channel, onResponse, onError ){ var Listener = { onStreamComplete: function(loader, ctxt, status, resultLength, result) { window.setCursor( "default" ); //check to make sure its actually a cal... | |
return false; | } else { var firstMatchLocation = result.indexOf( "BEGIN:VEVENT" ); if( firstMatchLocation == -1 ) { alert( "There are no events in this file. Here's what I got from\n"+Channel.URI.spec+"\nResult: "+result ); } else { onResponse( result ); retval = true; } | calendarManager.prototype.getRemoteCalendarText = function calMan_getRemoteCalendarText( Channel, onResponse, onError ){ var Listener = { onStreamComplete: function(loader, ctxt, status, resultLength, result) { window.setCursor( "default" ); //check to make sure its actually a cal... |
var BeginEventText = "BEGIN:VEVENT"; var firstMatchLocation = result.indexOf( BeginEventText ); if( firstMatchLocation == -1 ) { alert( "There are no events in this file. Here's what I got from\n"+Channel.URI.spec+"\nResult: "+result ); return false; } else { onResponse( result ); } return true; | if( gNextSubNodeToRefresh ) gCalendarWindow.calendarManager.refreshAllRemoteCalendars(); return retval; | calendarManager.prototype.getRemoteCalendarText = function calMan_getRemoteCalendarText( Channel, onResponse, onError ){ var Listener = { onStreamComplete: function(loader, ctxt, status, resultLength, result) { window.setCursor( "default" ); //check to make sure its actually a cal... |
calendarManager.prototype.launchAddCalendarDialog = function calMan_launchAddCalendarDialog( ) | calendarManager.prototype.launchAddCalendarDialog = function calMan_launchAddCalendarDialog( aName, aUrl ) | calendarManager.prototype.launchAddCalendarDialog = function calMan_launchAddCalendarDialog( ){ // set up a bunch of args to pass to the dialog var ThisCalendarObject = new CalendarObject(); var args = new Object(); args.mode = "new"; var thisManager = this; var callback = function( ThisCalendarObject ) ... |
if( aName ) ThisCalendarObject.name = aName; if( aUrl ) { ThisCalendarObject.remote = true; ThisCalendarObject.remotePath = aUrl; } | calendarManager.prototype.launchAddCalendarDialog = function calMan_launchAddCalendarDialog( ){ // set up a bunch of args to pass to the dialog var ThisCalendarObject = new CalendarObject(); var args = new Object(); args.mode = "new"; var thisManager = this; var callback = function( ThisCalendarObject ) ... | |
SelectedCalendar.getAttribute( "http: SelectedCalendar.getAttribute( "http: | calendarManager.prototype.publishCalendar = function calMan_publishCalendar( SelectedCalendar ){ if( !SelectedCalendar ) { var SelectedCalendarId = this.getSelectedCalendarId(); SelectedCalendar = this.rdf.getNode( SelectedCalendarId ); } calendarUploadFile(SelectedCalendar.getAttribute( "http://ho... | |
"", | calendarManager.prototype.publishCalendar = function calMan_publishCalendar( SelectedCalendar ){ if( !SelectedCalendar ) { var SelectedCalendarId = this.getSelectedCalendarId(); var SelectedCalendar = this.rdf.getNode( SelectedCalendarId ); } calendarUploadFile(SelectedCalendar.getAttribute( "http:... | |
for( var i = 0; i < SubNodes.length; i++ ) | for( var i = gNextSubNodeToRefresh; i < SubNodes.length; i++ ) | calendarManager.prototype.refreshAllRemoteCalendars = function calMan_refreshAllRemoteCalendars(){ //get all the calendars. //get all the other calendars var SubNodes = this.rootContainer.getSubNodes(); for( var i = 0; i < SubNodes.length; i++ ) { //check their remote attribute, if its true, call retriev... |
gNextSubNodeToRefresh = 0; | calendarManager.prototype.refreshAllRemoteCalendars = function calMan_refreshAllRemoteCalendars(){ //get all the calendars. //get all the other calendars var SubNodes = this.rootContainer.getSubNodes(); for( var i = 0; i < SubNodes.length; i++ ) { //check their remote attribute, if its true, call retriev... | |
var Path; if( ThisCalendarObject.getAttribute( "http: ThisCalendarObject.getAttribute( "http: { var RemotePath = ThisCalendarObject.getAttribute( "http: var Protocol; if( RemotePath.indexOf( "http: { Protocol = "http: RemotePath = RemotePath.substr( 7 ); } if( RemotePath.indexOf( "https: { Protocol = "https: RemotePath... | var Path = ThisCalendarObject.getAttribute( "http: | calendarManager.prototype.retrieveAndSaveRemoteCalendar = function calMan_retrieveAndSaveRemoteCalendar( ThisCalendarObject, onResponseExtra ){ //the image doesn't always exist. If it doesn't exist, it causes problems, so check for it here document.getElementById( ThisCalendarObject.getSubject() ).childNodes[1].chi... |
request.open( "GET", ThisCalendarObject.remotePath, true ); | request.open( "GET", ThisCalendarObject.remotePath, false ); | calendarManager.prototype.retrieveAndSaveRemoteCalendar = function calMan_retrieveAndSaveRemoteCalendar( ThisCalendarObject, onResponse ){ calendarToGet = ThisCalendarObject; // make a request xmlhttprequest = Components.classes["@mozilla.org/xmlextras/xmlhttprequest;1"] request = xmlhttprequest.createInstance... |
this.mObservers = Array(); this.mItems = { }; | this.initMemoryCalendar(); | function calMemoryCalendar() { this.wrappedJSObject = this; this.mObservers = Array(); this.mItems = { };} |
document.getElementById( "cut_command" ).removeAttribute( "disabled" ); | var ArrayOfElements = document.getElementsByAttribute( "disabledwhennoeventsselected", "true" ); for( var i = 0; i < ArrayOfElements.length; i++ ) ArrayOfElements[i].removeAttribute( "disabled" ); | CalendarEventSelection.prototype.onSelectionChanged = function calSel_onSelectionChanged( ){ if( this.selectedEvents.length > 0 ) { document.getElementById( "cut_command" ).removeAttribute( "disabled" ); document.getElementById( "copy_command" ).removeAttribute( "disabled" ); document.getElemen... |
document.getElementById( "copy_command" ).removeAttribute( "disabled" ); document.getElementById( "delete_command" ).removeAttribute( "disabled" ); document.getElementById( "delete_command_no_confirm" ).removeAttribute( "disabled" ); if( this.selectedEvents.length == 1 ) document.getElementById( "modify_command" ).re... | if( this.selectedEvents.length != 1 ) | CalendarEventSelection.prototype.onSelectionChanged = function calSel_onSelectionChanged( ){ if( this.selectedEvents.length > 0 ) { document.getElementById( "cut_command" ).removeAttribute( "disabled" ); document.getElementById( "copy_command" ).removeAttribute( "disabled" ); document.getElemen... |
document.getElementById( "print_command" ).removeAttribute( "disabled" ); | CalendarEventSelection.prototype.onSelectionChanged = function calSel_onSelectionChanged( ){ if( this.selectedEvents.length > 0 ) { document.getElementById( "cut_command" ).removeAttribute( "disabled" ); document.getElementById( "copy_command" ).removeAttribute( "disabled" ); document.getElemen... | |
document.getElementById( "cut_command" ).setAttribute( "disabled", "true" ); document.getElementById( "copy_command" ).setAttribute( "disabled", "true" ); | var ArrayOfElements = document.getElementsByAttribute( "disabledwhennoeventsselected", "true" ); | CalendarEventSelection.prototype.onSelectionChanged = function calSel_onSelectionChanged( ){ if( this.selectedEvents.length > 0 ) { document.getElementById( "cut_command" ).removeAttribute( "disabled" ); document.getElementById( "copy_command" ).removeAttribute( "disabled" ); document.getElemen... |
document.getElementById( "delete_command" ).setAttribute( "disabled", "true" ); document.getElementById( "delete_command_no_confirm" ).setAttribute( "disabled", "true" ); | for( var i = 0; i < ArrayOfElements.length; i++ ) ArrayOfElements[i].setAttribute( "disabled", "true" ); | CalendarEventSelection.prototype.onSelectionChanged = function calSel_onSelectionChanged( ){ if( this.selectedEvents.length > 0 ) { document.getElementById( "cut_command" ).removeAttribute( "disabled" ); document.getElementById( "copy_command" ).removeAttribute( "disabled" ); document.getElemen... |
document.getElementById( "modify_command" ).setAttribute( "disabled", "true" ); document.getElementById("send_event_command").setAttribute("disabled", "true"); document.getElementById("print_command").setAttribute("disabled", "true"); | CalendarEventSelection.prototype.onSelectionChanged = function calSel_onSelectionChanged( ){ if( this.selectedEvents.length > 0 ) { document.getElementById( "cut_command" ).removeAttribute( "disabled" ); document.getElementById( "copy_command" ).removeAttribute( "disabled" ); document.getElemen... | |
this.checkDisplayDatesInvariant(dayDisplayEventList[i]); | CalendarView.prototype.getViewLimits = function calView_getViewLimits( dayDisplayEventList, date ){ //set defaults from preferences var sHour = getIntPref( this.calendarWindow.calendarPreferences.calendarPref, "event.defaultstarthour", 8 ); var eHour = getIntPref( this.calendarWindow.calendarPreferences.calendarPref... | |
"X-NSCP-CALPROPS-RELATIVE_CALID", {})[0]) { | "X-NSCP-CALPROPS-RELATIVE-CALID", {})[0]) { | function calWcapCalendar( calId, session, /*optional*/calProps ) { this.wrappedJSObject = this; this.m_calId = calId; this.m_session = session; this.m_calProps = calProps; this.m_bSuppressAlarms = SUPPRESS_ALARMS; // init queued calls: this.adoptItem = makeQueuedCall(this.session.asyncQueue, ... |
var observerService = Components.classes["@mozilla.org/observer-service;1"] .getService(Components.interfaces.nsIObserverService); observerService.addObserver( this, "quit-application", false ); observerService.addObserver( this, "network:offline-about-to-go-offline", false ); | function calWcapSession() { this.wrappedJSObject = this; this.m_observers = []; this.m_calIdToCalendar = {}; this.m_asyncQueue = new AsyncQueue(); this.m_calPropsTimer = new Timer(); // init queued calls: this.getFreeBusyTimes = makeQueuedCall( this.asyncQueue, this, this.getFreeBusyTime... | |
setTimeout( "refreshEventTree( false );", 150 ); | setTimeout( "refreshEventTree( getAndSetEventTable() );", 150 ); | CalendarWindow.prototype.setSelectedDate = function calWin_setSelectedDate( date ){ // Copy the date because we might mess with it in place this.selectedDate = new Date( date ); if( document.getElementById( "event-filter-menulist" ).selectedItem.value == "current" ) { //redraw the top tree setTimeo... |
document.getElementById("day_view_command").setAttribute("disabled", true); document.getElementById("week_view_command").removeAttribute("disabled"); document.getElementById("multiweek_view_command").removeAttribute("disabled"); document.getElementById("month_view_command").removeAttribute("disabled"); | document.getElementById("month_view_command").removeAttribute("checked"); document.getElementById("multiweek_view_command").removeAttribute("checked"); document.getElementById("week_view_command").removeAttribute("checked"); document.getElementById("day_view_command").setAttribute("checked", true); | CalendarWindow.prototype.switchToDayView = function calWin_switchToDayView( ){ document.getElementById("day_view_command").setAttribute("disabled", true); document.getElementById("week_view_command").removeAttribute("disabled"); document.getElementById("multiweek_view_command").removeAttribute("disabled"); ... |
document.getElementById("day_view_command").removeAttribute("disabled"); document.getElementById("week_view_command").removeAttribute("disabled"); document.getElementById("multiweek_view_command").removeAttribute("disabled"); document.getElementById("month_view_command").setAttribute("disabled", true); | document.getElementById("week_view_command").removeAttribute("checked"); document.getElementById("multiweek_view_command").removeAttribute("checked"); document.getElementById("day_view_command").removeAttribute("checked"); document.getElementById("month_view_command").setAttribute("checked", true); | CalendarWindow.prototype.switchToMonthView = function calWin_switchToMonthView( ){ document.getElementById("day_view_command").removeAttribute("disabled"); document.getElementById("week_view_command").removeAttribute("disabled"); document.getElementById("multiweek_view_command").removeAttribute("disabled"); ... |
document.getElementById("day_view_command").removeAttribute("disabled"); document.getElementById("week_view_command").removeAttribute("disabled"); document.getElementById("multiweek_view_command").setAttribute("disabled", true); document.getElementById("month_view_command").removeAttribute("disabled"); | document.getElementById("month_view_command").removeAttribute("checked"); document.getElementById("week_view_command").removeAttribute("checked"); document.getElementById("day_view_command").removeAttribute("checked"); document.getElementById("multiweek_view_command").setAttribute("checked", true); | CalendarWindow.prototype.switchToMultiweekView = function calWin_switchToMultiweekView( ){ document.getElementById("day_view_command").removeAttribute("disabled"); document.getElementById("week_view_command").removeAttribute("disabled"); document.getElementById("multiweek_view_command").setAttribute("disabled"... |
deck.selectedPanel = document.getElementById(newView); | deck.selectedPanel = viewElement; | CalendarWindow.prototype.switchToView = function calWin_switchToView( newView ){ var deck = document.getElementById("view-deck"); var day; try { day = deck.selectedPanel.selectedDay; } catch(ex) {} // Fails if no view has ever been shown this session // Should only happen on first startup if (!... |
viewElement.timezone = calendarDefaultTimezone(); | CalendarWindow.prototype.switchToView = function calWin_switchToView( newView ){ var viewElement = document.getElementById(newView); // If this is the first time we've shown the view, (or if someone changed // our composite), then we need to set all this stuff. if (viewElement.displayCalendar != getDisplayC... | |
document.getElementById("day_view_command").removeAttribute("disabled"); document.getElementById("week_view_command").setAttribute("disabled", true); document.getElementById("multiweek_view_command").removeAttribute("disabled"); document.getElementById("month_view_command").removeAttribute("disabled"); | document.getElementById("month_view_command").removeAttribute("checked"); document.getElementById("multiweek_view_command").removeAttribute("checked"); document.getElementById("day_view_command").removeAttribute("checked"); document.getElementById("week_view_command").setAttribute("checked", true); | CalendarWindow.prototype.switchToWeekView = function calWin_switchToWeekView( ){ document.getElementById("day_view_command").removeAttribute("disabled"); document.getElementById("week_view_command").setAttribute("disabled", true); document.getElementById("multiweek_view_command").removeAttribute("disabled"); ... |
setTimeout( "refreshEventTree( false );", 10 ); | setTimeout( "refreshEventTree( getAndSetEventTable() );", 10 ); | CalendarWindow.prototype.onMouseUpCalendarViewSplitter = function calWinOnMouseUpCalendarViewSplitter(){ //check if calendar-view-splitter is collapsed if( document.getElementById( "bottom-events-box" ).getAttribute( "collapsed" ) != "true" ) { //do this because if they started with it collapsed, its not sho... |
if (! editedtests[0]) { MM_findObj("Submit").value = "Submit Results"; } | document.getElementById("show_test_form").action = "process_test.cgi"; | function cancelEdit(testid) { for (var i=0; i<fields.length; i++) { hide(getField(fields[i]+"_edit",testid)); show(getField(fields[i]+"_text",testid)); } show(getField("editlink", testid)); hide(getField("canceleditlink", testid)); // remove testid from the editedtests array: var... |
canDestroy: function canDestroy(prompt) { return false; }, | optgroupObject.prototype.canDestroy = function canDestroy(prompt) { return gDialog.nextChild(treeSelection.currentIndex) - treeSelection.currentIndex == 1; }; | canDestroy: function canDestroy(prompt) { return false; }, |
if (orientation != Components.interfaces.nsITreeView.DROP_ON) return false; | dragSession.getData(trans, i); | canDrop: function(index, orientation) { if (orientation != Components.interfaces.nsITreeView.DROP_ON) return false; var targetResource = dirTree.builderView.getResourceAtIndex(index); var targetURI = targetResource.Value; var srcURI = GetSelectedDirectory(); if (targetURI == srcUR... |
var targetResource = dirTree.builderView.getResourceAtIndex(index); var targetURI = targetResource.Value; | var dataObj = new Object(); var flavor = new Object(); var len = new Object(); trans.getAnyTransferData(flavor, dataObj, len); if (!dataObj) continue; | canDrop: function(index, orientation) { if (orientation != Components.interfaces.nsITreeView.DROP_ON) return false; var targetResource = dirTree.builderView.getResourceAtIndex(index); var targetURI = targetResource.Value; var srcURI = GetSelectedDirectory(); if (targetURI == srcUR... |
var srcURI = GetSelectedDirectory(); | dataObj = dataObj.value.QueryInterface(Components.interfaces.nsISupportsString); | canDrop: function(index, orientation) { if (orientation != Components.interfaces.nsITreeView.DROP_ON) return false; var targetResource = dirTree.builderView.getResourceAtIndex(index); var targetURI = targetResource.Value; var srcURI = GetSelectedDirectory(); if (targetURI == srcUR... |
if (targetURI == srcURI) return false; | var transData = dataObj.data.split("\n"); var rows = transData[0].split(","); | canDrop: function(index, orientation) { if (orientation != Components.interfaces.nsITreeView.DROP_ON) return false; var targetResource = dirTree.builderView.getResourceAtIndex(index); var targetURI = targetResource.Value; var srcURI = GetSelectedDirectory(); if (targetURI == srcUR... |
var srcDirectory = GetDirectoryFromURI(srcURI); | for (var j = 0; j < rows.length; j++) { if (abView.getCardFromRow(rows[j]).isMailList) { draggingMailList = true; break; } } } | canDrop: function(index, orientation) { if (orientation != Components.interfaces.nsITreeView.DROP_ON) return false; var targetResource = dirTree.builderView.getResourceAtIndex(index); var targetURI = targetResource.Value; var srcURI = GetSelectedDirectory(); if (targetURI == srcUR... |
var dragSession = dragService.getCurrentSession(); if (!dragSession) return false; | if (draggingMailList && (targetDirectory.isMailList || dragSession.dragAction == Components.interfaces. nsIDragService.DRAGDROP_ACTION_COPY)) { return false; } | canDrop: function(index, orientation) { if (orientation != Components.interfaces.nsITreeView.DROP_ON) return false; var targetResource = dirTree.builderView.getResourceAtIndex(index); var targetURI = targetResource.Value; var srcURI = GetSelectedDirectory(); if (targetURI == srcUR... |
if (!(srcDirectory.operations & srcDirectory.opWrite) && dragSession.dragAction != Components.interfaces. nsIDragService.DRAGDROP_ACTION_COPY) return false; var result = srcURI.split(targetURI); if (result != srcURI) return false; var targetDirectory = GetDirectoryFromURI(targetURI); return (targetDirectory.isMai... | dragSession.canDrop = true; return true; }, | canDrop: function(index, orientation) { if (orientation != Components.interfaces.nsITreeView.DROP_ON) return false; var targetResource = dirTree.builderView.getResourceAtIndex(index); var targetURI = targetResource.Value; var srcURI = GetSelectedDirectory(); if (targetURI == srcUR... |
canMoveDown: function canMoveDown() { return false; }, | optgroupObject.prototype.canMoveDown = function canMoveDown() { return gDialog.lastChild() > treeSelection.currentIndex; } | canMoveDown: function canMoveDown() { return false; }, |
if (!/^(www|http)|\/\s*$/i.test(url)) { | if (!/^(www|http)|\/\s*$/i.test(url) && aTriggeringEvent) { | function canonizeUrl(aTriggeringEvent, aPostDataRef){ if (!gURLBar) return; var url = gURLBar.value; // Prevent suffix when already exists www , http , / if (!/^(www|http)|\/\s*$/i.test(url)) { var suffix = null; if (aTriggeringEvent && 'ctrlKey' in aTriggeringEvent && aTriggeringEvent.ctrlKey && ... |
if (aTriggeringEvent && 'ctrlKey' in aTriggeringEvent && aTriggeringEvent.ctrlKey && 'shiftKey' in aTriggeringEvent && aTriggeringEvent.shiftKey) | if (accelPressed && shiftPressed) | function canonizeUrl(aTriggeringEvent, aPostDataRef){ if (!gURLBar) return; var url = gURLBar.value; // Prevent suffix when already exists www , http , / if (!/^(www|http)|\/\s*$/i.test(url)) { var suffix = null; if (aTriggeringEvent && 'ctrlKey' in aTriggeringEvent && aTriggeringEvent.ctrlKey && ... |
else if (aTriggeringEvent && 'ctrlKey' in aTriggeringEvent && aTriggeringEvent.ctrlKey) | else if (accelPressed) | function canonizeUrl(aTriggeringEvent, aPostDataRef){ if (!gURLBar) return; var url = gURLBar.value; // Prevent suffix when already exists www , http , / if (!/^(www|http)|\/\s*$/i.test(url)) { var suffix = null; if (aTriggeringEvent && 'ctrlKey' in aTriggeringEvent && aTriggeringEvent.ctrlKey && ... |
else if (aTriggeringEvent && 'shiftKey' in aTriggeringEvent && aTriggeringEvent.shiftKey) | else if (shiftPressed) | function canonizeUrl(aTriggeringEvent, aPostDataRef){ if (!gURLBar) return; var url = gURLBar.value; // Prevent suffix when already exists www , http , / if (!/^(www|http)|\/\s*$/i.test(url)) { var suffix = null; if (aTriggeringEvent && 'ctrlKey' in aTriggeringEvent && aTriggeringEvent.ctrlKey && ... |
if (!gURLBar) | if (!gURLBar || !gURLBar.value) | function canonizeUrl(aTriggeringEvent, aPostDataRef){ if (!gURLBar) return; var url = gURLBar.value; // Prevent suffix when already exists www , http , / if (!/^(www|http)|\/\s*$/i.test(url) && aTriggeringEvent) { var suffix = null;#ifdef XP_MACOSX var accelPressed = 'metaKey' in aTriggeringEvent && ... |
const kSuppString = createSupportsString(); | const kSuppString = createSupportsCString(); | function canPaste(){ const kClipboardIID = Components.interfaces.nsIClipboard; var clipboard = getClipboard(); var flavourArray = createSupportsArray(); var flavours = ["text/calendar", "text/unicode"]; for (var i = 0; i < flavours.length; ++i) { const kSuppString = createSupportsString(); k... |
var flavourArray = createSupportsArray(); | var flavourArray = new SupportsArray; | function canPaste(){ const kClipboardIID = Components.interfaces.nsIClipboard; var clipboard = getClipboard(); var flavourArray = createSupportsArray(); var flavours = ["text/calendar", "text/unicode"]; for (var i = 0; i < flavours.length; ++i) { const kSuppString = createSupportsCString(); ... |
const kSuppString = createSupportsCString(); | var kSuppString = new SupportsCString; | function canPaste(){ const kClipboardIID = Components.interfaces.nsIClipboard; var clipboard = getClipboard(); var flavourArray = createSupportsArray(); var flavours = ["text/calendar", "text/unicode"]; for (var i = 0; i < flavours.length; ++i) { const kSuppString = createSupportsCString(); ... |
ChatzillaModule.canUnload = | CalendarModule.canUnload = | ChatzillaModule.canUnload =function(compMgr){ return true;} |
this.loadRegistryData(this); | function CategoryManager() { this.categories = { };} | |
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); | if (!getPriv("UniversalXPConnect")) throw ("CBSConnection: could not get UniversalXPConnect privlege."); | function CBSConnection (){ netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); var sockServiceClass = Components.classesByID["{c07e81e0-ef12-11d2-92b6-00105a1b0d64}"]; if (!sockServiceClass) throw ("Couldn't get socket service class."); var sockService = sockServi... |
function CBSConnection () | function CBSConnection (binary) | function CBSConnection (){ var sockServiceClass = Components.classesByID["{c07e81e0-ef12-11d2-92b6-00105a1b0d64}"]; if (!sockServiceClass) throw ("Couldn't get socket service class."); var sockService = sockServiceClass.getService(); if (!sockService) throw ("Couldn't get socket... |
this.wrappedJSObject = this; | function CBSConnection (){ var sockServiceClass = Components.classesByID["{c07e81e0-ef12-11d2-92b6-00105a1b0d64}"]; if (!sockServiceClass) throw ("Couldn't get socket service class."); var sockService = sockServiceClass.getService(); if (!sockService) throw ("Couldn't get socket... | |
dump( "Move window by " + xOffset + ","+yOffset+"\n"); | function centerWindowOnScreen(){ var xOffset = screen.availWidth/2 - window.outerWidth/2; var yOffset = screen.availHeight/2 - window.outerHeight/2; //(opener.outerHeight *2)/10; xOffset = ( xOffset > 0 ) ? xOffset : 0; yOffset = ( yOffset > 0 ) ? yOffset : 0; dump( "Move window by " + xOffset + ","+yOffset+"\n"); wi... | |
this.parent.messageTo(type, this.encodedName, fromUnicode(msg, this), code); | this.parent.ctcpTo(this.encodedName, fromUnicode(code, this), fromUnicode(msg, this), type); | function chan_ctcpto (code, msg, type){ msg = msg || ""; type = type || "PRIVMSG"; this.parent.messageTo(type, this.encodedName, fromUnicode(msg, this), code);} |
if (name in this.channels) | if (tname in this.channels) | function chan_getchannel(name){ var tname = this.toLowerCase(name); if (tname in this.channels) return this.channels[tname]; tname = this.toLowerCase(fromUnicode(name, this)); if (name in this.channels) return this.channels[tname]; return null;} |
target = this.name.substr(1); | target = escape(this.encodedName.substr(1)); | function chan_geturl (){ var target; if (this.name[0] == "#") target = this.name.substr(1); else target = escape(this.name); return this.parent.parent.getURL() + target;} |
target = escape(this.name); | target = escape(this.encodedName); | function chan_geturl (){ var target; if (this.name[0] == "#") target = this.name.substr(1); else target = escape(this.name); return this.parent.parent.getURL() + target;} |
this.parent.parent.sendData ("MODE " + this.parent.name + " " + | this.parent.parent.sendData ("MODE " + this.parent.encodedName + " " + | function chan_invite (f){ if (!this.parent.users[this.parent.parent.me.nick].isOp) return false; var modifier = (f) ? "+" : "-"; this.parent.parent.sendData ("MODE " + this.parent.name + " " + modifier + "i\n"); return true; } |
this.parent.sendData("INVITE " + nick + " " + this.name + "\n"); | this.parent.sendData("INVITE " + nick + " " + this.encodedName + "\n"); | function chan_inviteuser (nick){ this.parent.sendData("INVITE " + nick + " " + this.name + "\n"); return true;} |
this.parent.sendData ("JOIN " + this.name + " " + key + "\n"); | this.parent.sendData ("JOIN " + this.encodedName + " " + key + "\n"); | function chan_join (key){ if (!key) key = ""; this.parent.sendData ("JOIN " + this.name + " " + key + "\n"); return true; } |
this.parent.parent.sendData ("MODE " + this.parent.name + " " + | this.parent.parent.sendData ("MODE " + this.parent.encodedName + " " + | function chan_moderate (f){ if (!this.parent.users[this.parent.parent.me.nick].isOp) return false; var modifier = (f) ? "+" : "-"; this.parent.parent.sendData ("MODE " + this.parent.name + " " + modifier + "m\n"); return true; } |
this.parent.noticeTo (this.name, msg); | this.parent.noticeTo (this.encodedName, msg); | function chan_notice (msg){ this.parent.noticeTo (this.name, msg); } |
this.parent.sendData ("PART " + this.name + "\n"); | this.parent.sendData ("PART " + this.encodedName + "\n"); | function chan_part (){ this.parent.sendData ("PART " + this.name + "\n"); this.users = new Object(); return true; } |
this.users = new Object(); | function chan_part (){ this.parent.sendData ("PART " + this.name + "\n"); return true; } | |
this.parent.parent.sendData ("MODE " + this.parent.name + " " + | this.parent.parent.sendData ("MODE " + this.parent.encodedName + " " + | function chan_pmessages (f){ if (!this.parent.users[this.parent.parent.me.nick].isOp) return false; var modifier = (f) ? "-" : "+"; this.parent.parent.sendData ("MODE " + this.parent.name + " " + modifier + "n\n"); return true; } |
this.parent.parent.sendData ("MODE " + this.parent.name + " " + | this.parent.parent.sendData ("MODE " + this.parent.encodedName + " " + | function chan_ptopic (f){ if (!this.parent.users[this.parent.parent.me.nick].isOp) return false; var modifier = (f) ? "-" : "+"; this.parent.parent.sendData ("MODE " + this.parent.name + " " + modifier + "t\n"); return true; } |
this.parent.parent.sendData ("MODE " + this.parent.name + " " + | this.parent.parent.sendData ("MODE " + this.parent.encodedName + " " + | function chan_pvt (f){ if (!this.parent.users[this.parent.parent.me.nick].isOp) return false; var modifier = (f) ? "+" : "-"; this.parent.parent.sendData ("MODE " + this.parent.name + " " + modifier + "p\n"); return true; } |
this.parent.actTo (this.name, msg); | this.parent.actTo (this.encodedName, msg); | function chan_say (msg){ this.parent.actTo (this.name, msg); } |
this.parent.parent.sendData ("MODE " + this.parent.name + " " + | this.parent.parent.sendData ("MODE " + this.parent.encodedName + " " + | function chan_secret (f){ if (!this.parent.users[this.parent.parent.me.nick].isOp) return false; var modifier = (f) ? "+" : "-"; this.parent.parent.sendData ("MODE " + this.parent.name + " " + modifier + "p\n"); return true; } |
(!this.parent.me.isOp)) | (!this.users[this.parent.me.nick].isOp)) | function chan_topic (str){ if ((!this.mode.publicTopic) && (!this.parent.me.isOp)) return false; str = String(str).split("\n"); for (var i in str) this.parent.sendData ("TOPIC " + this.name + " :" + str[i] + "\n"); return true;} |
this.parent.sendData ("TOPIC " + this.name + " :" + str[i] + "\n"); | this.parent.sendData ("TOPIC " + this.encodedName + " :" + str[i] + "\n"); | function chan_topic (str){ if ((!this.mode.publicTopic) && (!this.users[this.parent.me.nick].isOp)) return false; str = String(str).split("\n"); for (var i in str) this.parent.sendData ("TOPIC " + this.name + " :" + str[i] + "\n"); return true;} |
this.parent.parent.sendData ("MODE " + this.parent.name + " -k " + | this.parent.parent.sendData ("MODE " + this.parent.encodedName + " -k " + | function chan_unlock (k){ if (!this.parent.users[this.parent.parent.me.nick].isOp) return false; this.parent.parent.sendData ("MODE " + this.parent.name + " -k " + k + "\n"); return true; } |
caption.setAttribute( "value", aCaption ); | caption.setAttribute( "description", aCaption ); | function ChangeCaption( aCaption ){ var caption = document.getElementById( "header" ); caption.setAttribute( "value", aCaption ); document.title = aCaption;} |
window.title = aCaption; | document.title = aCaption; | function ChangeCaption( aCaption ){ var caption = document.getElementById( "header" ); caption.setAttribute( "value", aCaption ); window.title = aCaption;} |
var ArrayOfElements = document.getElementById( "taskitem-context-menu" ).getElementsByAttribute( "checked", "true" ); for( var i = 0; i < ArrayOfElements.length; i++ ) ArrayOfElements[i].removeAttribute( "checked" ); | var liveList = document.getElementById( "taskitem-context-menu" ).getElementsByAttribute( "checked", "true" ); for (var i = liveList.length - 1; i >= 0; i-- ) { liveList.item(i).removeAttribute( "checked" ); } | function changeContextMenuForToDo( event ){ var toDoItem = getToDoFromEvent( event ); if( toDoItem ) { var ArrayOfElements = document.getElementById( "taskitem-context-menu" ).getElementsByAttribute( "checked", "true" ); for( var i = 0; i < ArrayOfElements.length; i++ ) ArrayOfElements[i].rem... |
ChangeDirectoryByURI(uri); | var tree = document.getElementById('resultsTree'); if ( tree ) tree.setAttribute('ref', uri); | function ChangeDirectoryByDOMNode(dirNode){ var uri = dirNode.getAttribute('id'); dump("uri = " + uri + "\n"); ChangeDirectoryByURI(uri);} |
document.getElementById("allowScriptsDescription").disabled = state; | document.getElementById("allowScripts").disabled = state; | function changeDisabledState(state){ //Set the states of the groupbox children state based on the "javascript enabled" checkbox value document.getElementById("allowScriptsDescription").disabled = state; document.getElementById("allowWindowMoveResize").disabled = state; document.getElementById("allowWindowOpen").dis... |
refreshEventTree( false ); | getAndSetEventTable() | function changeEventFilter( event ){ refreshEventTree( false ); doSearch(); /* The following isn't exactly right. It should actually reload after the next event happens. */ // get the current time var now = new Date(); var tomorrow = new Date( now.getFullYear(), now.getMonth(), ( now.getDate() + 1 ) ); ... |
setTimeout( "refreshEventTree( eventTable )", milliSecsTillTomorrow ); | setTimeout( "refreshEventTree( getAndSetEventTable() )", milliSecsTillTomorrow ); | function changeEventFilter( event ){ refreshEventTree( false ); doSearch(); /* The following isn't exactly right. It should actually reload after the next event happens. */ // get the current time var now = new Date(); var tomorrow = new Date( now.getFullYear(), now.getMonth(), ( now.getDate() + 1 ) ); ... |
gNextMessageAfterDelete = null; | function ChangeFolderByURI(uri, isThreaded, sortID, sortDirection){ dump('In ChangeFolderByURI uri = ' + uri + "\n"); if (uri == gCurrentLoadingFolderURI) return; var resource = RDF.GetResource(uri); var msgfolder = resource.QueryInterface(Components.interfaces.nsIMsgFolder); try { setTitleFromFolder(... | |
ClearThreadPane(); | ClearThreadPane(); ShowAccountCentral(); | function ChangeFolderByURI(uri, isThreaded, sortID, sortDirection, viewType){ dump('In ChangeFolderByURI uri = ' + uri + "\n"); if (uri == gCurrentLoadingFolderURI) return; var resource = RDF.GetResource(uri); var msgfolder = resource.QueryInterface(Components.interfaces.nsIMsgFolder); try { setTitleF... |
} if (gAccountCentralLoaded) { HideAccountCentral(); | function ChangeFolderByURI(uri, isThreaded, sortID, sortDirection, viewType){ dump('In ChangeFolderByURI uri = ' + uri + "\n"); if (uri == gCurrentLoadingFolderURI) return; var resource = RDF.GetResource(uri); var msgfolder = resource.QueryInterface(Components.interfaces.nsIMsgFolder); try { setTitleF... | |
setTitleFromFolder(msgfolder); | setTitleFromFolder(msgfolder, null); | function ChangeFolderByURI(uri, isThreaded, sortID){ dump('In ChangeFolderByURI\n'); var resource = RDF.GetResource(uri); var msgfolder = resource.QueryInterface(Components.interfaces.nsIMsgFolder); try { setTitleFromFolder(msgfolder); } catch (ex) { dump("error setting title: " + ex + "\n"); } ... |
try { if (!token.isLoggedIn()) { token.login(true); } window.open("changepassword.xul", selected_slot.tokenName, "chrome,width=300,height=350,resizable=0,modal=1,dialog=1"); showSlotInfo(); enableButtons(); } catch (e) { } | window.open("changepassword.xul", selected_slot.tokenName, "chrome,resizable=1,modal=1,dialog=1"); showSlotInfo(); enableButtons(); | function changePassword(){ getSelectedItem(); token = selected_slot.getToken(); try { // this seems to be neccessary, otherwise it fails in the PKCS#11 layer. // but it doesn't feel right... if (!token.isLoggedIn()) { token.login(true); } window.open("changepassword.xul", selected_... |
token = selected_slot.getToken(); | function changePassword(){ getSelectedItem(); token = selected_slot.getToken(); window.open("changepassword.xul", selected_slot.tokenName, "chrome,resizable=1,modal=1,dialog=1"); showSlotInfo(); enableButtons();} | |
var askEveryTimeHidden = document.getElementById("askEveryTimeHidden"); askEveryTimeHidden.setAttribute("checked",(radiogroup.value == 1)?"true":"false"); | function changePasswordSettings(){ var askTimes = 0; var timeout = internal_token.getAskPasswordTimeout(); var timeoutField = document.getElementById("passwordTimeout"); var radiogroup = document.getElementById("passwordAskTimes"); switch ( radiogroup.value ) { case "0": timeoutField.setAttribute("disabled", ... | |
case "2": var timeoutField = document.getElementById("passwordTimeout"); | case "2": timeoutField.removeAttribute("disabled"); timeoutField.focus(); | function changePasswordSettings(){ var askTimes = 0; var timeout = internal_token.getAskPasswordTimeout(); var radiogroup = document.getElementById("passwordAskTimes"); switch ( radiogroup.value ) { case "0": askTimes = nsIPK11Token.ASK_FIRST_TIME; break; case "1": askTimes = nsIPK11Token.ASK_EVERY_TIM... |
if (gSearchInput.value == "") | if (gSearchInput.value == "" || gSearchInput.showingSearchCriteria) { | function changeQuickSearchMode(aMenuItem){ viewDebug("changing quick search mode\n"); // extract the label and set the search input to match it var oldSearchMode = gSearchInput.searchMode; gSearchInput.searchMode = aMenuItem.value; if (gSearchInput.value == "") gSearchInput.showingSearchCriteria = true; else i... |
viewDebug("changing quick search mode\n"); | function changeQuickSearchMode(aMenuItem){ // extract the label and set the search input to match it var oldSearchMode = gSearchInput.searchMode; gSearchInput.searchMode = aMenuItem.value; if (gSearchInput.value == "") gSearchInput.showingSearchCriteria = true; else if (oldSearchMode != gSearchInput.searchMode)... | |
dialog.suggestedList.selectedIndex = -1; | dialog.SuggestedList.selectedIndex = -1; | function ChangeReplaceWord(){ // Unselect the word in the suggested list when user edits the replacement word dialog.suggestedList.selectedIndex = -1;} |
dialog.SuggestedList.clearItemSelection(); | dialog.SuggestedList.selectedIndex = -1; | function ChangeReplaceWord(){ // Calling this triggers SelectSuggestedWord(), // so temporarily suppress the effect of that var saveAllow = allowSelectWord; allowSelectWord = false; // Unselect the word in the suggested list when user edits the replacement word dialog.SuggestedList.clearItemSelection(); allowSe... |
PreviousReplaceWord = dialog.ReplaceWordInput.value; SetReplaceEnable(); | function ChangeReplaceWord(){ // Calling this triggers SelectSuggestedWord(), // so temporarily suppress the effect of that var saveAllow = allowSelectWord; allowSelectWord = false; // Unselect the word in the suggested list when user edits the replacement word dialog.SuggestedList.clearItemSelection(); allowSe... | |
SetElementEnabledById("ok", gDialog.rowsInput.value.length > 0 && | var enable = gDialog.rowsInput.value.length > 0 && | function ChangeRowOrColumn(id){ // Allow only integers forceInteger(id); // Enable OK only if both rows and columns have a value > 0 SetElementEnabledById("ok", gDialog.rowsInput.value.length > 0 && gDialog.rowsInput.value > 0 && gDialog.columnsInput.value.... |
gDialog.columnsInput.value > 0); | gDialog.columnsInput.value > 0; SetElementEnabledById("ok", enable); SetElementEnabledById("AdvancedEditButton1", enable); | function ChangeRowOrColumn(id){ // Allow only integers forceInteger(id); // Enable OK only if both rows and columns have a value > 0 SetElementEnabledById("ok", gDialog.rowsInput.value.length > 0 && gDialog.rowsInput.value > 0 && gDialog.columnsInput.value.... |
var previousSelection = screenResolution.getElementsByAttribute("current", "true")[0]; | function changeScreenResolution() { var screenResolution = document.getElementById("screenResolution"); var userResolution = document.getElementById("userResolution"); if (screenResolution.value == "other") { // If the user selects "Other..." we bring up the calibrate screen dialog var rv... | |
var defaultResolution = document.getElementById("defaultResolution"); screenResolution.selectedItem = defaultResolution; userResolution.setAttribute("hidden", "true"); | screenResolution.selectedItem = previousSelection; | function changeScreenResolution() { var screenResolution = document.getElementById("screenResolution"); var userResolution = document.getElementById("userResolution"); if (screenResolution.value == "other") { // If the user selects "Other..." we bring up the calibrate screen dialog var rv... |
previousSelection.removeAttribute("current"); screenResolution.selectedItem.setAttribute("current", "true"); | function changeScreenResolution() { var screenResolution = document.getElementById("screenResolution"); var userResolution = document.getElementById("userResolution"); if (screenResolution.value == "other") { // If the user selects "Other..." we bring up the calibrate screen dialog var rv... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.