rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
setTimeout( "selectSelectedEvents()", 1000 );
onAddItem : function( calendarEvent ) { if( !gICalLib.batchMode ) { if( calendarEvent ) { unifinderRefesh(); setTimeout( "selectSelectedEvents()", 1000 ); } } },
toDoUnifinderRefesh();
toDoUnifinderRefresh();
onAddItem : function( calendarToDo ) { toDoUnifinderRefesh(); },
selectEventInUnifinder( calendarEvent );
onAddItem : function( calendarEvent ) { if( calendarEvent ) { unifinderRefesh(); } },
setTimeout( "selectSelectedEvents()", 1000 );
onAddItem : function( calendarEvent ) { if( !gICalLib.batchMode ) { if( calendarEvent ) { unifinderRefesh(); } } },
var which = document.getElementById("AddJSAttribute");
var which = document.getElementById("AddJSEAttribute");
function onAddJSEAttribute(){ var which = document.getElementById("AddJSAttribute"); if(!which || which.getAttribute ( "disabled" ) ) return; var name = dialog.AddJSEAttributeNameInput.value; var value = TrimString(dialog.AddJSEAttributeValueInput.value); if( !name ) return; if ( name.substring(0,2).toLower...
function onAddJSEAttribute( which )
function onAddJSEAttribute()
function onAddJSEAttribute( which ){ if( !which ) return; if( which.getAttribute ( "disabled" ) ) return; var name = dialog.AddJSEAttributeNameInput.value; var value = TrimString(dialog.AddJSEAttributeValueInput.value); if(name == "") return; if ( name.substring(0,2).toLowerCase() != "on" ) name = "o...
if( !which ) return; if( which.getAttribute ( "disabled" ) )
var which = document.getElementById("AddJSAttribute"); if(!which || which.getAttribute ( "disabled" ) )
function onAddJSEAttribute( which ){ if( !which ) return; if( which.getAttribute ( "disabled" ) ) return; var name = dialog.AddJSEAttributeNameInput.value; var value = TrimString(dialog.AddJSEAttributeValueInput.value); if(name == "") return; if ( name.substring(0,2).toLowerCase() != "on" ) name = "o...
if(name == "")
if( !name )
function onAddJSEAttribute( which ){ if( !which ) return; if( which.getAttribute ( "disabled" ) ) return; var name = dialog.AddJSEAttributeNameInput.value; var value = TrimString(dialog.AddJSEAttributeValueInput.value); if(name == "") return; if ( name.substring(0,2).toLowerCase() != "on" ) name = "o...
doJSEEnabling();
function onAddJSEAttribute( which ){ if( !which ) return; if( which.getAttribute ( "disabled" ) ) return; var name = dialog.AddJSEAttributeNameInput.value; var value = TrimString(dialog.AddJSEAttributeValueInput.value); if(name == "") return; if ( name.substring(0,2).toLowerCase() != "on" ) name = "o...
var strings = document.getElementById("extensionsStrings");
onAddonUpdateEnded: function(addon, status) { var element = document.getElementById(PREFIX_ITEM_URI + addon.id); element.removeAttribute("loading"); const nsIAUCL = Components.interfaces.nsIAddonUpdateCheckListener; var strings = document.getElementById("extensionsStrings"); switch (status) { case n...
this._addons.push(addon);
var updatedVersion = element.getAttribute("availableUpdateVersion"); var statusMsg = getExtensionString("updateAvailableMsg", [updatedVersion]); this._updateFound = true; break; case nsIAUCL.STATUS_VERSIONINFO: var statusMsg = getExtensionString("updateCompatibilityMsg");
onAddonUpdateEnded: function(addon, status) { var element = document.getElementById(PREFIX_ITEM_URI + addon.id); element.removeAttribute("loading"); const nsIAUCL = Components.interfaces.nsIAddonUpdateCheckListener; var strings = document.getElementById("extensionsStrings"); switch (status) { case n...
element.setAttribute("description", strings.getString("updateFailedMsg"));
var name = element.getAttribute("name"); var statusMsg = getExtensionString("updateErrorMessage", [name]);
onAddonUpdateEnded: function(addon, status) { var element = document.getElementById(PREFIX_ITEM_URI + addon.id); element.removeAttribute("loading"); const nsIAUCL = Components.interfaces.nsIAddonUpdateCheckListener; var strings = document.getElementById("extensionsStrings"); switch (status) { case n...
element.setAttribute("description", strings.getString("updateDisabledMsg"));
var name = element.getAttribute("name"); var statusMsg = getExtensionString("updateDisabledMessage", [name]); break; case nsIAUCL.STATUS_APP_MANAGED: case nsIAUCL.STATUS_NO_UPDATE: var statusMsg = getExtensionString("updateNoUpdateMsg"); break; case nsIAUCL.STATUS_NOT_MANAGED: var statusMsg = getExtensionString("update...
onAddonUpdateEnded: function(addon, status) { var element = document.getElementById(PREFIX_ITEM_URI + addon.id); element.removeAttribute("loading"); const nsIAUCL = Components.interfaces.nsIAddonUpdateCheckListener; var strings = document.getElementById("extensionsStrings"); switch (status) { case n...
element.setAttribute("updateStatus", statusMsg); ++this._completedCount; document.getElementById("progressStatus").value = getExtensionString("finishedUpdateCheck", [addon.name]); document.getElementById("addonsProgress").value = Math.ceil((this._completedCount / this._totalCount) * 100);
onAddonUpdateEnded: function(addon, status) { var element = document.getElementById(PREFIX_ITEM_URI + addon.id); element.removeAttribute("loading"); const nsIAUCL = Components.interfaces.nsIAddonUpdateCheckListener; var strings = document.getElementById("extensionsStrings"); switch (status) { case n...
element.setAttribute("updateStatus", getExtensionString("updatingMsg"));
onAddonUpdateStarted: function(addon) { var element = document.getElementById(PREFIX_ITEM_URI + addon.id); element.setAttribute("loading", "true"); },
if (window.AdvancedEditOK) {
window.focus(); if (window.AdvancedEditOK) {
function onAdvancedEdit(){ // First validate data from widgets in the "simpler" property dialog if (ValidateData()) { // Set true if OK is clicked in the Advanced Edit dialog window.AdvancedEditOK = false; // Open the AdvancedEdit dialog, passing in the element to be edited // (the copy named "globalEl...
var res = new WebDavResource(aChannel.URI); var webSvc = Components.classes['@mozilla.org/webdav/service;1'] .getService(Components.interfaces.nsIWebDAVService); webSvc.getResourceProperties(res, 1, ['DAV: getetag'], false, this, null, null);
if (isOnBranch) { var res = new WebDavResource(aChannel.URI); var webSvc = Components.classes['@mozilla.org/webdav/service;1'] .getService(Components.interfaces.nsIWebDAVService); webSvc.getResourceProperties(res, 1, ['DAV: getetag'], false, this, null, null); } else { this.mEtag = null; }
onAfterPut: function(aChannel) { var httpchannel = aChannel.QueryInterface(Components.interfaces.nsIHttpChannel); try { this.mEtag = httpchannel.getResponseHeader("ETag"); } catch(e) { // There was no ETag header on the response. This means that // putting is no...
this, null);
this, null, null);
onAfterPut: function(aChannel) { var httpchannel = aChannel.QueryInterface(Components.interfaces.nsIHttpChannel); try { this.mEtag = httpchannel.getResponseHeader("ETag"); } catch(e) { // There was no ETag header on the response. This means that // putting is no...
if (!calAlarmWindow) {
if (!calAlarmWindow && !this._WindowOpening) {
onAlarm: function(event) { var wmediator = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); var calAlarmWindow = wmediator.getMostRecentWindow("calendarAlarmWindow"); if (!calAlarmWindow) { ...
calAlarmWindow = windowWatcher.openWindow(null,
this._WindowOpening = windowWatcher.openWindow(null,
onAlarm: function(event) { var wmediator = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); var calAlarmWindow = wmediator.getMostRecentWindow("calendarAlarmWindow"); if (!calAlarmWindow) { ...
alarmObserver._WindowOpening = null;
onAlarm: function(event) { var wmediator = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); var calAlarmWindow = wmediator.getMostRecentWindow("calendarAlarmWindow"); if (!calAlarmWindow) { ...
var gAlarmWindow = wMediator.getMostRecentWindow("calendarAlarmWindow"); if( !gAlarmWindow ) {
var openAlarmWindow = wMediator.getMostRecentWindow("calendarAlarmWindow"); if(!openAlarmWindow && !this._WindowOpening) {
onAlarm: function( event ) { //If an event has alarm email address, we assume the alarm is of email //type. See similar note in eventDialog.js if(event.alarmEmailAddress && event.alarmEmailAddress != "") { //XXX Re-implement this! return; } //The alarm dialo...
gAlarmWindow = wWatcher.openWindow(null,
this._WindowOpening = wWatcher.openWindow(null,
onAlarm: function( event ) { //If an event has alarm email address, we assume the alarm is of email //type. See similar note in eventDialog.js if(event.alarmEmailAddress && event.alarmEmailAddress != "") { //XXX Re-implement this! return; } //The alarm dialo...
gAlarmWindow.focus(); if ("addAlarm" in gAlarmWindow) { gAlarmWindow.addAlarm(event);
if (this._WindowOpening) { openAlarmWindow = this._WindowOpening; } openAlarmWindow.focus(); if ("addAlarm" in openAlarmWindow) { openAlarmWindow.addAlarm(event);
onAlarm: function( event ) { //If an event has alarm email address, we assume the alarm is of email //type. See similar note in eventDialog.js if(event.alarmEmailAddress && event.alarmEmailAddress != "") { //XXX Re-implement this! return; } //The alarm dialo...
gAlarmWindow.addAlarm( event );
openAlarmWindow.addAlarm( event ); alarmObserver._WindowOpening = null;
onAlarm: function( event ) { //If an event has alarm email address, we assume the alarm is of email //type. See similar note in eventDialog.js if(event.alarmEmailAddress && event.alarmEmailAddress != "") { //XXX Re-implement this! return; } //The alarm dialo...
gAlarmWindow.addEventListener("load", addAlarm, false);
openAlarmWindow.addEventListener("load", addAlarm, false);
onAlarm: function( event ) { //If an event has alarm email address, we assume the alarm is of email //type. See similar note in eventDialog.js if(event.alarmEmailAddress && event.alarmEmailAddress != "") { //XXX Re-implement this! return; } //The alarm dialo...
} catch (ex) {}
} catch (ex) { } if (gOrigin & NS_ALERT_HORIZONTAL) { if (gOrigin & NS_ALERT_LEFT) document.documentElement.pack = "end"; document.documentElement.orient = "horizontal"; } else { if (gOrigin & NS_ALERT_TOP) document.documentElement.pack = "end"; } var alertBox = document.getElementById("alertBox"); alertBox.ori...
function onAlertLoad(){ // read out our initial settings from prefs. try { var prefService = Components.classes["@mozilla.org/preferences-service;1"].getService(); prefService = prefService.QueryInterface(Components.interfaces.nsIPrefService); var prefBranch = prefService.getBranch(null); gSlideIncremen...
gFinalHeight = window.outerHeight;
gCurrentSize = 1;
function onAlertLoad(){ // read out our initial settings from prefs. try { var prefService = Components.classes["@mozilla.org/preferences-service;1"].getService(); prefService = prefService.QueryInterface(Components.interfaces.nsIPrefService); var prefBranch = prefService.getBranch(null); gSlideIncremen...
window.outerHeight = 1;
if (gOrigin & NS_ALERT_HORIZONTAL) { gFinalSize = window.outerWidth; window.outerWidth = gCurrentSize; } else { gFinalSize = window.outerHeight; window.outerHeight = gCurrentSize; }
function onAlertLoad(){ // read out our initial settings from prefs. try { var prefService = Components.classes["@mozilla.org/preferences-service;1"].getService(); prefService = prefService.QueryInterface(Components.interfaces.nsIPrefService); var prefBranch = prefService.getBranch(null); gSlideIncremen...
window.moveTo( (screen.availLeft + screen.availWidth - window.outerWidth) - 10, screen.availTop + screen.availHeight - window.outerHeight);
var x = gOrigin & NS_ALERT_LEFT ? screen.availLeft : screen.availLeft + screen.availWidth - window.outerWidth; var y = gOrigin & NS_ALERT_TOP ? screen.availTop : screen.availTop + screen.availHeight - window.outerHeight; if (gOrigin & NS_ALERT_HORIZONTAL) y += gOrigin & NS_ALERT_TOP ? 10 : -10; else x += gOrigin & NS...
function onAlertLoad(){ // read out our initial settings from prefs. try { var prefService = Components.classes["@mozilla.org/preferences-service;1"].getService(); prefService = prefService.QueryInterface(Components.interfaces.nsIPrefService); var prefBranch = prefService.getBranch(null); gSlideIncremen...
var contentDim = document.getElementById("alertBox").boxObject; var windowDim = document.documentElement.boxObject; window.resizeTo(contentDim.width, contentDim.height);
function onAlertLoad(){ // read out our initial settings from prefs. try { var prefService = Components.classes["@mozilla.org/preferences-service;1"].getService(); prefService = prefService.QueryInterface(Components.interfaces.nsIPrefService); var prefBranch = prefService.getBranch(null); gSlideIncremen...
window.outerHeight = 0;
window.outerHeight = 1;
function onAlertLoad(){ // read out our initial settings from prefs. try { var prefService = Components.classes["@mozilla.org/preferences-service;1"].getService(); prefService = prefService.QueryInterface(Components.interfaces.nsIPrefService); var prefBranch = prefService.getBranch(null); gSlideIncremen...
onAssert : function(ds, src, prop, target) { if ((src == rootNode) && (prop == textArc)) { rememberSearchText(target); } else if ((src == rootNode) && (prop == modeArc)) { updateSearchMode(); } },
onAssert : function(ds, src, prop, target) { if (src == rootNode) { if (prop == textArc) rememberSearchText(target); else if (prop == modeArc) updateSearchMode(); } },
onAssert : function(ds, src, prop, target) { if ((src == rootNode) && (prop == textArc)) { rememberSearchText(target); } else if ((src == rootNode) && (prop == modeArc)) { updateSearchMode(); } },
saveData(); previousPageTag = testMap[currentPageTag].previous; var url = getUrlFromTag(previousPageTag); displayPage(url);
if (currentPageTag != "content1_1") { saveData(); previousPageTag = testMap[currentPageTag].previous; var url = getUrlFromTag(previousPageTag); displayPage(url); }
function onBack(){ dump("***********onBack\n"); saveData(); previousPageTag = testMap[currentPageTag].previous; var url = getUrlFromTag(previousPageTag); displayPage(url);}
AddStyleToElement(gDialog.selectedObject, gDialog.selectedObject, value);
AddStyleToElement(gDialog.selectedObject, "background-attachment", value);
function onBackgroundAttachmentChange(){ if (!gDialog.selectedObject) return; // the checkbox is checked if the background scrolls with the page var value = gDialog.backgroundAttachmentCheckbox.checked ? "" : "fixed"; AddStyleToElement(gDialog.selectedObject, gDialog.selectedObject, value); SetModifiedFlagOnStyles...
var button = document.getElementById("Editor:Style:IsBold"); if (button) { var bold = button.getAttribute("bold"); if ( bold == "true" ) { button.setAttribute( "disabled", false ); } else { button.setAttribute( "disabled", true ); } } else { dump("Can't find bold broadcaster!\n"); }
bold = toolbar.IsBold.getAttribute("bold"); if ( bold == "true" ) { toolbar.boldButton.setAttribute( "disabled", false ); } else { toolbar.boldButton.setAttribute( "disabled", true ); }
function onBoldChange(){ var button = document.getElementById("Editor:Style:IsBold"); if (button) { var bold = button.getAttribute("bold"); if ( bold == "true" ) { button.setAttribute( "disabled", false ); } else { button.setAttribute( "disabled", true ); } } else { dump("Can't find bo...
fireKeypressEvent(findField.inputField, evt);
if (evt.charCode != CHAR_CODE_APOSTROPHE && evt.charCode != CHAR_CODE_SLASH) fireKeypressEvent(findField.inputField, evt);
function onBrowserKeyPress(evt){ // Check focused elt if (!shouldFastFind(evt)) return; var findField = document.getElementById("find-field"); if (gFindMode != FIND_NORMAL && gQuickFindTimeout) { if (!evt.charCode) return; selectFindBar(); focusFindBar(); fireKeypressEvent(findField.inputField, ...
cal = null; } if (cal && cal.session.wrappedJSObject == this && cal.calId == this.defaultCalId) { this.logout();
onCalendarUnregistering: function( cal ) { try { cal = cal.QueryInterface(Components.interfaces.calIWcapCalendar); } catch (exc) { cal = null; } if (cal && cal.session.wrappedJSObject == this && cal.calId == this.defaultCalId) { //...
{
try {
onCancel: function () { for( var i = 0; i < hPrefWindow.cancelHandlers.length; i++ ) { hPrefWindow.cancelHandlers[i](); } },
} catch (e) { debug("some silly cancel handler /*"+hPrefWindow.cancelHandlers[i]+"*/ failed: "+ e);
onCancel: function () { for( var i = 0; i < hPrefWindow.cancelHandlers.length; i++ ) { hPrefWindow.cancelHandlers[i](); } },
if (param) param.SetInt(0, 1 ); window.close();
if (gParam) gParam.SetInt(0, 1 ); window.close();
function onCancel() { // set the cancel button in the param block if (param) param.SetInt(0, 1 ); window.close();}
if (promptService.Confirm(window,confirmTitle,confirmMsg))
if (promptService.confirm(window,confirmTitle,confirmMsg))
function onCancel() { var firstInvalidAccount = getFirstInvalidAccount(); // if the user cancels the the wizard when it pops up because of // an invalid account (example, a webmail account that activation started) // we just force create it by setting some values and calling the FinishAccount() // see bug #47521 for t...
updateIconSize(gPreviousIconSize == "small"); updateToolbarMode(gPreviousMode);
function onCancel(){ // restore the saved toolbarset for each customizeable toolbar unwrapToolbarItems(false); var toolbar = gToolbox.firstChild; while (toolbar) { if (isCustomizableToolbar(toolbar)) { if (!toolbar.hasAttribute("customindex")) { var previousset = toolbar.getAttribute("previousset"); ...
unwrapToolbarItems();
function onCancel(){ // restore the saved toolbarset for each customizeable toolbar // Restore the defaultset for fixed toolbars. var toolbar = gToolbox.firstChild; while (toolbar) { if (isCustomizableToolbar(toolbar)) { if (!toolbar.hasAttribute("customindex")) { var previousset = toolbar.getAttribu...
window.opener.gUpdate = false;
function onCancel(){ window.close();}
try { printProgress.processCanceledByUser = true; } catch( exception ) {return true;}
try { printProgress.processCanceledByUser = true; } catch(e) {return true;}
function onCancel () { // Cancel app launcher. try { printProgress.processCanceledByUser = true; } catch( exception ) {return true;} // don't Close up dialog by returning false, the backend will close the dialog when everything will be aborted. return false;}
if(top.okCallback) {
if(top.okCallback && closeWizard) {
function onCancel() { var firstInvalidAccount = getFirstInvalidAccount(); var closeWizard = true; // if the user cancels the the wizard when it pops up because of // an invalid account (example, a webmail account that activation started) // we just force create it by setting some values and calling the FinishAcco...
unwrapToolbarItems();
unwrapToolbarItems(false);
function onCancel(){ // restore the saved toolbarset for each customizeable toolbar unwrapToolbarItems(); var toolbar = gToolbox.firstChild; while (toolbar) { if (isCustomizableToolbar(toolbar)) { if (!toolbar.hasAttribute("customindex")) { var previousset = toolbar.getAttribute("previousset"); ...
buildPalette(); wrapToolbarItems();
function onCancel(){ // restore the saved toolbarset for each customizeable toolbar unwrapToolbarItems(); var toolbar = gToolbox.firstChild; while (toolbar) { if (isCustomizableToolbar(toolbar)) { if (!toolbar.hasAttribute("customindex")) { var previousset = toolbar.getAttribute("previousset"); ...
if (MicrosummaryPicker.enabled) MicrosummaryPicker.destroy();
try { if (MicrosummaryPicker.enabled) MicrosummaryPicker.destroy(); } catch(e) { Components.utils.reportError(e); }
function onCancel(){ if (MicrosummaryPicker.enabled) MicrosummaryPicker.destroy(); return true;}
retvals.retval = nsIFilePicker.returnCancel;
retvals.buttonStatus = nsIFilePicker.returnCancel;
function onCancel(){ // Close the window. retvals.retval = nsIFilePicker.returnCancel; return true;}
if (helperAppLoader)
if (helperAppLoader && !completed)
function onCancel (){ // Cancel app launcher. if (helperAppLoader) { try { helperAppLoader.Cancel(); } catch( exception ) {} } // Close up dialog by returning true. return true;}
ExitApp();
window.close();
function onCancel(){ if( top.window.opener ) window.close(); else { try { profile.forgetCurrentProfile(); } catch (ex) { dump("failed to forget current profile.\n"); } ExitApp(); }}
onChange : function(ds, src, prop, old_target, new_target) { if ((src == rootNode) && (prop == textArc)) { rememberSearchText(new_target); } else if ((src == rootNode) && (prop == modeArc)) { updateSearchMode(); } },
onChange : function(ds, src, prop, old_target, new_target) { if (src == rootNode) { if (prop == textArc) rememberSearchText(new_target); else if (prop == modeArc) updateSearchMode(); } },
onChange : function(ds, src, prop, old_target, new_target) { if ((src == rootNode) && (prop == textArc)) { rememberSearchText(new_target); } else if ((src == rootNode) && (prop == modeArc)) { updateSearchMode(); } },
case "conference.enabled": if ("messages" in channel) { if (newValue) channel.display(MSG_CONF_MODE_ON); else channel.display(MSG_CONF_MODE_OFF); } break; case "conference.limit": channel._updateConferenceMode(); break;
function onChannelPrefChanged(channel, prefName, newValue, oldValue){ var network = channel.parent.parent; if (network != client.networks[network.canonicalName] || channel.parent != network.primServ || channel != network.primServ.channels[channel.canonicalName]) { /* this is a stale observ...
var element = document.getElementById("checkbox" ); param.SetInt( 1, element.checked );
param.SetInt( 1, 1 - param.GetInt( 1 ) );
function onCheckboxClick(){ var element = document.getElementById("checkbox" ); param.SetInt( 1, element.checked );// dump("setting checkbox to "+ element.checked+"\n");}
if(checked) {
if(checked && !gLockedPref[checkElementId] ) {
function onCheckItem(broadcasterElementId, checkElementId){ var broadcaster = document.getElementById(broadcasterElementId); var checked = document.getElementById(checkElementId).checked; if(checked) { broadcaster.removeAttribute("disabled"); } else { broadcaster.setAttribute("disabled", "t...
if (gLockedPref["nntp.keepMsg"]) { return; }
function onCheckKeepMsg(){ var broadcaster_keepMsg = document.getElementById("bc_keepMsg"); var checkedOld = document.getElementById("nntp.keepOldMsg").checked; var checkedNew = document.getElementById("nntp.keepNewMsg").checked; var checkedAll = document.getElementById("nntp.keepAllMsg").checked; if(che...
if (!gSearchInput.showingSearchCriteria)
if (gSearchInput && !gSearchInput.showingSearchCriteria)
function onClearSearch(){ if (!gSearchInput.showingSearchCriteria) // ignore the text box value if it's just showing the search criteria string {// gQuickSearchFocusEl = gLastFocusedElement; //save of the last focused element so that focus can be restored onAbClearSearch(); // this needs to be on a timer...
var file = URLpathToFile(e.target.parentNode.getAttribute("path"));
var path = e.target.parentNode.getAttribute("path");
function onClick(e) { if ( e.detail == 2 ) { var file = URLpathToFile(e.target.parentNode.getAttribute("path")); if (file.isDirectory()) { gotoDirectory(file); } else if (file.isFile()) { /* what about symlinks? what if they symlink to a directory? */ return doOKButton(); } }}
if (file.isDirectory()) { gotoDirectory(file); } else if (file.isFile()) { return doOKButton();
if (path) { var file = URLpathToFile(path); if (file) { if (file.isDirectory()) { gotoDirectory(file); } else if (file.isFile()) { doOKButton(); } }
function onClick(e) { if ( e.detail == 2 ) { var file = URLpathToFile(e.target.parentNode.getAttribute("path")); if (file.isDirectory()) { gotoDirectory(file); } else if (file.isFile()) { /* what about symlinks? what if they symlink to a directory? */ return doOKButton(); } }}
var theWindow = window._content.parentWindow; if (theWindow) theWindow.title = url;
document.title = url;
function OnClick(event, node){ if( event.type == "click" && ( event.button != 0 || event.detail != 2 || node.nodeName != "treeitem") ) return(false); if( event.type == "keypress" && event.keyCode != 13 ) return(false); var tree = document.getElementById("tree"); if( tree.selectedItems.lengt...
else if (file.isFile()) { return doOKButton(); }
function onClick(e) { var file = Components.classes[nsILocalFile_PROGID].createInstance(nsILocalFile); file.initWithPath(e.target.parentNode.getAttribute("path")); textInput = document.getElementById("textInput"); textInput.value = file.path; if (e.clickCount == 2) { if (file.isDirectory()) { gotoDirectory...
var theID = selectedItem.getAttribute("id"); window._content.location.href = theID;
var url = selectedItem.getAttribute("URL"); window._content.location.href = url;
function OnClick(event, node){ if( event.type == "click" && ( event.button != 0 || event.detail != 2 || node.nodeName != "treeitem") ) return(false); if( event.type == "keypress" && event.keyCode != 13 ) return(false); var tree = document.getElementById("tree"); if( tree.selectedItems.lengt...
theWindow.title = theID; }
theWindow.title = url; }
function OnClick(event, node){ if( event.type == "click" && ( event.button != 0 || event.detail != 2 || node.nodeName != "treeitem") ) return(false); if( event.type == "keypress" && event.keyCode != 13 ) return(false); var tree = document.getElementById("tree"); if( tree.selectedItems.lengt...
var identityElement = document.getElementById("msgIdentity"); if (identityElement) identityElement.focus();
onClose: function() { awResetAllRows(); RemoveAllAttachments(); //We need to clear the identity popup menu in case the user will change them. It will be rebuilded later in ComposeStartup ClearIdentityListPopup(document.getElementById("msgIdentityPopup")); //Clear the subject document.getElementById("m...
if (top.awInputElement.getAttribute('focused') != '') top.awInputElement.removeAttribute('focused');
awGetInputElement(1).removeAttribute('focused');
onClose: function() { //Reset recipients and attachments ReleaseAutoCompleteState(); awResetAllRows(); RemoveAllAttachments(); // We need to clear the identity popup menu in case the user will change them. It will be rebuilded later in ComposeStartup ClearIdentityListPopup(document.getElementById("m...
ReleaseAutoCompleteState();
onClose: function() { //Reset recipients and attachments awResetAllRows(); RemoveAllAttachments(); // We need to clear the identity popup menu in case the user will change them. It will be rebuilded later in ComposeStartup ClearIdentityListPopup(document.getElementById("msgIdentityPopup")); //Clear...
if (gAutoSaveTimeout) clearTimeout(gAutoSaveTimeout);
onClose: function() { //Reset recipients and attachments ReleaseAutoCompleteState(); awResetAllRows(); RemoveAllAttachments(); // We need to clear the identity popup menu in case the user will change them. It will be rebuilded later in ComposeStartup ClearIdentityListPopup(document.getElementById("m...
document.getElementById("headers-box").removeAttribute("height"); document.getElementById("appcontent").removeAttribute("height"); document.getElementById("addresses-box").removeAttribute("width"); document.getElementById("attachments-box").removeAttribute("width");
onClose: function() { awResetAllRows(); RemoveAllAttachments(); //We need to clear the identity popup menu in case the user will change them. It will be rebuilded later in ComposeStartup ClearIdentityListPopup(document.getElementById("msgIdentityPopup")); //Clear the subject var element = document.get...
if (!gFinished) { const nsIPromptService = Components.interfaces.nsIPromptService; var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] .getService(nsIPromptService); const buttonFlags = (nsIPromptService.BUTTON_TITLE_IS_STRING * nsIPromptService.BUTTON_POS_0) + (nsIPromptService.BUTTON_TIT...
function onClose(){ if (gTimerID) { clearTimeout(gTimerID); gTimerID = null; } if (!gFinished && gPersistObj) { try { gPersistObj.cancelSave(); } catch (e) {} } SaveWindowLocation(); // Tell caller so they can cleanup and restore editability window.opener.FinishPublishing(); return true;}
client.userClose = true; display(MSG_CLOSING);
function onClose(){ if ("userClose" in client && client.userClose) return true; client.userClose = true; display(MSG_CLOSING); if (!("getConnectionCount" in client) || client.getConnectionCount() == 0) { /* if we're not connected to anything, just close the window */ return tr...
client.quit(client.userAgent);
var close = true; if (client.prefs["warnOnClose"]) { const buttons = ["!yes", "!no"]; var checkState = { value: true }; var rv = confirmEx(MSG_CONFIRM_QUIT, buttons, 0, MSG_WARN_ON_EXIT, checkState); close = (rv == 0); client.prefs["warnOnClose"] = checkState.value; } if (close) { client.userClose = true; display(MSG_...
function onClose(){ if ("userClose" in client && client.userClose) return true; client.userClose = true; display(MSG_CLOSING); if (!("getConnectionCount" in client) || client.getConnectionCount() == 0) { /* if we're not connected to anything, just close the window */ return tr...
var selectedValue = selWidget.options[selWidget.selectedIndex].value;
var selectedValue = selWidget.value;
function OnComparatorSelect(event) { var selWidget = event.target; var selectedValue = selWidget.options[selWidget.selectedIndex].value; dump(selectedValue + " was just selected\n"); }
dialog.cancel.childNodes[0].nodeValue = "Close";
dialog.cancel.childNodes[0].nodeValue = bundle.GetStringFromName("close");
function onCompletion( status ) { // Note that we're done (and can ignore subsequent progress notifications). completed = true; // Indicate completion in status area. var msg = getString( "completeMsg" ); msg = replaceInsert( msg, 1, formatSeconds( elapsed/1000 ) ); onStatus( msg ); // Put progress...
if (descending.length) {
if (descending.item(0)) {
function onConfigLoad(){ // Load strings gConfigBundle = document.getElementById("configBundle"); document.title = gConfigBundle.getString("title"); gLockStrs[PREF_IS_DEFAULT_VALUE] = gConfigBundle.getString("default"); gLockStrs[PREF_IS_USER_SET] = gConfigBundle.getString("user"); gLockStrs[PREF_IS_LOCKED] = gCo...
if (ascending.length)
if (ascending.item(0))
function onConfigLoad(){ // Load strings gConfigBundle = document.getElementById("configBundle"); document.title = gConfigBundle.getString("title"); gLockStrs[PREF_IS_DEFAULT_VALUE] = gConfigBundle.getString("default"); gLockStrs[PREF_IS_USER_SET] = gConfigBundle.getString("user"); gLockStrs[PREF_IS_LOCKED] = gCo...
if ((configname) && (configlocation)) { gPrefBranch.setCharPref("cck.config." + configname, configlocation); this.opener.setcurrentconfig(configname); if (window.name == 'copyconfig') { var destdir = Components.classes["@mozilla.org/file/local;1"] .createInstance(Components.interfaces.nsILocalFile); destdir.initWithPa...
if (window.name == 'copyconfig') { var destdir = Components.classes["@mozilla.org/file/local;1"] .createInstance(Components.interfaces.nsILocalFile); destdir.initWithPath(configlocation); this.opener.CCKWriteConfigFile(destdir); } else { ClearAll(); } gPrefBranch.setCharPref("cck.config." + configname, configlocation);...
function OnConfigOK(){ var configname = document.getElementById('cnc-name').value; var configlocation = document.getElementById('cnc-location').value; if ((configname) && (configlocation)) { gPrefBranch.setCharPref("cck.config." + configname, configlocation); this.opener.setcurrentconfig(configname); if (wi...
} } else { return false; }
function OnConfigOK(){ var configname = document.getElementById('cnc-name').value; var configlocation = document.getElementById('cnc-location').value; if ((configname) && (configlocation)) { gPrefBranch.setCharPref("cck.config." + configname, configlocation); this.opener.setcurrentconfig(configname); if (wi...
var autoURL = document.getElementById("networkProxyAutoconfigURL"); var URIFixup = Components.classes["@mozilla.org/docshell/urifixup;1"] .getService(Components.interfaces.nsIURIFixup); try { var fixedUpURI = URIFixup.createFixupURI(autoURL.value, 0); autoURL.value = fixedUpURI.spec; } catch(ex) {}
function onConnectionsDialogOK(){ window.opener.top.hPrefWindow.wsm.savePageData(window.location.href, window); return true;}
var Now = new Date();
checkStartAndDueDates();
function onDatePick( datepopup ){ // display the new date in the textbox datepopup.dateField.value = formatDate( datepopup.value ); // remember the new date in a property, "editDate". we created on the date textbox datepopup.dateField.editDate = datepopup.value; var Now = new Date();}
radioGroupSelectItem("view-field", "custom-range");
calRadioGroupSelectItem("view-field", "custom-range");
function onDatePick() { radioGroupSelectItem("view-field", "custom-range"); refreshHtml();}
function onDatePick( datepopup )
function onDatePick( datepicker )
function onDatePick( datepopup ){ // display the new date in the textbox //datepopup.dateField.value = formatDate( datepopup.value ); // remember the new date in a property, "editDate". we created on the date textbox //datepopup.dateField.editDate = datepopup.value; var Now = new Date(); //change ...
if ( datepopup.value > Now && !getFieldValue( "repeat-checkbox", "checked" ) )
if ( datepicker.value > Now && !getFieldValue( "repeat-checkbox", "checked" ) )
function onDatePick( datepopup ){ // display the new date in the textbox //datepopup.dateField.value = formatDate( datepopup.value ); // remember the new date in a property, "editDate". we created on the date textbox //datepopup.dateField.editDate = datepopup.value; var Now = new Date(); //change ...
document.getElementById( "repeat-end-date-picker" ).value = formatDate( datepopup.value );
document.getElementById( "repeat-end-date-picker" ).value = datepicker.value;
function onDatePick( datepopup ){ // display the new date in the textbox //datepopup.dateField.value = formatDate( datepopup.value ); // remember the new date in a property, "editDate". we created on the date textbox //datepopup.dateField.editDate = datepopup.value; var Now = new Date(); //change ...
if ( datepicker.value > Now && !getFieldValue( "repeat-checkbox", "checked" ) )
if ( datepicker.value.getTime() > Now.getTime() && !getFieldValue( "repeat-checkbox", "checked" ) )
function onDatePick( datepicker ){ var Now = new Date(); //change the end date of recurring events to today, if the new date is after today and repeat is not checked. if ( datepicker.value > Now && !getFieldValue( "repeat-checkbox", "checked" ) ) { document.getElementById( "repeat-end-date-picker" ).value...
updateAlarmItemEnabled();
processAlarmType();
function onDateTimeCheckbox(checkbox, pickerId){ var picker = document.getElementById( pickerId ); picker.disabled = !checkbox.checked; updateAlarmItemEnabled(); updateOKButton();}
unifinderRefesh();
unifinderRefresh();
onDeleteItem : function( calendarEvent ) { if( !gICalLib.batchMode ) { unifinderRefesh(); } },
this.mCalendar.writeICS();
if (!this.mInBatch) this.mCalendar.writeICS();
onDeleteItem: function(aDeletedItem) { this.mCalendar.writeICS(); },
calendarWindow.currentView.refreshEvents( );
onDeleteItem : function( calendarEvent, nextEvent ) { calendarWindow.clearSelectedEvent( calendarEvent ); if( !gICalLib.batchMode ) { if ( nextEvent ) { calendarWindow.setSelectedEvent( nextEvent ); } else { ...
setTimeout( "selectSelectedEvents()", 1000 );
onDeleteItem : function( calendarEvent ) { if( !gICalLib.batchMode ) { unifinderRefesh(); setTimeout( "selectSelectedEvents()", 1000 ); } },
toDoUnifinderRefesh();
toDoUnifinderRefresh();
onDeleteItem : function( calendarToDo ) { toDoUnifinderRefesh(); },
setTimeout( "selectSelectedEvents()", 1000 );
onDeleteItem : function( calendarEvent ) { if( !gICalLib.batchMode ) { unifinderRefesh(); } },
toDoUnifinderRefresh();
if( !gICalLib.batchMode ) { toDoUnifinderRefresh(); }
onDeleteItem : function( calendarToDo ) { toDoUnifinderRefresh(); },
{
{ var strBundleService = Components.classes["@mozilla.org/intl/stringbundle;1"]. getService(Components.interfaces.nsIStringBundleService); var bundle = strBundleService.createBundle("chrome: var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptServ...
function onDeleteMailView(){ // get the selected index var selectedIndex = gListBox.selectedIndex; if (selectedIndex >= 0) { var mailView = gMailListView.getMailViewAt(selectedIndex); if (mailView) { gMailListView.removeMailView(mailView); // now remove it from the view... gListBox.removeChi...
this.removeAllItems();
onDestroy : function () { this.removeAllItems(); },
gotoDirectory(file);
if (!sfile.equals(file)) { gotoDirectory(file); }
function onDirectoryChanged(target){ var path = target.getAttribute("value"); var file = Components.classes[nsILocalFile_CONTRACTID].createInstance(nsILocalFile); file.initWithPath(path); gotoDirectory(file);}
file.initWithUnicodePath(path);
file.initWithPath(path);
function onDirectoryChanged(target){ var path = target.getAttribute("label"); var file = Components.classes[nsLocalFile_CONTRACTID].createInstance(nsILocalFile); file.initWithUnicodePath(path); if (!sfile.equals(file)) { // Do this on a timeout callback so the directory list can roll up // and we don't keep t...
var now = Components.classes["@mozilla.org/calendar/datetime;1"] .createInstance(Components.interfaces.calIDateTime); now.jsDate = new Date(); now = now.getInTimezone("UTC"); var item = alarmWidget.item.clone(); item.alarmLastAck = now; item.calendar.modifyItem(item, alarmWidget.item, null);
function onDismissAlarm(event){ // everything is just visual at this point. we don't need to do anything special. var alarmWidget = event.target; var parent = alarmWidget.parentNode; parent.removeChild(alarmWidget); if (!parent.hasChildNodes()) { // If this was the last alarm, close the window. window.close(...
var alarmWidget = event.target; var now = Components.classes["@mozilla.org/calendar/datetime;1"] .createInstance(Components.interfaces.calIDateTime); now.jsDate = new Date(); now = now.getInTimezone("UTC"); var item = alarmWidget.item.clone(); item.alarmLastAck = now; item.calendar.modifyItem(item, alarmWidget.item, nu...
onDismissWidget(event.target);
function onDismissAlarm(event){ var alarmWidget = event.target; var now = Components.classes["@mozilla.org/calendar/datetime;1"] .createInstance(Components.interfaces.calIDateTime); now.jsDate = new Date(); now = now.getInTimezone("UTC"); var item = alarmWidget.item.clone(); item.alarmLastAck...