rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
statusFeedback = Components.classes["component: | statusFeedback = Components.classes["@mozilla.org/messenger/statusfeedback;1"].createInstance(); | function AbPrintCard(){ dump("print card\n"); var selectedItems = resultsTree.selectedItems; var numSelected = selectedItems.length; if (numSelected == 0) { dump("AbPrintCard(): No card selected.\n"); return false; } var statusFeedback; statusFeedback = Components.classes["component://netscape/messenger/statusfeedb... |
totalCard, selectionArray, statusFeedback); | totalCard, selectionArray, statusFeedback, gPrintSettings); | function AbPrintCard(){ var selectedItems = GetSelectedAbCards(); var numSelected = selectedItems.length; if (!numSelected) return; var addressbook = Components.classes["@mozilla.org/addressbook;1"].createInstance(Components.interfaces.nsIAddressBook); var uri = GetAbViewURI(); if (!uri) return; var statusF... |
else if (t.localName == "outlinerbody") { | else if (t.localName == "outlinerchildren") { | function AbResultsPaneOnClick(event){ // we only care about button 0 (left click) events if (event.button != 0) return; // all we need to worry about here is double clicks // and column header clicks. // // we get in here for clicks on the "outlinercol" (headers) // and the "scrollbarbutton" (scrol... |
if (pickerRv.reason == PICK_CANCEL) | if (!pickerRv.ok) | function accept(c) { if (c.TYPE == "IRCDCCChat") { if (!c.accept()) return false; display(getMsg(MSG_DCCCHAT_ACCEPTED, c._getParams()), "DCC-CHAT"); return true; } // Accept the request passed in... var filename = c.filename; ... |
#ifndef MOZ_PHOENIX | function acceptDialog(){ var appName = gBrandBundle.getString("brandShortName"); var profilesElement = document.getElementById("profiles"); var selectedProfile = profilesElement.selectedItem; if (!selectedProfile) { var pleaseSelectTitle = gProfileManagerBundle.getString("pleaseSelectTitle"); var pleaseSelect... | |
#endif | function acceptDialog(){ var appName = gBrandBundle.getString("brandShortName"); var profilesElement = document.getElementById("profiles"); var selectedProfile = profilesElement.selectedItem; if (!selectedProfile) { var pleaseSelectTitle = gProfileManagerBundle.getString("pleaseSelectTitle"); var pleaseSelect... | |
#end if | function acceptDialog(){ var appName = gBrandBundle.getString("brandShortName"); var profilesElement = document.getElementById("profiles"); var selectedProfile = profilesElement.selectedItem; if (!selectedProfile) { var pleaseSelectTitle = gProfileManagerBundle.getString("pleaseSelectTitle"); var pleaseSelect... | |
profileLock = selectedProfile.profile.lock(); | profileLock = selectedProfile.profile.lock({ value: null }); | function acceptDialog(){ var appName = gBrandBundle.getString("brandShortName"); var profilesElement = document.getElementById("profiles"); var selectedProfile = profilesElement.selectedItem; if (!selectedProfile) { var pleaseSelectTitle = gProfileManagerBundle.getString("pleaseSelectTitle"); var pleaseSelect... |
gProfileManagerBundle.getFormattedString("profileLocked", [appName, selectedProfile.profile.name]); | gProfileManagerBundle.getFormattedString("profileLocked2", [appName, selectedProfile.profile.name, appName]); | function acceptDialog(){ var appName = gBrandBundle.getString("brandShortName"); var profilesElement = document.getElementById("profiles"); var selectedProfile = profilesElement.selectedItem; if (!selectedProfile) { var pleaseSelectTitle = gProfileManagerBundle.getString("pleaseSelectTitle"); var pleaseSelect... |
var accountManager = Components.classes["component: | var accountManager = Components.classes["@mozilla.org/messenger/account-manager;1"].getService(Components.interfaces.nsIMsgAccountManager); | function AccountExists(userName,hostName,serverType){ dump("AccountExists("+userName+","+hostName+","+serverType+")\n"); var accountExists = false; var accountManager = Components.classes["component://netscape/messenger/account-manager"].getService(Components.interfaces.nsIMsgAccountManager); try { var serve... |
$(element).focus(); $(element).select(); | element = $(element); element.focus(); if (element.select) element.select(); | activate: function(element) { $(element).focus(); $(element).select(); } |
add: function(t) { return this.pushStack( jQuery.merge( this, t.constructor == String ? jQuery.find(t) : t.constructor == Array ? t : [t] ), arguments ); }, | add: function(element, type, handler) { if ( jQuery.browser.msie && element.setInterval != undefined ) element = window; if ( !handler.guid ) handler.guid = this.guid++; if (!element.events) element.events = {}; var handlers = element.events[type]; if (!handlers) { handlers = element.events[type] = {}; if ... | add: function(t) { return this.pushStack( jQuery.merge( this, t.constructor == String ? jQuery.find(t) : t.constructor == Array ? t : [t] ), arguments ); }, |
jQuery.find(t) : t.constructor == Array ? t : [t] ), arguments ); | jQuery.find(t) : t.constructor == Array ? t : [t] ) ); | add: function(t) { return this.pushStack( jQuery.merge( this, typeof t == "string" ? jQuery.find(t) : t.constructor == Array ? t : [t] ), arguments ); }, |
$.event.add = function(element, type, handler) { if ( $.browser == "msie" && typeof element.setInterval != "undefined" ) { element = window; } if (!handler.$$guid) { handler.$$guid = $.event.add.guid++; } if (!element.events) { element.events = {}; } var handlers = element.events[type]; if (!handlers) { handlers = e... | add: function(t) { this.cur = $.merge( this.cur, t.constructor == String ? $.Select(t) : t.constructor == Array ? t : [t] ); return this; }, | $.event.add = function(element, type, handler) { // For whatever reason, IE has trouble passing the window object // around, causing it to be cloned in the process if ( $.browser == "msie" && typeof element.setInterval != "undefined" ) { element = window; } if (!handler.$$guid) { handler.$$guid = $.event.add.guid++; }... |
function add (name, func, usage, help) | function add (name, func) | function add (name, func, usage, help) { var usage = getMsg (name + "Usage"); var help = getMsg(name + "Help"); commandObject.add (name, func, usage, help); } |
uri = Components.classes['component: | uri = Components.classes['@mozilla.org/network/standard-url;1'].createInstance(); | function add_datasource_to_other_panels(link) { // Convert the |link| attribute into a URL var url = document.location; debug("Current URL: " +url); debug("Current link: " +link); uri = Components.classes['component://netscape/network/standard-url'].createInstance(); uri = uri.QueryInterface(Components.interface... |
var tree_root = tree.getElementsByTagName("treechildren")[1]; | var tree_root = tree.lastChild; | function add_node_to_current_list(registry, service){ debug("Adding "+service.Value); // Copy out the attributes we want var option_title = get_attr(registry, service, 'title'); var option_customize = get_attr(registry, service, 'customize'); var option_content = get_attr(registry, service, 'content'); var ... |
if (treeitem.id == service.Value) { | if (treeitem.id == service.Value) | function add_node_to_current_list(registry, service){ debug("Adding "+service.Value); // Copy out the attributes we want var option_title = get_attr(registry, service, 'title'); var option_customize = get_attr(registry, service, 'customize'); var option_content = get_attr(registry, service, 'content'); var ... |
tree.treeBoxObject.selection.select(i); tree.treeBoxObject.ensureRowIsVisible(i); return; } | return i; | function add_node_to_current_list(registry, service){ debug("Adding "+service.Value); // Copy out the attributes we want var option_title = get_attr(registry, service, 'title'); var option_customize = get_attr(registry, service, 'customize'); var option_content = get_attr(registry, service, 'content'); var ... |
var newIndex = tree_root.getElementsByTagName("treeitem").length - 1; tree.treeBoxObject.selection.select(newIndex); tree.treeBoxObject.ensureRowIsVisible(newIndex); | return i; | function add_node_to_current_list(registry, service){ debug("Adding "+service.Value); // Copy out the attributes we want var option_title = get_attr(registry, service, 'title'); var option_customize = get_attr(registry, service, 'customize'); var option_content = get_attr(registry, service, 'content'); var ... |
SimileAjax.Debug.exception(e); | SimileAjax.Debug.exception("Error adding action {" + action.label + "} to history", e); | SimileAjax.History.addAction = function(action) { SimileAjax.History.initialize(); try { action.perform(); if (SimileAjax.History.enabled) { SimileAjax.History._actions = SimileAjax.History._actions.slice( 0, SimileAjax.History._currentIndex - SimileAjax.History._baseIn... |
if ((alarmTime.compare(now) >= 0 && alarmTime.compare(this.mRangeEnd) <= 0) || skipCheck) { | if ((alarmTime.compare(now) >= 0) || skipCheck) { | addAlarm: function(aItem, skipCheck, alarmTime) { // if aItem.alarmTime >= 'now' && aItem.alarmTime <= gAlarmEndTime if (!alarmTime) alarmTime = aItem.alarmTime.getInTimezone("UTC"); var now; // XXX When the item is floating, should use the default timezone // from the ... |
var timeUntilRefresh = this.mRangeEnd.subtractDate(now).inSeconds * 1000; if (timeUntilRefresh < timeout) { return; } | addAlarm: function(aItem, skipCheck, alarmTime) { // if aItem.alarmTime >= 'now' && aItem.alarmTime <= gAlarmEndTime if (!alarmTime) alarmTime = aItem.alarmTime.getInTimezone("UTC"); var now; // XXX When the item is floating, should use the default timezone // from the ... | |
gAlarmWindow.addAlarm(event); | calAlarmWindow.addAlarm(event); | var addAlarm = function() { gAlarmWindow.addAlarm(event); } |
alarmWidget.setAttribute("location", event.getProperty("LOCATION")); | function addAlarm(event){ var alarmList = document.getElementById("alarmlist"); var alarmWidget = document.createElement("calendar-alarm-widget"); alarmWidget.setAttribute("title", event.title); alarmWidget.setAttribute("time", event.alarmTime.toString()); alarmWidget.addEventListener("snooze", onSnoozeAlarm, fals... | |
cell.setAttribute("value", attachment); | cell.setAttribute("value", unescape(attachment)); cell.setAttribute("attachment", attachment); | function AddAttachment(attachment){ if (attachment && (attachment != "")) { var bucketBody = document.getElementById("bucketBody"); var item = document.createElement("treeitem"); var row = document.createElement("treerow"); var cell = document.createElement("treecell"); cell.setAttribute("value", attachment); r... |
var messagePrefix = /^mailbox-message:|^imap-message:|^news-message:/i; if (messagePrefix.test(attachment.name)) attachment.name = sComposeMsgsBundle.getString("messageAttachmentSafeName"); else { var mailProtocol = /^mailbox:|^imap:|^s?news:/i; if (mailProtocol.test(attachment.name)) attachment.name = sComposeMsgsBu... | function AddAttachment(attachment){ if (attachment && attachment.url) { var bucket = document.getElementById("attachmentBucket"); var item = document.createElement("listitem"); if (!attachment.name) attachment.name = gMsgCompose.AttachmentPrettyName(attachment.url); item.setAttribute("label", attachm... | |
item.setAttribute('value', name); item.setAttribute('oncommand', oncommand); | function AddAttachmentToMenu(name, oncommand) { var popup = document.getElementById("attachmentPopup"); if ( popup && (popup.childNodes.length >= 2) ) { var item = document.createElement('menuitem'); if ( item ) { // popup.removeAttribute('menugenerated'); item.setAttribute('value', name); ... | |
item.setAttribute('value', name); item.setAttribute('oncommand', oncommand); | function AddAttachmentToMenu(name, oncommand) { var popup = document.getElementById("attachmentPopup"); if ( popup && (popup.childNodes.length >= 2) ) { var item = document.createElement('menuitem'); if ( item ) { // popup.removeAttribute('menugenerated'); item.setAttribute('value', name); ... | |
attachBox.removeAttribute("hide"); | attachBox.removeAttribute("collapsed"); | function AddAttachmentToMenu(name, oncommand) { var popup = document.getElementById("attachmentPopup"); if (popup) { var item = document.createElement('menuitem'); if ( item ) { popup.appendChild(item); item.setAttribute('value', name); item.setAttribute('oncommand', oncommand); } ... |
(!(/imap-message/.test(attachment.uri)) || CheckOnline()); | (!(/imap-message/.test(attachment.uri)) || MailOfflineMgr.isOnline()); | function addAttachmentToPopup(popup, attachment, attachmentIndex) { if (popup) { var item = document.createElement('menu'); if ( item ) { if (!gMessengerBundle) gMessengerBundle = document.getElementById("bundle_messenger"); // insert the item just before the separator...the separato... |
var canDetach = CanDetachAttachments(); var openpopup = document.createElement('menupopup'); openpopup = item.appendChild(openpopup); var menuitementry = document.createElement('menuitem'); menuitementry.attachment = attachment; menuitementry.setAttribute('oncommand', 'this.attachment.openAttachment()'); if (!gDele... | } } | function addAttachmentToPopup(popup, attachment, attachmentIndex) { if (popup) { var item = document.createElement('menu'); if ( item ) { if (!gMessengerBundle) gMessengerBundle = document.getElementById("bundle_messenger"); // insert the item just before the separator item = po... |
treeItem = document.createElement("treeitem"); treeRow = document.createElement("treerow"); treeCell = document.createElement("treecell"); | var treeItem = document.createElement("treeitem"); var treeRow = document.createElement("treerow"); var treeCell = document.createElement("treecell"); | function addAttendee(email){ treeItem = document.createElement("treeitem"); treeRow = document.createElement("treerow"); treeCell = document.createElement("treecell"); treeCell.setAttribute("label", email); treeItem.appendChild(treeRow); treeRow.appendChild(treeCell); document.getElementById("bucke... |
BookmarksUtils.addBookmarkForBrowser(contentArea.webNavigation); | BookmarksUtils.addBookmarkForBrowser(contentArea.webNavigation, true); | addBookmark: function () { // This is somewhat of a hack, and we'd like to parameterize this so that // eventually we can bookmark mail messages and editor documents. var contentArea = top.document.getElementById('content'); if (contentArea) BookmarksUtils.addBookmarkForBrowser(contentArea.webNaviga... |
var bookmarkService = Components.classes["component: | var bookmarkService = Components.classes["@mozilla.org/browser/bookmarks-service;1"].getService(); | addBookmark: function(aURL, aTitle) { dump("addBookmark(" + aURL + "," + aTitle + ")\n"); var bookmarkService = Components.classes["component://netscape/browser/bookmarks-service"].getService(); bookmarkService = bookmarkService.QueryInterface(Components.interfaces.nsIBookmarksService); ... |
addBookmark: function (aURL, aTitle, aCharset) | addBookmark: function (aURL, aTitle, aCharset, aShowDialog) | addBookmark: function (aURL, aTitle, aCharset) { if (aCharset === undefined) { var fw = document.commandDispatcher.focusedWindow; aCharset = fw.document.characterSet; } const kPrefContractID = "@mozilla.org/preferences;1"; const kPrefIID = Components.interfaces.nsIPref; const kPrefSvc = Co... |
const kPrefContractID = "@mozilla.org/preferences;1"; const kPrefIID = Components.interfaces.nsIPref; const kPrefSvc = Components.classes[kPrefContractID].getService(kPrefIID); var showDialog = true; try { showDialog = !kPrefSvc.GetBoolPref("browser.bookmarks.add_without_dialog"); } catch (e) { } if (showDialog) | if (aShowDialog) | addBookmark: function (aURL, aTitle, aCharset) { if (aCharset === undefined) { var fw = document.commandDispatcher.focusedWindow; aCharset = fw.document.characterSet; } const kPrefContractID = "@mozilla.org/preferences;1"; const kPrefIID = Components.interfaces.nsIPref; const kPrefSvc = Co... |
"centerscreen,chrome,dialog=no,resizable=no", aTitle, aURL, null, aCharset); | "centerscreen,chrome,dialog=no,resizable=yes", aTitle, aURL, null, aCharset); | addBookmark: function (aURL, aTitle, aCharset) { if (aCharset === undefined) { var fw = document.commandDispatcher.focusedWindow; aCharset = fw.document.characterSet; } const kPrefContractID = "@mozilla.org/preferences;1"; const kPrefIID = Components.interfaces.nsIPref; const kPrefSvc = Co... |
addBookmarkForBrowser: function (aDocShell) | addBookmarkForBrowser: function (aDocShell, aShowDialog) | addBookmarkForBrowser: function (aDocShell) { // Bug 52536: We obtain the URL and title from the nsIWebNavigation // associated with a <browser/> rather than from a DOMWindow. // This is because when a full page plugin is loaded, there is // no DOMWindow (?) but informat... |
this.addBookmark(url, title, docCharset); | this.addBookmark(url, title, docCharset, aShowDialog); | addBookmarkForBrowser: function (aDocShell) { // Bug 52536: We obtain the URL and title from the nsIWebNavigation // associated with a <browser/> rather than from a DOMWindow. // This is because when a full page plugin is loaded, there is // no DOMWindow (?) but informat... |
#ifndef MOZ_PLACES | #ifndef MOZ_PLACES_BOOKMARKS | addBookmarkForFrame: function() { var doc = this.target.ownerDocument; var uri = doc.location.href;#ifndef MOZ_PLACES var title = doc.title; var description = BookmarksUtils.getDescriptionFromDocument(doc); if (!title) title = uri; BookmarksUtils.addBookmark(uri, title, doc.charset, description... |
fp.appendFilter("Certificate Files", "*.crt; *.cert; *.cer; *.pem; *.der"); | fp.appendFilter(bundle.GetStringFromName("file_browse_Certificate_spec"), "*.crt; *.cert; *.cer; *.pem; *.der"); | function addCACerts(){ var bundle = srGetStrBundle("chrome://pippki/locale/pippki.properties"); var fp = Components.classes[nsFilePicker].createInstance(nsIFilePicker); fp.init(window, bundle.GetStringFromName("importCACertsPrompt"), nsIFilePicker.modeOpen); fp.appendFilter("Certificate Files", "*... |
this.observeCalendarAdded(aCalendar); | if (this.mPrefPrefix) { this.mCalMgr.setCalendarPref(aCalendar, this.mActivePref, "true"); } this.notifyObservers("onCalendarAdded", [aCalendar]); | addCalendar: function (aCalendar) { // check if the calendar already exists for each (cal in this.mCalendars) { if (aCalendar.uri.equals(cal.uri)) { // throw exception if calendar already exists? return; } } // add our observer helper ... |
if (this.mDefaultCalendar == null) { this.mDefaultCalendar = aCalendar; this.observeDefaultCalendarChanged(aCalendar); } | if (this.mDefaultCalendar == null) this.setDefaultCalendar(aCalendar, false); | addCalendar: function (aCalendar) { // check if the calendar already exists for each (cal in this.mCalendars) { if (aCalendar.uri.equals(cal.uri)) { // throw exception if calendar already exists? return; } } // add our observer helper ... |
alert("1"+gCachedStyleSheet); | function addCalendarToTree(aCalendar){ var boxobj = document.getElementById("calendarTree").treeBoxObject; // Special trick to compare interface pointers, since normal, == // comparison can fail due to javascript wrapping. var sip = Components.classes["@mozilla.org/supports-interface-pointer;1"] ... | |
updateStyleSheetForCalendar(aCalendar); | if (!gCachedStyleSheet) { gCachedStyleSheet = getStyleSheet("chrome: } alert("1"+gCachedStyleSheet); updateStyleSheetForObject(aCalendar, gCachedStyleSheet); | function addCalendarToTree(aCalendar){ var boxobj = document.getElementById("calendarTree").treeBoxObject; // Special trick to compare interface pointers, since normal, == // comparison can fail due to javascript wrapping. var sip = Components.classes["@mozilla.org/supports-interface-pointer;1"] ... |
boxobj.rowCountChanged(getCalendars().indexOf(aCalendar), 1); | boxobj.invalidate(); | function addCalendarToTree(aCalendar){ var boxobj = document.getElementById("calendarTree").treeBoxObject; boxobj.rowCountChanged(getCalendars().indexOf(aCalendar), 1); updateStyleSheetForCalendar(aCalendar);} |
jQuery.class.add(this,c); | jQuery.className.add(this,c); | addClass: function(c) { return this.each(function(){ jQuery.class.add(this,c); }); }, |
return this.each(function(){ if ($.hasWord(this,c)) return; this.className += ( this.className.length > 0 ? " " : "" ) + c; }); }, | return this.each(function(){ $.class.add(this,c); }); }, | addClass: function(c) { return this.each(function(){ if ($.hasWord(this,c)) return; this.className += ( this.className.length > 0 ? " " : "" ) + c; }); }, |
add ("charset", "onInputCharset"); | function addCommands(commandObject){ function add (name, func) { var usage = getMsg (name + "Usage"); var help = getMsg(name + "Help"); commandObject.add (name, func, usage, help); } add ("about", "onInputAbout"); add ("attach", "onInputAttach"); add ("away", "onInputAway"); ... | |
function add (name, func, usage, help) | function add (name, func) | function addCommands(commandObject){ function add (name, func, usage, help) { var usage = getMsg (name + "Usage"); var help = getMsg(name + "Help"); commandObject.add (name, func, usage, help); } add ("attach", "onInputAttach"); add ("away", "onInputAway"); add ("cancel", "onI... |
add ("whowas", "onInputSimpleCommand"); | function addCommands(commandObject){ function add (name, func, usage, help) { var usage = getMsg (name + "Usage"); var help = getMsg(name + "Help"); commandObject.add (name, func, usage, help); } add ("attach", "onInputAttach"); add ("away", "onInputAway"); add ("cancel", "onI... | |
function addData(type, data) { xferable.addDataFlavor(type); xferable.setTransferData(type, self._wrapString(data), data.length * 2); } | function addData(type) { data.addDataForFlavour(type, self._wrapString(self.wrapNode(node, type))); } | function addData(type, data) { xferable.addDataFlavor(type); xferable.setTransferData(type, self._wrapString(data), data.length * 2); } |
function addData(type, data) { xferable.addDataFlavor(type); xferable.setTransferData(type, self._wrapString(data), data.length * 2); } | function addData(type) { data.addDataForFlavour(type, PlacesUtils._wrapString(PlacesUtils.wrapNode(node, type))); } | function addData(type, data) { xferable.addDataFlavor(type); xferable.setTransferData(type, self._wrapString(data), data.length * 2); } |
SetupMoveCopyMenus("messagePaneContext-copyMenu", accountManagerDataSource, folderDataSource); SetupMoveCopyMenus("messagePaneContext-moveMenu", accountManagerDataSource, folderDataSource); | function AddDataSources(){ accountManagerDataSource = accountManagerDataSource.QueryInterface(Components.interfaces.nsIRDFDataSource); folderDataSource = folderDataSource.QueryInterface(Components.interfaces.nsIRDFDataSource); //to move menu item SetupMoveCopyMenus('moveMenu', accountManagerDataSource, folderDataSource... | |
if (commonDialogsService) | if (promptService) | function AddDomain(obj){ var DomainName; if (commonDialogsService) { var result = {value:0}; if (commonDialogsService.Prompt( window, obj.DlgTitle, obj.DlgMsg, null, result )) DomainName = result.value.replace(/ /g,""); } if (DomainName) { var objPrime; if (obj.id == "h... |
if (commonDialogsService.Prompt( | if (promptService.Prompt( | function AddDomain(obj){ var DomainName; if (commonDialogsService) { var result = {value:0}; if (commonDialogsService.Prompt( window, obj.DlgTitle, obj.DlgMsg, null, result )) DomainName = result.value.replace(/ /g,""); } if (DomainName) { var objPrime; if (obj.id == "h... |
"", 0, | function AddDomain(obj){ var DomainName; if (commonDialogsService) { var result = {value:0}; if (commonDialogsService.Prompt( window, obj.DlgTitle, obj.DlgMsg, null, result )) DomainName = result.value.replace(/ /g,""); } if (DomainName) { var objPrime; if (obj.id == "h... | |
fp.appendFilter("Certificate Files", "*.crt; *.cert; *.cer; *.pem; *.der"); | fp.appendFilter(bundle.GetStringFromName("file_browse_Certificate_spec"), "*.crt; *.cert; *.cer; *.pem; *.der"); | function addEmailCert(){ var bundle = srGetStrBundle("chrome://pippki/locale/pippki.properties"); var fp = Components.classes[nsFilePicker].createInstance(nsIFilePicker); fp.init(window, bundle.GetStringFromName("importEmailCertPrompt"), nsIFilePicker.modeOpen); fp.appendFilter("Certificate Files"... |
var text = prompt(bundle.GetStringFromName("EnterNewEntry"), "" ); | var text = myPrompt (bundle.GetStringFromName("EnterNewEntry"), "", bundle.GetStringFromName("AddingTitle")); | function AddEntry0() { var i; var text = prompt(bundle.GetStringFromName("EnterNewEntry"), "" ); if (text == "") { return; } var crypt = Encrypt(text); if (crypt == "") { /* user failed to unlock the database */ return; } stringIndex = entries[schemas[FirstSelectedSchema()]+FirstSelectedEntry()]; if(s... |
calendarEvent = calendarEventArray[i] | if( isEvent( calendarEventArray[i] ) ) { var calendarEvent = calendarEventArray[i]; | function addEventsToCalendar( calendarEventArray, silent ){ for(var i = 0; i < calendarEventArray.length; i++) { calendarEvent = calendarEventArray[i] // Check if event with same ID already in Calendar. If so, import event with new ID. if( gICalLib.fetchEvent( calendarEvent.id ) != null ) { ... |
if( gICalLib.fetchEvent( calendarEvent.id ) != null ) { calendarEvent.id = createUniqueID( ); | if( gICalLib.fetchEvent( calendarEvent.id ) != null ) { calendarEvent.id = createUniqueID( ); } if(calendarEvent.allDay != true) convertZuluToLocal( calendarEvent ); if( silent ) gICalLib.addEvent( calendarEvent, defaultServer.path ); else editNewEvent( calendarEvent ); } else if( isToDo( calendarEventArray[i] ) ) ... | function addEventsToCalendar( calendarEventArray, silent ){ for(var i = 0; i < calendarEventArray.length; i++) { calendarEvent = calendarEventArray[i] // Check if event with same ID already in Calendar. If so, import event with new ID. if( gICalLib.fetchEvent( calendarEvent.id ) != null ) { ... |
if(calendarEvent.allDay != true) convertZuluToLocal( calendarEvent ); if( silent ) gICalLib.addEvent( calendarEvent ); else editNewEvent( calendarEvent ); | function addEventsToCalendar( calendarEventArray, silent ){ for(var i = 0; i < calendarEventArray.length; i++) { calendarEvent = calendarEventArray[i] // Check if event with same ID already in Calendar. If so, import event with new ID. if( gICalLib.fetchEvent( calendarEvent.id ) != null ) { ... | |
var dateToAdd = getDateTimeFieldValue( "exception-dates-text" ); | var dateToAdd = document.getElementById( "exceptions-date-picker" ).value; | function addException( dateToAdd ){ if( !dateToAdd ) { //get the date from the date and time box. //returns a date object var dateToAdd = getDateTimeFieldValue( "exception-dates-text" ); } if( isAlreadyException( dateToAdd ) ) return; var DateLabel = formatDate( dateToAdd ); //add a r... |
var dateToAdd = document.getElementById( "exceptions-date-picker" ).value; | dateToAdd = document.getElementById( "exceptions-date-picker" ).value; | function addException( dateToAdd ){ if( !dateToAdd ) { //get the date from the date and time box. //returns a date object var dateToAdd = document.getElementById( "exceptions-date-picker" ).value; } if( isAlreadyException( dateToAdd ) ) return; var DateLabel = formatDate( dateToAdd ); ... |
var itemResource = rdf.GetResource(feedProperties.feedLocation); feed = new Feed(itemResource); if (feedProperties.folderURI) { var folderResource = rdf.GetResource(feedProperties.folderURI); if (folderResource) { var folder = folderResource.QueryInterface(Components.interfaces.nsIMsgFolder); if (folder && !folder.is... | addFeed: function(aFeedLocation, aRootFolderURI) { var userAddedFeed = false; var defaultQuickMode = this.mRSSServer.getBoolAttribute('quickMode'); var feedProperties = { feedName: "", feedLocation: aFeedLocation, serverURI: this.mRSSServer.serverURI, s... | |
function addFeed(url, title, quickMode, destFolder) { | function addFeed(url, title, destFolder) { | function addFeed(url, title, quickMode, destFolder) { var ds = getSubscriptionsDS(destFolder.server); var feeds = getSubscriptionsList(destFolder.server); // Give quickMode a default value of "true"; otherwise convert value // to either "true" or "false" string. quickMode = quickMode == null ? "false" : ... |
quickMode = quickMode == null ? "false" : quickMode ? "true" : "false"; | function addFeed(url, title, quickMode, destFolder) { var ds = getSubscriptionsDS(destFolder.server); var feeds = getSubscriptionsList(destFolder.server); // Give quickMode a default value of "true"; otherwise convert value // to either "true" or "false" string. quickMode = quickMode == null ? "false" : ... | |
ds.Assert(id, FZ_QUICKMODE, rdf.GetLiteral(quickMode), true); | function addFeed(url, title, quickMode, destFolder) { var ds = getSubscriptionsDS(destFolder.server); var feeds = getSubscriptionsList(destFolder.server); // Give quickMode a default value of "true"; otherwise convert value // to either "true" or "false" string. quickMode = quickMode == null ? "false" : ... | |
function addHint(elems) { var elem; var i = 0; | addHint : function(elems) { var elem; var i = 0; | function addHint(elems){ var elem; var i = 0; processElements: while(elem = elems.item(i++)) { var accessKey = elem.getAttributeNode("accesskey"); if (!accessKey || !accessKey.value) continue processElements; var title = elem.getAttributeNode("title"); if (title && title.value) { var overr... |
var title = elem.getAttributeNode("title"); if (title && title.value) { var overrides = new Array('accesskey','alt+','ctrl+'); for (var j=0; j < overrides.length; j++) { if (title.value.toLowerCase().indexOf(overrides[j]) != -1) continue processElements; } elem.setAttribute("title", title.value + ' (' + getHintText(acc... | var title = elem.getAttributeNode("title"); if (title && title.value) { var overrides = new Array('accesskey','alt+','ctrl+'); for (var j=0; j < overrides.length; j++) { if (title.value.toLowerCase().indexOf(overrides[j]) != -1) continue processElements; } elem.setAttribute("title", title.value + ' (' + this.getHintTex... | function addHint(elems){ var elem; var i = 0; processElements: while(elem = elems.item(i++)) { var accessKey = elem.getAttributeNode("accesskey"); if (!accessKey || !accessKey.value) continue processElements; var title = elem.getAttributeNode("title"); if (title && title.value) { var overr... |
function addHistory (source, obj) | function addHistory (source, obj, mergeData, collapseRow) | function addHistory (source, obj){ var tbody; if (!source.messages) { source.messages = document.createElementNS ("http://www.w3.org/1999/xhtml", "html:table"); source.messages.setAttribute ("class", "msg-table"); source.messages.setAttri... |
if (!source.messages) | if (!("messages" in source) || source.messages == null) | function addHistory (source, obj){ var tbody; if (!source.messages) { source.messages = document.createElementNS ("http://www.w3.org/1999/xhtml", "html:table"); source.messages.setAttribute ("class", "msg-table"); source.messages.setAttri... |
if (0) { tbody = document.createElementNS ("http: "html:tbody"); source.messages.appendChild (tbody); } else { tbody = source.messages; } | tbody = document.createElementNS ("http: "html:tbody"); source.messages.appendChild (tbody); | function addHistory (source, obj){ var tbody; if (!source.messages) { source.messages = document.createElementNS ("http://www.w3.org/1999/xhtml", "html:table"); source.messages.setAttribute ("class", "msg-table"); source.messages.setAttri... |
if (0) { tbody = source.messages.firstChild; } else { tbody = source.messages; } | { tbody = source.messages.firstChild; } | function addHistory (source, obj){ var tbody; if (!source.messages) { source.messages = document.createElementNS ("http://www.w3.org/1999/xhtml", "html:table"); source.messages.setAttribute ("class", "msg-table"); source.messages.setAttri... |
tbody.appendChild (obj); | if (obj) tbody.appendChild (obj); | function addHistory (source, obj){ var tbody; if (!source.messages) { source.messages = document.createElementNS ("http://www.w3.org/1999/xhtml", "html:table"); source.messages.setAttribute ("class", "msg-table"); source.messages.setAttri... |
if (needScroll && client.currentObject == source) w.scrollTo (w.pageXOffset, w.document.height); | if ("currentObject" in client && client.currentObject == source && needScroll) { scrollDown(); setTimeout ("scrollDown()", 500); setTimeout ("scrollDown()", 1000); setTimeout ("scrollDown()", 2000); } | function addHistory (source, obj){ var tbody; if (!source.messages) { source.messages = document.createElementNS ("http://www.w3.org/1999/xhtml", "html:table"); source.messages.setAttribute ("class", "msg-table"); source.messages.setAttri... |
source.messages.setAttribute ("class", "chat-view"); source.messages.setAttribute ("cellpadding", "0"); source.messages.setAttribute ("cellspacing", "0"); source.messages.setAttribute ("type", source.TYPE); source.messages.setAttribute ("width", "100%"); switch (source.TYPE) { case "IRCChanUser": case "IRCUser": sourc... | function addHistory (source, obj){ if (!source.messages) { source.messages = document.createElementNS ("http://www.w3.org/1999/xhtml", "html:table"); source.messages.setAttribute ("class", "chat-view"); source.messages.setAttribute ("cellpadding... | |
case "IRCNetwork": case "IRCChannel": case "IRCClient": source.messages.setAttribute ("name", source.name); break; default: dd ("** 'source' has INVALID TYPE in addHistory **"); break; } | source.messages.setAttribute ("class", "msg-table"); source.messages.setAttribute ("view-type", source.TYPE); tbody = document.createElementNS ("http: "html:tbody"); source.messages.appendChild (tbody); | function addHistory (source, obj){ if (!source.messages) { source.messages = document.createElementNS ("http://www.w3.org/1999/xhtml", "html:table"); source.messages.setAttribute ("class", "chat-view"); source.messages.setAttribute ("cellpadding... |
source.messages.appendChild (obj); | tbody.appendChild (obj); | function addHistory (source, obj){ if (!source.messages) { source.messages = document.createElementNS ("http://www.w3.org/1999/xhtml", "html:table"); source.messages.setAttribute ("class", "chat-view"); source.messages.setAttribute ("cellpadding... |
source.messages.insertBefore (obj, source.messages.firstChild); | tbody.insertBefore (obj, source.messages.firstChild); | function addHistory (source, obj){ if (!source.messages) { source.messages = document.createElementNS ("http://www.w3.org/1999/xhtml", "html:table"); source.messages.setAttribute ("class", "chat-view"); source.messages.setAttribute ("cellpadding... |
source.messages.removeChild (source.messages.firstChild); | tbody.removeChild (tbody.firstChild); | function addHistory (source, obj){ if (!source.messages) { source.messages = document.createElementNS ("http://www.w3.org/1999/xhtml", "html:table"); source.messages.setAttribute ("class", "chat-view"); source.messages.setAttribute ("cellpadding... |
source.messages.removeChild (source.messages.lastChild); | tbody.removeChild (tbody.lastChild); | function addHistory (source, obj){ if (!source.messages) { source.messages = document.createElementNS ("http://www.w3.org/1999/xhtml", "html:table"); source.messages.setAttribute ("class", "chat-view"); source.messages.setAttribute ("cellpadding... |
aItem.id = "uuid:" + (new Date()).getTime(); | addItem: function (aItem, aListener) { if (aItem.id == null) { // is this an error? Or should we generate an IID? } if (this.mItems[aItem.id] != null) { // is this an error? if (aListener) aListener.onOperationComplete (Components.results.NS_ERRO... | |
aItem.id = "uuid:" + (new Date()).getTime(); | addItem: function (aItem, aListener) { if (aItem.id == null) { // is this an error? Or should we generate an IID? } if (this.mItems[aItem.id] != null) { // is this an error? if (aListener) aListener.onOperationComplete (Components.results.NS_ERRO... | |
cell.setAttribute("align","left"); | cell.setAttribute("rowMigrate", aProfileObject.mMigrated ); | function AddItem( aChildren, aProfileObject ){ var kids = document.getElementById(aChildren); var item = document.createElement("treeitem"); var row = document.createElement("treerow"); var cell = document.createElement("treecell"); cell.setAttribute("value", aProfileObject.mName ); cell.setAttribute... |
item.setAttribute("rowMigrate", aProfileObject.mMigrated ); | function AddItem( aChildren, aProfileObject ){ var kids = document.getElementById(aChildren); var item = document.createElement("treeitem"); var row = document.createElement("treerow"); var cell = document.createElement("treecell"); cell.setAttribute("value", aProfileObject.mName ); cell.setAttribute... | |
#ifndef MOZ_PLACES | #ifndef MOZ_PLACES_BOOKMARKS | function AddKeywordForSearchField(){ var node = document.popupNode; var docURI = makeURI(node.ownerDocument.URL, node.ownerDocument.characterSet); var formURI = makeURI(node.form.getAttribute("action"), node.ownerDocument.characterSet, docURI); var... |
this.findDocuments(aKids[i].contentDocument, aArray); | addKidsToArray: function(aKids, aArray) { for (var i = 0; i < aKids.length; ++i) { try { aArray.push(aKids[i].contentDocument); } catch (ex) { // if we can't access the content document, skip it } } }, | |
if (preference.value.indexOf(selectedID) >= 0) return; | var arrayOfPrefs = preference.value.split(/\s*,\s*/); for (var i = 0; i < arrayOfPrefs.length; ++i ){ if (arrayOfPrefs[i] == selectedID) return; } | addLanguage: function () { var selectedID = this._availableLanguages.selectedItem.id; var preference = document.getElementById("intl.accept_languages"); if (preference.value.indexOf(selectedID) >= 0) return; this._selectedItemID = selectedID; if (preference.value == "") preference... |
SelectLanguage(); | function AddLanguage() { //cludge: make pref string available from the popup document.getElementById('intlAcceptLanguages').value = pref_string; window.openDialog("chrome://communicator/content/pref/pref-languages-add.xul","","modal=yes,chrome,resizable=yes", "addlangwindow"); UpdateSavePrefString();} | |
SimileAjax.History._listeners.push(listener); | SimileAjax.History._listeners.add(listener); | SimileAjax.History.addListener = function(listener) { SimileAjax.History.initialize(); SimileAjax.History._listeners.push(listener);}; |
MessageComposeOfflineStateChanged(ioService.offline); | MessageComposeOfflineStateChanged(isOffline); | function AddMessageComposeOfflineObserver(){ var observerService = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService); observerService.AddObserver(messageComposeOfflineObserver, "network:offline-status-changed"); // set the initial state of the send button M... |
if (existingToolbar) { | if (existingToolbar || !name.value) { | function addNewToolbar(){ var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] .getService(Components.interfaces.nsIPromptService); var stringBundle = document.getElementById("stringBundle"); var message = stringBundle.getString("enterToolbarName"); var ti... |
toggleElem.onclick = function() {return false;}; | addNextActionListingToggles: function() { this.contextCollapseCookieManager = new CookieManager(); var toggleElems = document.getElementsByClassName('container_toggle'); toggleElems.each(function(toggleElem){ Event.observe(toggleElem, 'click', todoItems.toggleNextActionListing); containerElem = to... | |
"chrome,resizeable=no", | "chrome,titlebar,resizeable=no", | function AddNodeToAddressBook (emailAddressNode){ if (emailAddressNode) { var primaryEmail = emailAddressNode.getAttribute("emailAddress"); var displayName = emailAddressNode.getAttribute("displayName"); window.openDialog("chrome://messenger/content/addressbook/abNewCardDialog.xul", "", "chrome,re... |
select.add(new Option("---", "---", false, false), null); | if (select.className == 'select_product') { select.add(new Option("-Product-", "---", false, false), null); } else if (select.className == 'select_testgroup') { select.add(new Option("-Testgroup-", "---", false, false), null); } else if (select.className == 'select_subgroup') { select.add(new Option("-Subgroup-", "---"... | function addNullEntry(select) { // add a blank entry to the current select: select.add(new Option("---", "---", false, false), null);} |
addObserver: function(aDomain, aFunction) | addObserver: function addObserver(aDomain, aFunction) | addObserver: function(aDomain, aFunction) { if (!this.mPrefs) this.init(); var pbi = XPCU.QI(this.mPrefs, "nsIPrefBranchInternal"); if (pbi) pbi.addObserver(aDomain, aFunction, false); }, |
var pbi = XPCU.QI(this.mPrefs, "nsIPrefBranchInternal"); | var pbi = XPCU.QI(this.mPrefs, "nsIPrefBranch2"); | addObserver: function(aDomain, aFunction) { if (!this.mPrefs) this.init(); var pbi = XPCU.QI(this.mPrefs, "nsIPrefBranchInternal"); if (pbi) pbi.addObserver(aDomain, aFunction, false); }, |
dump("Adding "+service.Value+"\n"); | debug("Adding "+service.Value); | function addOption(registry, service, selectIt){ dump("Adding "+service.Value+"\n"); var option_title = getAttr(registry, service, 'title'); var option_customize = getAttr(registry, service, 'customize'); var option_content = getAttr(registry, service, 'content'); var tree = document.getElementById('selected... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.