rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
const groups = window.arguments[5];
const groups = gArg.objGroup;
function onOK(){ RDFC.Init(BMDS, gSelectedFolder); var url, rSource; var livemarkFeed = window.arguments[10]; if (gGroup && gGroup.checked) { rSource = BMDS.createFolder(gName.value); const groups = window.arguments[5]; for (var i = 0; i < groups.length; ++i) { url = getNormalizedURL(groups[i].url); ...
BMDS.createBookmarkInContainer(groups[i].name, url, gKeyword.value, null,
BMDS.createBookmarkInContainer(groups[i].name, url, gKeyword.value, groups[i].description,
function onOK(){ RDFC.Init(BMDS, gSelectedFolder); var url, rSource; var livemarkFeed = window.arguments[10]; if (gGroup && gGroup.checked) { rSource = BMDS.createFolder(gName.value); const groups = window.arguments[5]; for (var i = 0; i < groups.length; ++i) { url = getNormalizedURL(groups[i].url); ...
url = getNormalizedURL(window.arguments[1]);
url = getNormalizedURL(gArg.url);
function onOK(){ RDFC.Init(BMDS, gSelectedFolder); var url, rSource; var livemarkFeed = window.arguments[10]; if (gGroup && gGroup.checked) { rSource = BMDS.createFolder(gName.value); const groups = window.arguments[5]; for (var i = 0; i < groups.length; ++i) { url = getNormalizedURL(groups[i].url); ...
url = getNormalizedURL(window.arguments[1]); rSource = BMDS.createBookmark(gName.value, url, gKeyword.value, null, window.arguments[3], gPostData);
url = getNormalizedURL(gArg.url); rSource = BMDS.createBookmark(gName.value, url, gKeyword.value, gArg.description, gArg.charset, gPostData);
function onOK(){ RDFC.Init(BMDS, gSelectedFolder); var url, rSource; var livemarkFeed = window.arguments[10]; if (gGroup && gGroup.checked) { rSource = BMDS.createFolder(gName.value); const groups = window.arguments[5]; for (var i = 0; i < groups.length; ++i) { url = getNormalizedURL(groups[i].url); ...
if (window.arguments[6] && rSource) {
if (gArg.bWebPanel && rSource) {
function onOK(){ RDFC.Init(BMDS, gSelectedFolder); var url, rSource; var livemarkFeed = window.arguments[10]; if (gGroup && gGroup.checked) { rSource = BMDS.createFolder(gName.value); const groups = window.arguments[5]; for (var i = 0; i < groups.length; ++i) { url = getNormalizedURL(groups[i].url); ...
if (listElement) editorShell.CloneAttributes(listElement, globalElement); editorShell.EndBatchChanges();
function onOK(){ if (ValidateData()) { // Set the list attributes return true; } return false;}
if (SeeMore) { while(headNode.firstChild) headNode.removeChild(headNode.firstChild); if (dialog.HeadSrcInput.value.length > 0) editorShell.ReplaceHeadContentsWithHTML(dialog.HeadSrcInput.value); }
function onOK(){ if (ValidateData()) { // Save only if advanced "head editing" region is open? if (SeeMore) { // Delete existing children of HEAD // Note that we DO NOT use editorShell method // because this is not an undoable task while(headNode.firstChild) headNode.remove...
if (window.arguments[4] == "selectFolder")
if (window.arguments.length > 4 && window.arguments[4] == "selectFolder")
function onOK(){ if (!document.getElementById("folderbox").hasAttribute("hidden")) { var bookmarkView = document.getElementById("bookmarks-view"); var currentIndex = bookmarkView.currentIndex; if (currentIndex != -1) gCreateInFolder = bookmarkView.treeBuilder.getResourceAtIndex(currentIndex).Value; } /...
if (window.arguments[4] == "newBookmark") {
if (window.arguments.length > 4 && window.arguments[4] == "newBookmark") {
function onOK(){ if (!document.getElementById("folderbox").hasAttribute("hidden")) { var bookmarkView = document.getElementById("bookmarks-view"); var currentIndex = bookmarkView.currentIndex; if (currentIndex != -1) gCreateInFolder = bookmarkView.treeBuilder.getResourceAtIndex(currentIndex).Value; } /...
var nfile = sfile.clone(); nfile.append(file.path);
var nfile = sfile.clone().QueryInterface(nsILocalFile); if (file.path[0] == '/') nfile.initWithPath(file.path) else nfile.appendRelativePath(file.path);
function onOK(){ var ret = nsIFilePicker.returnCancel; textInput = document.getElementById("textInput"); var file = Components.classes[nsILocalFile_PROGID].createInstance(nsILocalFile); file.initWithPath(textInput.value); var isDir = false; var isFile = false; if (file.exists()) { isDir = file.isDirectory(); ...
else { try { gPrefs.clearUserPref("mailnews.customHeaders"); } catch(ex) {} }
function onOk(){ if (gArrayHdrs.length) { var hdrs = gArrayHdrs.join(": "); gPrefs.setCharPref("mailnews.customHeaders", hdrs); // flush prefs to disk, in case we crash, to avoid dataloss and problems with filters that use the custom headers var prefService = Components.classes["@mozilla.org/preferences-...
var prefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref);
var prefs = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefService);
function onOk() { // Check if user/host have been modified. if (!checkUserServerChanges(true)) return false; onSave(); // hack hack - save the prefs file NOW in case we crash try { var prefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref); prefs.sav...
editorShell.InsertElement(imageElement, true);
try { editorShell.InsertElementAtSelection(imageElement, true); } catch (e) { dump("Exception occured in InsertElementAtSelection\n"); }
function onOK(){ // handle insertion of new image if (ValidateData()) { // All values are valid - copy to actual element in doc or // element created to insert editorShell.CloneAttributes(imageElement, globalElement); if (insertNew) { // 'true' means delete the selection before inserting ...
editorShell.InsertElement(anchorElement, false);
try { editorShell.InsertElementAtSelection(anchorElement, false); } catch (e) { dump("Exception occured in InsertElementAtSelection\n"); }
function onOK(){ if (ValidateData()) { // Copy attributes to element we are changing or inserting editorShell.CloneAttributes(anchorElement, globalElement); if (insertNew) { // Don't delete selected text when inserting editorShell.InsertElement(anchorElement, false); } return true; } return...
editorShell.InsertElementAtSelection(tableElement, false);
editorShell.InsertElementAtSelection(tableElement, true);
function onOK(){ if (ValidateData()) { editorShell.BeginBatchChanges(); editorShell.CloneAttributes(tableElement, globalElement); // Create necessary rows and cells for the table // AFTER BUG 30378 IS FIXED, DON'T INSERT TBODY! var tableBody = editorShell.CreateElementWithDefaults("tbody"); if (tabl...
if(charsetWasChanged) { SetMetaElementContent(contenttypeElement, "text/html; charset=" + charset, insertNewContentType); editorShell.SetDocumentCharacterSet(charset); } editorShell.EndBatchChanges(); if(titleWasEdited) { window.opener.newTitle = dialog.TitleInput.value.trimString();
if(charsetWasChanged) { SetMetaElementContent(contenttypeElement, "text/html; charset=" + charset, insertNewContentType); editorShell.SetDocumentCharacterSet(charset);
function onOK(){ editorShell.BeginBatchChanges(); if(charsetWasChanged) { SetMetaElementContent(contenttypeElement, "text/html; charset=" + charset, insertNewContentType); editorShell.SetDocumentCharacterSet(charset); } editorShell.EndBatchChanges(); if(titleWasEdited) { window.opener.newTi...
window.opener.ok = true; window.opener.exportToText = dialog.exportToText.checked; SaveWindowLocation(); return true; }
editorShell.EndBatchChanges(); if(titleWasEdited) window.opener.newTitle = dialog.TitleInput.value.trimString(); window.opener.ok = true; window.opener.exportToText = dialog.exportToText.checked; SaveWindowLocation(); return true; }
function onOK(){ editorShell.BeginBatchChanges(); if(charsetWasChanged) { SetMetaElementContent(contenttypeElement, "text/html; charset=" + charset, insertNewContentType); editorShell.SetDocumentCharacterSet(charset); } editorShell.EndBatchChanges(); if(titleWasEdited) { window.opener.newTi...
return true;
function onOk(){ if (!validEmailAddress()) return false; // if we are adding a new identity, create an identity, set the fields and add it to the // account. if (!gIdentity) { // ask the account manager to create a new identity for us var accountManager = Components.classes["@mozilla.org/messenger/accoun...
if (controls[i].tagName.toLowerCase() == "checkbox") {
if (controls[i].localName.toLowerCase() == "checkbox") {
function onOk(){ var controls = getControls(); for (var i=0; i<controls.length; i++) { var slot = controls[i].id; if (slot) { if (controls[i].tagName.toLowerCase() == "checkbox") { server[slot] = controls[i].checked; } else server[s...
if (textNode) {
if (textNode)
function onOK(){ if (ValidateData()) { if (href.length > 0) { // Copy attributes to element we are changing or inserting editorShell.CloneAttributes(anchorElement, globalElement); // Coalesce into one undo transaction editorShell.BeginBatchChanges(); // Get text to use for a new link ...
}
function onOK(){ if (ValidateData()) { if (href.length > 0) { // Copy attributes to element we are changing or inserting editorShell.CloneAttributes(anchorElement, globalElement); // Coalesce into one undo transaction editorShell.BeginBatchChanges(); // Get text to use for a new link ...
{
{ try { var mapiRegistry = Components.classes[ "@mozilla.org/mapiregistry;1" ]. getService( Components.interfaces.nsIMapiRegistry ); } catch(ex){ mapiRegistry = null; }
function onOK(){ if (mapiRegistry) { if (document.getElementById("mailnewsEnableMapi").checked) mapiRegistry.setDefaultMailClient(); else mapiRegistry.unsetDefaultMailClient(); } }
if (dialog.srcInput.value != "") editorShell.InsertSource(dialog.srcInput.value);
if (srcInput.value != "") editorShell.InsertSource(srcInput.value);
function onOK(){ if (dialog.srcInput.value != "") editorShell.InsertSource(dialog.srcInput.value); else { dump("Null value -- not inserting\n"); return false; } return true;}
if (ValidateData()) { window.close(); }
function OnOK(){}
var checkbox = document.getElementById("dontaskagain"); const kPrefContractID = "@mozilla.org/preferences;1"; const kPrefIID = Components.interfaces.nsIPref; const kPrefSvc = Components.classes[kPrefContractID].getService(kPrefIID); try { kPrefSvc.SetBoolPref("browser.bookmarks.add_without_dialog", checkbox.checked); }...
if (gCanBypassDialogMode) { var checkbox = document.getElementById("dontaskagain"); const kPrefContractID = "@mozilla.org/preferences;1"; const kPrefIID = Components.interfaces.nsIPref; const kPrefSvc = Components.classes[kPrefContractID].getService(kPrefIID); try { kPrefSvc.SetBoolPref("browser.bookmarks.add_without_...
function onOK(){ if (window.arguments[4] == "selectFolder") window.arguments[5].selectedFolder = gCreateInFolder; else { const kBMDS = kRDF.GetDataSource("rdf:bookmarks"); const kBMSContractID = "@mozilla.org/browser/bookmarks-service;1"; const kBMSIID = Components.interfaces.nsIBookmarksService; const...
dump("Rows = "+rows+" Columns = "+columns+"\n"); for (i = 0; i < rows; i++)
var tableBody = editorShell.CreateElementWithDefaults("tbody"); if (tableBody)
function onOK(){ if (ValidateData()) { editorShell.CloneAttributes(tableElement, globalElement); // Create necessary rows and cells for the table dump("Rows = "+rows+" Columns = "+columns+"\n"); for (i = 0; i < rows; i++) { newRow = editorShell.CreateElementWithDefaults("tr"); if (newRow) ...
newRow = editorShell.CreateElementWithDefaults("tr"); if (newRow)
tableElement.appendChild(tableBody); dump("Rows = "+rows+" Columns = "+columns+"\n"); for (i = 0; i < rows; i++)
function onOK(){ if (ValidateData()) { editorShell.CloneAttributes(tableElement, globalElement); // Create necessary rows and cells for the table dump("Rows = "+rows+" Columns = "+columns+"\n"); for (i = 0; i < rows; i++) { newRow = editorShell.CreateElementWithDefaults("tr"); if (newRow) ...
tableElement.appendChild(newRow); for (j = 0; j < columns; j++)
var newRow = editorShell.CreateElementWithDefaults("tr"); if (newRow)
function onOK(){ if (ValidateData()) { editorShell.CloneAttributes(tableElement, globalElement); // Create necessary rows and cells for the table dump("Rows = "+rows+" Columns = "+columns+"\n"); for (i = 0; i < rows; i++) { newRow = editorShell.CreateElementWithDefaults("tr"); if (newRow) ...
newCell = editorShell.CreateElementWithDefaults("td"); if (newCell)
tableBody.appendChild(newRow); for (j = 0; j < columns; j++)
function onOK(){ if (ValidateData()) { editorShell.CloneAttributes(tableElement, globalElement); // Create necessary rows and cells for the table dump("Rows = "+rows+" Columns = "+columns+"\n"); for (i = 0; i < rows; i++) { newRow = editorShell.CreateElementWithDefaults("tr"); if (newRow) ...
newRow.appendChild(newCell);
newCell = editorShell.CreateElementWithDefaults("td"); if (newCell) { newRow.appendChild(newCell); }
function onOK(){ if (ValidateData()) { editorShell.CloneAttributes(tableElement, globalElement); // Create necessary rows and cells for the table dump("Rows = "+rows+" Columns = "+columns+"\n"); for (i = 0; i < rows; i++) { newRow = editorShell.CreateElementWithDefaults("tr"); if (newRow) ...
editorShell.InsertElement(tableElement, false);
try { editorShell.InsertElementAtSelection(tableElement, false); } catch (e) { dump("Exception occured in InsertElementAtSelection\n"); }
function onOK(){ if (ValidateData()) { editorShell.CloneAttributes(tableElement, globalElement); // Create necessary rows and cells for the table dump("Rows = "+rows+" Columns = "+columns+"\n"); for (i = 0; i < rows; i++) { newRow = editorShell.CreateElementWithDefaults("tr"); if (newRow) ...
dump("in onOK\n")
function onOK(){ UpdateObject(); // call UpdateObject fn to update element in document window.opener.AdvancedEditOK = true; window.opener.globalElement = element; return true; // do close the window}
window.opener.exportToText = dialog.exportToText.checked;
function onOK(){ if(ValidateData()) { editorShell.BeginBatchChanges(); if(titleWasEdited) { try { editorShell.SetDocumentTitle(title); } catch (ex) {} } if(charsetWasChanged) { SetMetaElementContent(contenttypeElement, "text/html; charset=" + charset, insertNewContentType); edit...
editorShell.InsertElement(element, false);
try { editorShell.InsertElementAtSelection(element, false); } catch (e) { dump("Exception occured in InsertElementAtSelection\n"); }
function onOK(){// Set attribute example:// imageElement.setAttribute("src",dialog.srcInput.value); if (insertNew) { editorShell.InsertElement(element, false); } return true; // do close the window}
editorShell.EndBatchChanges();
function onOK(){ if (ValidateData()) { if (titleWasEdited) { // Set title contents even if string is empty // because TITLE is a required HTML element editorShell.SetDocumentTitle(newTitle); } if (authorWasEdited) SetMetaElementContent(authorElement, author, insertNewAuthor); i...
gDS = gRDF.GetDataSource(ioService.getURLSpecFromFile(file));
gDS = gRDF.GetDataSource(fileHandler.getURLSpecFromFile(file));
function onOK(){ // Make sure all fields are filled in OK. if ( !checkInput() ) { return false; } const mimeTypes = "UMimTyp"; var fileLocator = Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIProperties); var file = fileLocator.get(mimeTypes, Components.interf...
editorShell.CloneAttributes(TableElement, globalElement);
editorShell.CloneAttributes(TableElement, globalTableElement); editorShell.CloneAttributes(CellElement, globalCellElement);
function onOK(){ if (ValidateData()) { editorShell.CloneAttributes(TableElement, globalElement); return true; } return false;}
dump("Creating text node\n");
function onOK(){ if (ValidateData()) { if (href.length > 0) { // Copy attributes to element we are changing or inserting editorShell.CloneAttributes(anchorElement, globalElement); // Coalesce into one undo transaction editorShell.BeginBatchChanges(); // Get text to use for a new link ...
dump("Inserting\n"); editorShell.InsertElement(anchorElement, false);
try { editorShell.InsertElementAtSelection(anchorElement, false); } catch (e) { dump("Exception occured in InsertElementAtSelection\n"); return true; }
function onOK(){ if (ValidateData()) { if (href.length > 0) { // Copy attributes to element we are changing or inserting editorShell.CloneAttributes(anchorElement, globalElement); // Coalesce into one undo transaction editorShell.BeginBatchChanges(); // Get text to use for a new link ...
dump("Setting link around selected text\n"); editorShell.InsertLinkAroundSelection(anchorElement);
try { editorShell.InsertLinkAroundSelection(anchorElement); } catch (e) { dump("Exception occured in InsertElementAtSelection\n"); return true; } } if (HeadingsIndex > -1 && href[0] == "#") { var name = href.substr(1); var index = GetExistingAnchorIndex(name); dump("HeadingsIndex="+HeadingsIndex+" SelectIndex="+ind...
function onOK(){ if (ValidateData()) { if (href.length > 0) { // Copy attributes to element we are changing or inserting editorShell.CloneAttributes(anchorElement, globalElement); // Coalesce into one undo transaction editorShell.BeginBatchChanges(); // Get text to use for a new link ...
window.arguments[0].updateSelf = true;
function onOK(){ // Make sure all fields are filled in OK. if ( !checkInput() ) { return false; } const mimeTypes = "UMimTyp"; var fileLocator = Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIProperties); var file = fileLocator.get(mimeTypes, Components.interf...
var directoryServer = gPrefInt.CopyCharPref("ldap_2.autoComplete.directoryServer");
var directoryServer = gPrefInt.getCharPref("ldap_2.autoComplete.directoryServer");
function onOK(){ var len = gDeletedDirectories.length; if (len) { try { var directoryServer = gPrefInt.CopyCharPref("ldap_2.autoComplete.directoryServer"); } catch(ex) { directoryServer = null; } var am = Components.classes["@mozilla.org/messenger/account-manager;1"] .getServ...
gPrefInt.SetCharPref("ldap_2.autoComplete.directoryServer", "");
gPrefInt.setCharPref("ldap_2.autoComplete.directoryServer", "");
function onOK(){ var len = gDeletedDirectories.length; if (len) { try { var directoryServer = gPrefInt.CopyCharPref("ldap_2.autoComplete.directoryServer"); } catch(ex) { directoryServer = null; } var am = Components.classes["@mozilla.org/messenger/account-manager;1"] .getServ...
gPrefInt.DeleteBranch(gDeletedDirectories[i]);
gPrefInt.deleteBranch(gDeletedDirectories[i]);
function onOK(){ var len = gDeletedDirectories.length; if (len) { try { var directoryServer = gPrefInt.CopyCharPref("ldap_2.autoComplete.directoryServer"); } catch(ex) { directoryServer = null; } var am = Components.classes["@mozilla.org/messenger/account-manager;1"] .getServ...
gPrefInt.savePrefFile(null);
var svc = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefService); svc.savePrefFile(null);
function onOK(){ var len = gDeletedDirectories.length; if (len) { try { var directoryServer = gPrefInt.CopyCharPref("ldap_2.autoComplete.directoryServer"); } catch(ex) { directoryServer = null; } var am = Components.classes["@mozilla.org/messenger/account-manager;1"] .getServ...
gPrefInt = Components.classes["@mozilla.org/preferences;1"]; gPrefInt = gPrefInt.getService(Components.interfaces.nsIPref);
gPrefInt = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefBranch);
function onOK(){ var pref_string_content = ""; var pref_string_title = ""; if (!gPrefInt) { try { gPrefInt = Components.classes["@mozilla.org/preferences;1"]; gPrefInt = gPrefInt.getService(Components.interfaces.nsIPref); } catch (ex) { dump("failed to get prefs service!\n"); gPrefInt = ...
gPrefInt.SetUnicharPref(pref_string_title, pref_string_content);
var str = Components.classes["@mozilla.org/supports-wstring;1"] .createInstance(Components.interfaces.nsISupportsWString); str.data = pref_string_content; gPrefInt.setComplexValue(pref_string_title, Components.interfaces.nsISupportsWString, str);
function onOK(){ var pref_string_content = ""; var pref_string_title = ""; if (!gPrefInt) { try { gPrefInt = Components.classes["@mozilla.org/preferences;1"]; gPrefInt = gPrefInt.getService(Components.interfaces.nsIPref); } catch (ex) { dump("failed to get prefs service!\n"); gPrefInt = ...
gPrefInt.SetCharPref(pref_string_title, ldapUrl.spec);
gPrefInt.setCharPref(pref_string_title, ldapUrl.spec);
function onOK(){ var pref_string_content = ""; var pref_string_title = ""; if (!gPrefInt) { try { gPrefInt = Components.classes["@mozilla.org/preferences;1"]; gPrefInt = gPrefInt.getService(Components.interfaces.nsIPref); } catch (ex) { dump("failed to get prefs service!\n"); gPrefInt = ...
gPrefInt.SetIntPref(pref_string_title, pref_string_content);
gPrefInt.setIntPref(pref_string_title, pref_string_content);
function onOK(){ var pref_string_content = ""; var pref_string_title = ""; if (!gPrefInt) { try { gPrefInt = Components.classes["@mozilla.org/preferences;1"]; gPrefInt = gPrefInt.getService(Components.interfaces.nsIPref); } catch (ex) { dump("failed to get prefs service!\n"); gPrefInt = ...
gPrefInt.ClearUserPref(pref_string_title);
gPrefInt.clearUserPref(pref_string_title);
function onOK(){ var pref_string_content = ""; var pref_string_title = ""; if (!gPrefInt) { try { gPrefInt = Components.classes["@mozilla.org/preferences;1"]; gPrefInt = gPrefInt.getService(Components.interfaces.nsIPref); } catch (ex) { dump("failed to get prefs service!\n"); gPrefInt = ...
pref_string_content = gPrefInt.GetBoolPref(pref_string_title);
pref_string_content = gPrefInt.getBoolPref(pref_string_title);
function onOK(){ var pref_string_content = ""; var pref_string_title = ""; if (!gPrefInt) { try { gPrefInt = Components.classes["@mozilla.org/preferences;1"]; gPrefInt = gPrefInt.getService(Components.interfaces.nsIPref); } catch (ex) { dump("failed to get prefs service!\n"); gPrefInt = ...
domWin.document.getElementById("home-button").setAttribute("tooltiptext", parent.homepage);
var homeButton = domWin.document.getElementById("home-button"); if (homeButton) homeButton.setAttribute("tooltiptext", parent.homepage);
function onOK() { if (!('homepage' in parent)) return; // Replace pipes with commas to look nicer. parent.homepage = parent.homepage.replace(/\|/g,', '); var windowManager = Components.classes['@mozilla.org/appshell/window-mediator;1'].getService(); var windowManagerInterface = windowManager.QueryInterface(Compo...
kRDFC.Init(kBMDS, rFolder);
function onOK(){ if (window.arguments[4] == "selectFolder") window.arguments[5].selectedFolder = gCreateInFolder; else { const kBMDS = kRDF.GetDataSource("rdf:bookmarks"); const kBMSContractID = "@mozilla.org/browser/bookmarks-service;1"; const kBMSIID = Components.interfaces.nsIBookmarksService; const...
loadData();
saveFindData();
function onOK(){ // Transfer dialog contents to data elements. loadData(); // Search. var result = finder.findNext(data); if (!result) { if (!dialog.bundle) dialog.bundle = document.getElementById("findBundle"); window.alert(dialog.bundle.getString("notFoundWarning")); }}
var result = finder.findNext(data); if (!result) {
var result = gFindInst.findNext(); if (!result) {
function onOK(){ // Transfer dialog contents to data elements. loadData(); // Search. var result = finder.findNext(data); if (!result) { if (!dialog.bundle) dialog.bundle = document.getElementById("findBundle"); window.alert(dialog.bundle.getString("notFoundWarning")); }}
return; }
function onOK(){ const mimeTypes = "UMimTyp"; var fileLocator = Components.classes["@mozilla.org/file/directory_service;1"].getService(); if (fileLocator) fileLocator = fileLocator.QueryInterface(Components.interfaces.nsIProperties); var file = fileLocator.get(mimeTypes, Components.interfaces.nsIFile); gDS = gR...
return;
return false;
function onOk(){ // Handle account deferral settings for POP3 accounts. if (gServerSettings.serverType == "pop3") { var radioGroup = document.getElementById("folderStorage"); var gPrefsBundle = document.getElementById("bundle_prefs"); // if this account wasn't deferred, and is now... if (radioGroup.value...
CalendarPublishObject.username = document.getElementById( "publish-username-textbox" ).value; CalendarPublishObject.password = document.getElementById( "publish-password-textbox" ).value;
function onOKCommand(){ var CalendarPublishObject = new Object(); CalendarPublishObject.remotePath = document.getElementById( "publish-remotePath-textbox" ).value; CalendarPublishObject.username = document.getElementById( "publish-username-textbox" ).value; CalendarPublishObject.password = document.getElementBy...
gEvent.recurForever = getFieldValue( "repeat-forever-radio", "checked" );
gEvent.recurForever = getFieldValue( "repeat-forever-radio", "selected" );
function onOKCommand(){ // get values from the form and put them into the event gEvent.title = getFieldValue( "title-field" ); gEvent.description = getFieldValue( "description-field" ); gEvent.location = getFieldValue( "location-field" ); gEvent.category = getFieldValue( "category-field" ); ...
if( recurEndDate.getTime() < gEvent.end.getTime() && gEvent.recurForever != false )
if( recurEndDate.getTime() < gEvent.end.getTime() && gEvent.recurForever == false )
function onOKCommand(){ // get values from the form and put them into the event gEvent.title = getFieldValue( "title-field" ); gEvent.description = getFieldValue( "description-field" ); gEvent.location = getFieldValue( "location-field" ); gEvent.category = getFieldValue( "category-field" ); ...
document.getElementById( "calendar-publishwindow" ).getButton( "accept" ).setAttribute( "label", "Close" );
document.getElementById( "calendar-publishwindow" ).getButton( "accept" ).setAttribute( "label", closeButtonLabel );
function onOKCommand(){ var CalendarPublishObject = new Object(); CalendarPublishObject.remotePath = document.getElementById( "publish-remotePath-textbox" ).value; CalendarPublishObject.username = document.getElementById( "publish-username-textbox" ).value; CalendarPublishObject.password = document.getElementBy...
gCalendarObject.username = document.getElementById( "server-username-textbox" ).value; gCalendarObject.password = document.getElementById( "server-password-textbox" ).value;
function onOKCommand(){ gCalendarObject.name = document.getElementById( "server-name-textbox" ).value; gCalendarObject.remotePath = document.getElementById( "server-path-textbox" ).value; gCalendarObject.username = document.getElementById( "server-username-textbox" ).value; gCalendarObject.password = documen...
gCalendarObject.username = document.getElementById( "server-username-textbox" ).value; gCalendarObject.password = document.getElementById( "server-password-textbox" ).value;
function onOKCommand(){ gCalendarObject.name = document.getElementById( "server-name-textbox" ).value; gCalendarObject.path = document.getElementById( "server-path-textbox" ).value; gCalendarObject.remotePath = document.getElementById( "server-remotepath-textbox" ).value; gCalendarObject.username = document....
var CalendarPublishObject = new Object();
gPublishObject.remotePath = document.getElementById( "publish-remotePath-textbox" ).value;
function onOKCommand(){ var CalendarPublishObject = new Object(); CalendarPublishObject.remotePath = document.getElementById( "publish-remotePath-textbox" ).value; document.getElementById( "publish-progressmeter" ).setAttribute( "mode", "undetermined" ); // call caller's on OK function gOnOkFunction( Calendar...
CalendarPublishObject.remotePath = document.getElementById( "publish-remotePath-textbox" ).value; document.getElementById( "publish-progressmeter" ).setAttribute( "mode", "undetermined" );
function onOKCommand(){ var CalendarPublishObject = new Object(); CalendarPublishObject.remotePath = document.getElementById( "publish-remotePath-textbox" ).value; document.getElementById( "publish-progressmeter" ).setAttribute( "mode", "undetermined" ); // call caller's on OK function gOnOkFunction( Calendar...
gOnOkFunction( CalendarPublishObject );
gOnOkFunction(gPublishObject, progressDialog);
function onOKCommand(){ var CalendarPublishObject = new Object(); CalendarPublishObject.remotePath = document.getElementById( "publish-remotePath-textbox" ).value; document.getElementById( "publish-progressmeter" ).setAttribute( "mode", "undetermined" ); // call caller's on OK function gOnOkFunction( Calendar...
document.getElementById( "calendar-publishwindow" ).getButton( "accept" ).setAttribute( "oncommand", "closeDialog()" ); document.getElementById( "publish-progressmeter" ).setAttribute( "mode", "determined" );
document.getElementById( "calendar-publishwindow" ).setAttribute( "ondialogaccept", "closeDialog()" );
function onOKCommand(){ var CalendarPublishObject = new Object(); CalendarPublishObject.remotePath = document.getElementById( "publish-remotePath-textbox" ).value; document.getElementById( "publish-progressmeter" ).setAttribute( "mode", "undetermined" ); // call caller's on OK function gOnOkFunction( Calendar...
CalendarPublishObject.url = document.getElementById( "publish-url-textbox" ).value; CalendarPublishObject.remotePath = document.getElementById( "publish-remotefilename-textbox" ).value;
CalendarPublishObject.remotePath = document.getElementById( "publish-remotePath-textbox" ).value;
function onOKCommand(){ var CalendarPublishObject = new Object(); CalendarPublishObject.url = document.getElementById( "publish-url-textbox" ).value; CalendarPublishObject.remotePath = document.getElementById( "publish-remotefilename-textbox" ).value; CalendarPublishObject.username = document.getElementById( "p...
return true;
document.getElementById( "calendar-publishwindow" ).getButton( "accept" ).setAttribute( "label", "Close" ); document.getElementById( "calendar-publishwindow" ).getButton( "accept" ).setAttribute( "oncommand", "closeDialog()" ); document.getElementById( "publish-progressmeter" ).setAttribute( "mode", "determined" ); ret...
function onOKCommand(){ var CalendarPublishObject = new Object(); CalendarPublishObject.url = document.getElementById( "publish-url-textbox" ).value; CalendarPublishObject.remotePath = document.getElementById( "publish-remotefilename-textbox" ).value; CalendarPublishObject.username = document.getElementById( "p...
gCalendarObject.remotePath = document.getElementById( "server-remotepath-textbox" ).value; gCalendarObject.username = document.getElementById( "server-username-textbox" ).value; gCalendarObject.password = document.getElementById( "server-password-textbox" ).value; gCalendarObject.publishAutomatically = document.getE...
function onOKCommand(){ gCalendarObject.name = document.getElementById( "server-name-textbox" ).value; gCalendarObject.path = document.getElementById( "server-path-textbox" ).value; //TODO: check that the gCalendarObject.path is actually a file, if its not, create it. // call caller's on OK function gOnOkF...
AddStyleToElement(gDialog.selectedObject, "-moz-opacity", v);
AddStyleToElement(gDialog.selectedObject, "opacity", v);
function onOpacityScrollbarAttrModified(aEvent){ if (aEvent.attrName == "curpos") { var v = aEvent.newValue / 1000; if (v == 1) gDialog.opacityLabel.setAttribute("value", "transparent"); else gDialog.opacityLabel.setAttribute("value", v); AddStyleToElement(gDialog.selectedObject, "-moz-opacit...
listener.onOperationComplete = function(aStatusCode, aResource, aOperation, aClosure) {
onOperationComplete: function(aStatusCode, aResource, aOperation, aClosure) { aClosure.onOperationComplete(this, aStatusCode, 0, null, null);
listener.onOperationComplete = function(aStatusCode, aResource, aOperation, aClosure) { // 204 = HTTP "No Content" // if (aStatusCode == 204) { debug("Item modified successfully.\n"); var retVal = Compo...
if (aStatusCode == 204) { debug("Item modified successfully.\n"); var retVal = Components.results.NS_OK; } else { if (aStatusCode > 999) { aStatusCode = "0x " + aStatusCode.toString(16); } debug("Error modifying item: " + aStatusCode + "\n"); retVal = Components.results.NS_ERROR_FAILURE; } if (aListener) { t...
debug("WebDavListener.onOperationComplete() called\n"); return; },
listener.onOperationComplete = function(aStatusCode, aResource, aOperation, aClosure) { // 204 = HTTP "No Content" // if (aStatusCode == 204) { debug("Item modified successfully.\n"); var retVal = Compo...
calManager.deleteCalendar(newCalendar); }
if (listener) listener.onOperationComplete(aCalendar, aStatus, aOperationType, aId, aDetail); },
onOperationComplete: function(aCalendar, aStatus, aOperationType, aId, aDetail) { // delete the new calendar now that we're done with it calManager.deleteCalendar(newCalendar); }
.getService(Components.interfaces.nsIConverterOutputStream);
.createInstance(Components.interfaces.nsIConverterOutputStream);
onOperationComplete: function(aCalendar, aStatus, aOperationType, aId, aDetail) { // All events are returned. Now set up a channel and a // streamloader to upload. // Will call onStopRequest when finised. var icsStr = calComp.serializeTo...
onOperationComplete: function(aStatusCode, aResource, aOperation, aClosure) { aClosure.onOperationComplete(this, aStatusCode, 0, null, null);
function onOperationComplete(aStatusCode, aResource, aOperation, aClosure) {
onOperationComplete: function(aStatusCode, aResource, aOperation, aClosure) { // aClosure is the listener aClosure.onOperationComplete(this, aStatusCode, 0, null, null); LOG("WebDavListener.onOperationComplete() called"); return; },
LOG("WebDavListener.onOperationComplete() called"); return; },
if (aStatusCode == 204) { LOG("Item deleted successfully."); var retVal = Components.results.NS_OK; } else { LOG("Error deleting item: " + aStatusCode); retVal = Components.results.NS_ERROR_FAILURE; } if (aListener) { try { aListener.onOperationComplete(thisCalendar, Components.results.NS_OK, aListener.DELETE, aItem...
onOperationComplete: function(aStatusCode, aResource, aOperation, aClosure) { // aClosure is the listener aClosure.onOperationComplete(this, aStatusCode, 0, null, null); LOG("WebDavListener.onOperationComplete() called"); return; },
count++; if (!Components.isSuccessCode(aStatus)) { failedCount++; lastError = aStatus; } if (count == items.length) { destCal.endBatch(); if (failedCount) showError(failedCount+" items failed to import. The last error was: "+lastError.toString()); }
count++; if (!Components.isSuccessCode(aStatus)) { failedCount++; lastError = aStatus;
onOperationComplete: function(aCalendar, aStatus, aOperationType, aId, aDetail) { count++; if (!Components.isSuccessCode(aStatus)) { failedCount++; lastError = aStatus; } // See if it is time to end the calenda...
if (count == gItems.length) { destCal.endBatch(); if (failedCount) showError(failedCount+" items failed to import. The last error was: "+lastError.toString()); } }
onOperationComplete: function(aCalendar, aStatus, aOperationType, aId, aDetail) { count++; if (!Components.isSuccessCode(aStatus)) { failedCount++; lastError = aStatus; } // See if it is time to end the calenda...
dump("WebDavListener.onOperationComplete() called\n");
debug("WebDavListener.onOperationComplete() called\n");
onOperationComplete: function(aStatusCode, aResource, aOperation, aClosure) { // aClosure is the listener aClosure.onOperationComplete(this, aStatusCode, 0, null, null); dump("WebDavListener.onOperationComplete() called\n"); return; },
onOperationDetail: function(aStatusCode, aResource, aOperation, aDetail, aClosure) { LOG("WebDavListener.onOperationDetail() called"); return; }
reportListener.onOperationDetail = function(aStatusCode, aResource, aOperation, aDetail, aClosure) { var rv; var errString; if (aResource.path == calendarDirUri.path) { throw("XXX report result for calendar, not event\n"); } var items = null; if (aStatusCode == 200) { if (aCount && count >= aCount) { retur...
onOperationDetail: function(aStatusCode, aResource, aOperation, aDetail, aClosure) { LOG("WebDavListener.onOperationDetail() called"); return; }
dump("WebDavListener.onOperationDetail() called\n");
debug("WebDavListener.onOperationDetail() called\n");
onOperationDetail: function(aStatusCode, aResource, aOperation, aDetail, aClosure) { dump("WebDavListener.onOperationDetail() called\n"); return; }
if (row.value == -1) return;
function onOutlinerResort (e, view){ /* resort by column */ var rowIndex = new Object(); var colID = new Object(); var childElt = new Object(); var obo = view.outliner; obo.getCellAt(e.clientX, e.clientY, rowIndex, colID, childElt); var prop; switch (colID.value.substr(4)) { case "...
client.currentObject.name);
client.currentObject.unicodeName);
function onOutputContextMenuCreate(e){ function evalIfAttribute (node, attr) { var expr = node.getAttribute(attr); if (!expr) return true; expr = expr.replace (/\Wor\W/gi, " || "); expr = expr.replace (/\Wand\W/gi, " && "); return eval("(" + expr + ")"); } ...
document.documentElement.getButton("accept").disabled = true;
function onP12Load(){ pw1 = document.getElementById("pw1"); params = window.arguments[0].QueryInterface(nsIDialogParamBlock); // Select first password field document.getElementById('pw1').focus();}
menuItem.setAttribute("value", strings[j]);
menuItem.setAttribute("label", strings[j]);
onpageload: function(aPageTag) { if ('Startup' in window.frames[ this.contentFrame ]) { window.frames[ this.contentFrame ].Startup(); } /* restore the list of menuItem values */ var elementIDs = window.frames[this.contentFrame]._elementIDs; for(var i...
var downloadNowLabel = gUpdates.wiz.currentPage.getAttribute("downloadNowLabel"); var downloadLaterLabel = gUpdates.wiz.currentPage.getAttribute("downloadLaterLabel"); gUpdates.setButtons(null, false, downloadNowLabel, false, null, false,
gUpdates.setButtons(null, false, "downloadButton", false, null, false,
onPageShow: function() { var updateName = gUpdates.strings.getFormattedString("updateName", [gUpdates.brandName, gUpdates.update.version]); if (gUpdates.update.channel == "nightly") updateName = updateName + " nightly (" + gUpdates.update.buildID + ")"; var updateNameElement = document.getElementB...
downloadLaterLabel, false);
"laterButton", false);
onPageShow: function() { var updateName = gUpdates.strings.getFormattedString("updateName", [gUpdates.brandName, gUpdates.update.version]); if (gUpdates.update.channel == "nightly") updateName = updateName + " nightly (" + gUpdates.update.buildID + ")"; var updateNameElement = document.getElementB...
var severity = gUpdates.update.isSecurityUpdate ? "minor" : "major"; var displayType = gUpdates.strings.getString("updateType_" + severity);
var severity = gUpdates.update.type;
onPageShow: function() { var updateName = gUpdates.strings.getFormattedString("updateName", [gUpdates.brandName, gUpdates.update.version]); if (gUpdates.update.channel == "nightly") updateName = updateName + " nightly (" + gUpdates.update.buildID + ")"; var updateNameElement = document.getElementB...
var intro = gUpdates.strings.getFormattedString( "introType_" + severity, [gUpdates.brandName]);
var intro; if (severity == "major") { intro = gUpdates.strings.getFormattedString( "introType_" + severity + "_app_and_version", [gUpdates.brandName, gUpdates.update.version]); this._updateMoreInfoContent = document.getElementById("updateMoreInfoContent"); this._updateMoreInfoContent.update_name = gUpdates.brandN...
onPageShow: function() { var updateName = gUpdates.strings.getFormattedString("updateName", [gUpdates.brandName, gUpdates.update.version]); if (gUpdates.update.channel == "nightly") updateName = updateName + " nightly (" + gUpdates.update.buildID + ")"; var updateNameElement = document.getElementB...
var updateMoreInfoURL = document.getElementById("updateMoreInfoURL"); updateMoreInfoURL.href = gUpdates.update.detailsURL;
onPageShow: function() { var updateName = gUpdates.strings.getFormattedString("updateName", [gUpdates.brandName, gUpdates.update.version]); if (gUpdates.update.channel == "nightly") updateName = updateName + " nightly (" + gUpdates.update.buildID + ")"; var updateNameElement = document.getElementB...
var licenseAccepted;
onPageShow: function() { var updateName = gUpdates.strings.getFormattedString("updateName", [gUpdates.brandName, gUpdates.update.version]); if (gUpdates.update.channel == "nightly") updateName = updateName + " nightly (" + gUpdates.update.buildID + ")"; var updateNameElement = document.getElementB...
gUpdates.update.getProperty("licenseAccepted");
licenseAccepted = gUpdates.update.getProperty("licenseAccepted");
onPageShow: function() { var updateName = gUpdates.strings.getFormattedString("updateName", [gUpdates.brandName, gUpdates.update.version]); if (gUpdates.update.channel == "nightly") updateName = updateName + " nightly (" + gUpdates.update.buildID + ")"; var updateNameElement = document.getElementB...
gUpdates.setButtons(null, false, "downloadButton", false, null, false,
gUpdates.setButtons(null, true, "downloadButton_" + severity, false, null, false,
onPageShow: function() { var updateName = gUpdates.strings.getFormattedString("updateName", [gUpdates.brandName, gUpdates.update.version]); if (gUpdates.update.channel == "nightly") updateName = updateName + " nightly (" + gUpdates.update.buildID + ")"; var updateNameElement = document.getElementB...
"laterButton", false);
"laterButton", false, severity == "major" ? "neverButton" : null, false);
onPageShow: function() { var updateName = gUpdates.strings.getFormattedString("updateName", [gUpdates.brandName, gUpdates.update.version]); if (gUpdates.update.channel == "nightly") updateName = updateName + " nightly (" + gUpdates.update.buildID + ")"; var updateNameElement = document.getElementB...
this.onPageShow();
this.onPageShow(true);
onPageShowBackground: function() { var finishedBackground = document.getElementById("finishedBackground"); finishedBackground.setAttribute("label", gUpdates.strings.getFormattedString( "updateReadyToInstallHeader", [gUpdates.update.name])); // XXXben - wizard should give us a way to set the page header....
}
},
onPageShowPatching: function() { gUpdates.wiz.getButton("back").disabled = true; gUpdates.wiz.getButton("cancel").disabled = true; gUpdates.wiz.getButton("next").focus(); }
restorePage(currentServerId, currentPageId);
restorePage(currentPageId, currentServerId);
function onPanelLoaded(pageId) { if (pageId != pendingPageId) { // if we're reloading the current page, we'll assume the // page has asked itself to be completely reloaded from // the prefs. to do this, clear out the the old entry in // the account data, and then restore theh page if (pageId == curr...
dump("Mixed paragraph format *******\n");
function onParagraphFormatChange(){ var select = document.getElementById("ParagraphSelect"); if (select) { // If we don't match anything, set to "normal" var newIndex = 0; var format = select.getAttribute("format"); if ( format == "mixed") { // No single type selected newIndex = -1; } ...
paraMenuList.setAttribute("value",GetString('Mixed'));
paraMenuList.setAttribute("label",GetString('Mixed'));
function onParagraphFormatChange(paraMenuList, commandID){ var commandNode = document.getElementById(commandID); var state = commandNode.getAttribute("state"); var menuList = document.getElementById("ParagraphSelect"); if (!menuList) return; // force match with "normal" if (state == "body") state = ""; if (...