rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
bpList.fileName = fileName; bpList.line = line;
function setBreakpoint (fileName, line){ var ary = console._scripts[fileName]; if (!ary) { display (getMsg(MSN_ERR_NOTLOADED, fileName), MT_ERROR); return false; } var bpList = new Array(); for (var i = 0; i < ary.length; ++i) { if (ary[i].baseLineNumber <= line && ...
var dirService = Components.classes["@mozilla.org/directory_service;1"]
var dirService = Components.classes["@mozilla.org/file/directory_service;1"]
function setBuddyIcon(card, buddyIcon){ try { var myScreenName = gPrefs.getCharPref("aim.session.screenname"); if (myScreenName && card.primaryEmail) { if (!gProfileDirURL) { // lazily create these file urls, and keep them around var dirService = Components.classes["@mozilla.org/directory_serv...
numFrames = window.frames.length;
var numFrames = window.frames.length;
function SetBusyCursor(window, enable){ if(enable) window.setCursor("wait"); else window.setCursor("auto"); numFrames = window.frames.length; for(var i = 0; i < numFrames; i++) { SetBusyCursor(window.frames[i], enable); }}
void("periods: " + this.periods + "\n");
function setCalendar(calendar){ void("periods: " + this.periods + "\n"); if (this.calendar) this.calendar.removeObserver(this.calendarObserver); this.calendar = calendar; calendar.addObserver(this.calendarObserver); // Update everything this.refreshPeriodDates();};
if (!oldSelection || oldSelection < 0) { oldSelection = 0; }
function setCalendarManagerUI(){ var calendarList = document.getElementById("list-calendars-listbox"); var oldSelection = calendarList.selectedIndex; if (!oldSelection || oldSelection < 0) { oldSelection = 0; } var child; while ((child = calendarList.lastChild) && (child.tagName == "listitem"))...
if (oldSelection >= calendars.length) { oldSelection = calendars.length-1; }
function setCalendarManagerUI(){ var calendarList = document.getElementById("list-calendars-listbox"); var oldSelection = calendarList.selectedIndex; if (!oldSelection || oldSelection < 0) { oldSelection = 0; } var child; while ((child = calendarList.lastChild) && (child.tagName == "listitem"))...
if (!oldSelection || oldSelection < 0) { var defaultCalendar = composite.defaultCalendar; var item = defaultCalendar ? getListItem(defaultCalendar) : null; oldSelection = item ? calendarList.getIndexOfItem(item) : 0; } if (oldSelection >= calendars.length) { oldSelection = calendars.length-1; }
function setCalendarManagerUI(){ var calendarList = document.getElementById("list-calendars-listbox"); var oldSelection = calendarList.selectedIndex; if (!oldSelection || oldSelection < 0) { oldSelection = 0; } var child; while ((child = calendarList.lastChild) && (child.tagName == "listitem"))...
var checkbox = doc.getElementById('SendPlainText'); if (checkbox) cardproperty.sendPlainText = checkbox.checked;
var popup = document.getElementById('PreferMailFormatPopup'); if ( popup ) cardproperty.preferMailFormat = popup.data;
function SetCardValues(cardproperty, doc){ if (cardproperty) { cardproperty.firstName = doc.getElementById('FirstName').value; cardproperty.lastName = doc.getElementById('LastName').value; cardproperty.displayName = doc.getElementById('DisplayName').value; cardproperty.nickName = doc.getElementById('NickName').valu...
cardproperty.webPage1 = doc.getElementById('WebPage1').value;
cardproperty.webPage1 = CleanUpWebPage(doc.getElementById('WebPage1').value);
function SetCardValues(cardproperty, doc){ if (cardproperty) { cardproperty.firstName = doc.getElementById('FirstName').value; cardproperty.lastName = doc.getElementById('LastName').value; cardproperty.displayName = doc.getElementById('DisplayName').value; cardproperty.nickName = doc.getElementById('NickName').valu...
cardproperty.aimScreenName = doc.getElementById('ScreenName').value;
function SetCardValues(cardproperty, doc){ if (cardproperty) { cardproperty.firstName = doc.getElementById('FirstName').value; cardproperty.lastName = doc.getElementById('LastName').value; cardproperty.displayName = doc.getElementById('DisplayName').value; cardproperty.nickName = doc.getElementById('NickN...
document.documentElement.getButton("cancel").setAttribute("label",GetString("Close"));
document.documentElement.setAttribute("buttonlabelcancel", document.documentElement.getAttribute("buttonlabelclose"));
function SetCloseButton(){ // Change text on "Cancel" button after Apply is used if (!gApplyUsed) { document.documentElement.getButton("cancel").setAttribute("label",GetString("Close")); gApplyUsed = true; }}
if (backgroundImage.length > 0)
if (backgroundImage)
function SetColorPreview(ColorWellID, color){ switch( ColorWellID ) { case "textCW": dialog.NormalText.setAttribute(styleStr,colorStyle+color); break; case "linkCW": dialog.LinkText.setAttribute(styleStr,colorStyle+color); break; case "activeCW": dialog.ActiveLinkText.setAttribute(st...
previewBGColor = color;
function SetColorPreview(ColorWellID, color){ switch( ColorWellID ) { case "textCW": dialog.NormalText.setAttribute(styleStr,colorStyle+color); break; case "linkCW": dialog.LinkText.setAttribute(styleStr,colorStyle+color); break; case "activeCW": dialog.ActiveLinkText.setAttribute(st...
styleValue = backColorStyle+color;
var styleValue = backColorStyle+color;
function SetColorPreview(ColorWellID, color){ switch( ColorWellID ) { case "textCW": dialog.NormalText.setAttribute(styleStr,colorStyle+color); break; case "linkCW": dialog.LinkText.setAttribute(styleStr,colorStyle+color); break; case "activeCW": dialog.ActiveLinkText.setAttribute(st...
this.enable( "reveal" );
var enableButtons = true;
setCompleted: function() { // If dialog hasn't loaded yet, defer this. if ( !this.loaded ) { this.dialog.setTimeout( function(obj){obj.setCompleted()}, 100, this ); return false; } if ( !this.mCompleted ) { this.mCompleted = true; // If the "ke...
if ( this.target && !this.target.isExecutable() ) { this.enable( "launch" );
var prefs = Components.classes[ "@mozilla.org/preferences-service;1" ] .getService( Components.interfaces.nsIPrefBranch ); enableButtons = prefs.getBoolPref( "browser.download.progressDnldDialog.enable_launch_reveal_buttons" ); } catch ( e ) { } if ( enableButtons ) { this.enable( "reveal" ); try { if ( this.target &&...
setCompleted: function() { // If dialog hasn't loaded yet, defer this. if ( !this.loaded ) { this.dialog.setTimeout( function(obj){obj.setCompleted()}, 100, this ); return false; } if ( !this.mCompleted ) { this.mCompleted = true; // If the "ke...
} catch(e) {
setCompleted: function() { // If dialog hasn't loaded yet, defer this. if ( !this.loaded ) { this.dialog.setTimeout( function(obj){obj.setCompleted()}, 100, this ); return false; } if ( !this.mCompleted ) { this.mCompleted = true; // If the "ke...
newTitle = Bundle.GetStringFromName("defaultSubject");
newTitle = gComposeMsgsBundle.getString("defaultSubject");
function SetComposeWindowTitle(event) { /* dump("event = " + event + "\n"); */ /* only set the title when they hit return (or tab?) if mail.update_compose_title_as_you_type == false */ if ((event != 13) && (update_compose_title_as_you_type == false)) { return; } var newTitle = document.getElementById('msgSubject')...
window.title = Bundle.GetStringFromName("windowTitlePrefix") + " " + newTitle;
window.title = gComposeMsgsBundle.getString("windowTitlePrefix") + " " + newTitle;
function SetComposeWindowTitle(event) { /* dump("event = " + event + "\n"); */ /* only set the title when they hit return (or tab?) if mail.update_compose_title_as_you_type == false */ if ((event != 13) && (update_compose_title_as_you_type == false)) { return; } var newTitle = document.getElementById('msgSubject')...
permissionmanager.add(uri, dialogType, action);
if (permissionmanager.testPermission(uri, dialogType) != action) permissionmanager.add(uri, dialogType, action);
function setCookiePermissions(action) { var site = document.getElementById('cookie-site'); var url = site.value.replace(/^\s*([-\w]*:\/+)?/, "http://"); var ioService = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var uri = ioSer...
console.stopFile = cf.script.fileName;
function setCurrentFrameByIndex (index){ if (!console.frames) throw new BadMojo (ERR_NO_STACK); ASSERT (index >= 0 && index < console.frames.length, "index out of range"); console._currentFrameIndex = index; var cf = console.frames[console._currentFrameIndex]; console.stopLine = cf.line; co...
updateSecurityIcon();
function setCurrentObject (obj){ function clearList() { client.rdf.Unassert (client.rdf.resNullChan, client.rdf.resChanUser, client.rdf.resNullUser, true); }; if (!ASSERT(obj.messages, "INVALID OBJECT passed to setCurrentObject **")) return; if ("currentObject" i...
document.getElementById( "due-date-warning" ).setAttribute( "collapsed", !state );
document.getElementById( "end-date-warning" ).setAttribute( "hidden", !state );
function setDateError(state){ document.getElementById( "due-date-warning" ).setAttribute( "collapsed", !state );}
var file_url = Components.classes[ "@mozilla.org/network/standard-url;1" ] .createInstance( Components.interfaces.nsIFileURL ); file_url.file = file;
setDefault: function() { // Get RDF service. var rdf = Components.classes[ "@mozilla.org/rdf/rdf-service;1" ] .getService( Components.interfaces.nsIRDFService ); // Now ask if it knows about this mime type. var exists = false; var fileLocator = Components.classe...
remoteDS.Init( file_url.spec );
remoteDS.Init( file.URL );
setDefault: function() { // Get RDF service. var rdf = Components.classes[ "@mozilla.org/rdf/rdf-service;1" ] .getService( Components.interfaces.nsIRDFService ); // Now ask if it knows about this mime type. var exists = false; var fileLocator = Components.classe...
ds = rdf.GetDataSource( file_url.spec );
ds = rdf.GetDataSource( file.URL );
setDefault: function() { // Get RDF service. var rdf = Components.classes[ "@mozilla.org/rdf/rdf-service;1" ] .getService( Components.interfaces.nsIRDFService ); // Now ask if it knows about this mime type. var exists = false; var fileLocator = Components.classe...
function setDefaultCopiesAndFoldersPrefs(identity, server)
function setDefaultCopiesAndFoldersPrefs(identity, server, accountData)
function setDefaultCopiesAndFoldersPrefs(identity, server){ dump("finding folders on server = " + server.hostName + "\n"); var rootFolder = server.rootFolder; // we need to do this or it is possible that the server's draft, // stationery fcc folder will not be in rdf // // this can happen in a couple cases // 1) the...
identity.draftFolder = msgFolder.server.serverURI+ folderDelim + "Drafts"; identity.stationeryFolder = msgFolder.server.serverURI+ folderDelim + "Templates"; identity.fccFolder = msgFolder.server.serverURI+ folderDelim + "Sent";
identity.draftFolder = msgFolder.server.serverURI+ folderDelim + draftFolder; identity.stationeryFolder = msgFolder.server.serverURI+ folderDelim + stationeryFolder; identity.fccFolder = msgFolder.server.serverURI+ folderDelim + fccFolder;
function setDefaultCopiesAndFoldersPrefs(identity, server){ dump("finding folders on server = " + server.hostName + "\n"); var rootFolder = server.rootFolder; // we need to do this or it is possible that the server's draft, // stationery fcc folder will not be in rdf // // this can happen in a couple cases // 1) the...
identity.fccFolderPickerMode = gDefaultSpecialFolderPickerMode; identity.draftsFolderPickerMode = gDefaultSpecialFolderPickerMode; identity.tmplFolderPickerMode = gDefaultSpecialFolderPickerMode;
identity.fccFolderPickerMode = (accountData.identity && accountData.identity.fccFolder ? 1 : gDefaultSpecialFolderPickerMode); identity.draftsFolderPickerMode = (accountData.identity && accountData.identity.draftFolder ? 1 : gDefaultSpecialFolderPickerMode); identity.tmplFolderPickerMode = (accountData.identity && acco...
function setDefaultCopiesAndFoldersPrefs(identity, server){ dump("finding folders on server = " + server.hostName + "\n"); var rootFolder = server.rootFolder; // we need to do this or it is possible that the server's draft, // stationery fcc folder will not be in rdf // // this can happen in a couple cases // 1) the...
dump("finding folders on server = " + server.hostName + "\n");
_dd("finding folders on server = " + server.hostName + "\n");
function setDefaultCopiesAndFoldersPrefs(identity, server){ dump("finding folders on server = " + server.hostName + "\n"); var rootFolder = server.RootFolder; // we need to do this or it is possible that the server's draft, // stationery fcc folder will not be in rdf // // this can happen in a couple cases // 1) the...
dump("fccFolder = " + identity.fccFolder + "\n"); dump("draftFolder = " + identity.draftFolder + "\n"); dump("stationeryFolder = " + identity.stationeryFolder + "\n");
_dd("fccFolder = " + identity.fccFolder + "\n"); _dd("draftFolder = " + identity.draftFolder + "\n"); _dd("stationeryFolder = " + identity.stationeryFolder + "\n");
function setDefaultCopiesAndFoldersPrefs(identity, server){ dump("finding folders on server = " + server.hostName + "\n"); var rootFolder = server.RootFolder; // we need to do this or it is possible that the server's draft, // stationery fcc folder will not be in rdf // // this can happen in a couple cases // 1) the...
g_send_default_charset = currentMailSendCharset;
function SetDefaultMailSendCharacterSet(){ // Set the current menu selection as the default if (currentMailSendCharset != null) { // try to get preferences service var prefs = null; try { prefs = Components.classes['component://netscape/preferences']; prefs = prefs.getService(); prefs = prefs....
urlSecurityCheck(this.target.src, this.docURL);
urlSecurityCheck(this.target.currentURI.spec, this.docURL);
setDesktopBackground: function() { // Paranoia: check disableSetDesktopBackground again, in case the // image changed since the context menu was initiated. if (this.disableSetDesktopBackground()) return; urlSecurityCheck(this.target.src, this.docURL); // Confirm since it's annoying i...
document.getElementById("details").setAttribute("value", details);
document.getElementById("details").value = details;
function setDetails(){ var index = parseInt(document.getElementById("nicknames").value); details = dialogParams.GetString(index+itemCount+4); document.getElementById("details").setAttribute("value", details);}
if (nextFile.isDirectory()) {
var isDir = false; try { isDir = nextFile.isDirectory(); } catch (e) { nextFile = { unicodeLeafName : nextFile.unicodeLeafName, fileSize : 0, lastModificationDate : 0, isHidden: function() { return false; } }; } if (isDir) {
setDirectory: function(directory) { this.mDirectoryPath = directory; this.mFileList = []; this.mDirList = []; var dir = Components.classes[nsLocalFile_CONTRACTID].createInstance(nsILocalFile); dir.followLinks = false; dir.initWithUnicodePath(directory); var dirEntries = dir.QueryInterface(nsIFile...
document.getElementById("EditModeTabs").selectedTab = selectedTab;
document.getElementById("EditModeTabs").selectedItem = selectedTab;
function SetDisplayMode(mode){ if (gIsHTMLEditor) { // Already in requested mode: // return false to indicate we didn't switch if (mode == gEditorDisplayMode) return false; gEditorDisplayMode = mode; // Save the last non-source mode so we can cancel source editing easily if (mode != DisplayMod...
return false;
function SetDisplayMode(mode){ if (gIsHTMLEditor) { // Already in requested mode: // return false to indicate we didn't switch if (mode == gEditorDisplayMode) return false; gEditorDisplayMode = mode; // Save the last non-source mode so we can cancel source editing easily if (mode != DisplayMod...
window.updateCommands("mode_switch");
function SetDisplayMode(mode){ if (gIsHTMLEditor) { // Already in requested mode: // return false to indicate we didn't switch if (mode == gEditorDisplayMode) return false; gEditorDisplayMode = mode; // Save the last non-source mode so we can cancel source editing easily if (mode != DisplayMod...
window.updateCommands("mode_switch");
function SetDisplayMode(mode){ if (gIsHTMLEditor) { // Already in requested mode: // return false to indicate we didn't switch if (mode == gEditorDisplayMode) return false; gEditorDisplayMode = mode; // Save the last non-source mode so we can cancel source editing easily if (mode != DisplayMod...
ContentWindowDeck.setAttribute("index","1");
gContentWindowDeck.setAttribute("index","1");
function SetDisplayMode(mode){ if (gIsHTMLEditor) { // Already in requested mode: // return false to indicate we didn't switch if (mode == EditorDisplayMode) return false; EditorDisplayMode = mode; // Save the last non-source mode so we can cancel source editing easily if (mode != DisplayModeS...
sourceContentWindow.focus();
gSourceContentWindow.focus();
function SetDisplayMode(mode){ if (gIsHTMLEditor) { // Already in requested mode: // return false to indicate we didn't switch if (mode == EditorDisplayMode) return false; EditorDisplayMode = mode; // Save the last non-source mode so we can cancel source editing easily if (mode != DisplayModeS...
ContentWindowDeck.setAttribute("index","0");
gContentWindowDeck.setAttribute("index","0");
function SetDisplayMode(mode){ if (gIsHTMLEditor) { // Already in requested mode: // return false to indicate we didn't switch if (mode == EditorDisplayMode) return false; EditorDisplayMode = mode; // Save the last non-source mode so we can cancel source editing easily if (mode != DisplayModeS...
contentWindow.focus();
gContentWindow.focus();
function SetDisplayMode(mode){ if (gIsHTMLEditor) { // Already in requested mode: // return false to indicate we didn't switch if (mode == EditorDisplayMode) return false; EditorDisplayMode = mode; // Save the last non-source mode so we can cancel source editing easily if (mode != DisplayModeS...
gSourceContentWindow.focus();
gSourceContentWindow.contentWindow.focus();
function SetDisplayMode(mode){ if (!IsHTMLEditor()) return false; // Already in requested mode: // return false to indicate we didn't switch if (mode == gEditorDisplayMode) return false; var previousMode = gEditorDisplayMode; gEditorDisplayMode = mode; ResetStructToolbar(); if (mode == kDisplayModeSource...
DisableMenusForHTMLSource(true);
function SetDisplayMode(mode){ if (gIsHTMLEditor) { // Already in requested mode: // return false to indicate we didn't switch if (mode == gEditorDisplayMode) return false; gEditorDisplayMode = mode; // Save the last non-source mode so we can cancel source editing easily if (mode != DisplayMod...
DisableMenusForHTMLSource(false);
function SetDisplayMode(mode){ if (gIsHTMLEditor) { // Already in requested mode: // return false to indicate we didn't switch if (mode == gEditorDisplayMode) return false; gEditorDisplayMode = mode; // Save the last non-source mode so we can cancel source editing easily if (mode != DisplayMod...
window.updateCommands("mode_switch");
function SetDisplayMode(mode){ if (gIsHTMLEditor) { // Already in requested mode: // return false to indicate we didn't switch if (mode == gEditorDisplayMode) return false; gEditorDisplayMode = mode; // Save the last non-source mode so we can cancel source editing easily if (mode != DisplayMod...
if (mode == EditorDisplayMode) return false;
if (gIsHTMLEditor) { if (mode == EditorDisplayMode) return false;
function SetDisplayMode(mode){ // Already in requested mode: // return false to indicate we didn't switch if (mode == EditorDisplayMode) return false; EditorDisplayMode = mode; // Save the last non-source mode so we can cancel source editing easily if (mode != DisplayModeSource) PreviousNonSourceDisplayMod...
EditorToolbox.setAttribute("collapsed", "true");
function SetDisplayMode(mode){ // Already in requested mode: // return false to indicate we didn't switch if (mode == EditorDisplayMode) return false; EditorDisplayMode = mode; // Save the last non-source mode so we can cancel source editing easily if (mode != DisplayModeSource) PreviousNonSourceDisplayMod...
sourceContentWindow.focus(); } else { ContentWindowDeck.setAttribute("index","0");
function SetDisplayMode(mode){ // Already in requested mode: // return false to indicate we didn't switch if (mode == EditorDisplayMode) return false; EditorDisplayMode = mode; // Save the last non-source mode so we can cancel source editing easily if (mode != DisplayModeSource) PreviousNonSourceDisplayMod...
sourceContentWindow.focus();
contentWindow.focus(); } return true;
function SetDisplayMode(mode){ // Already in requested mode: // return false to indicate we didn't switch if (mode == EditorDisplayMode) return false; EditorDisplayMode = mode; // Save the last non-source mode so we can cancel source editing easily if (mode != DisplayModeSource) PreviousNonSourceDisplayMod...
else { ContentWindowDeck.setAttribute("index","0"); EditorToolbox.removeAttribute("collapsed"); contentWindow.focus(); } return true;
function SetDisplayMode(mode){ // Already in requested mode: // return false to indicate we didn't switch if (mode == EditorDisplayMode) return false; EditorDisplayMode = mode; // Save the last non-source mode so we can cancel source editing easily if (mode != DisplayModeSource) PreviousNonSourceDisplayMod...
profileDisplay.setAttribute("rootFolder", fileSpec.unicodePath );
profileDisplay.setAttribute("rootFolder", fileSpec.path );
function setDisplayToDefaultFolder(){ var profileName = document.getElementById( "ProfileName" ); var profileDisplay = document.getElementById( "ProfileDir" ); var fileSpec; try { fileSpec = top.profile.defaultProfileParentDir; if ( fileSpec ) fileSpec = fileSpec.QueryInterface( Components.interfaces....
else if ( div.childNodes.length == 1 )
else if ( div.childNodes.length == 1 ) {
function SetDivText(id, text){ var div = document.getElementById(id); if ( div ) { if ( div.childNodes.length == 0 ) { var textNode = document.createTextNode(text); div.appendChild(textNode); } else if ( div.childNodes.length == 1 ) div.childNodes[0].nodeValue = text; }}
}
function SetDivText(id, text){ var div = document.getElementById(id); if ( div ) { if ( div.childNodes.length == 0 ) { var textNode = document.createTextNode(text); div.appendChild(textNode); } else if ( div.childNodes.length == 1 ) div.childNodes[0].nodeValue = text; }}
var div = document.getElementById(divid+".text");
div = document.getElementById(divid+".text");
function setDivTextFromForm(divid, value) { // hide the .label if the div has no value if (!value || value =="") { var div = document.getElementById(divid + ".label"); div.setAttribute("hidden","true"); return; } // otherwise fill in the .text element var div = document.getElementByI...
g_charsetTitle = null;
function SetDocumentCharacterSet(aCharset){ dump("SetDocumentCharacterSet Callback!\n"); dump(aCharset + "\n"); if (msgCompose) { msgCompose.SetDocumentCharset(aCharset); currentMailSendCharset = aCharset; SetComposeWindowTitle(13); } else dump("Compose has not been created!\n");}
var emailAddr = gCurrentIdentity.email; var start = emailAddr.lastIndexOf("@"); gAutocompleteSession.defaultDomain = emailAddr.slice(start + 1, emailAddr.length);
if (gCurrentIdentity.autocompleteToMyDomain) { var emailAddr = gCurrentIdentity.email; var start = emailAddr.lastIndexOf("@"); gAutocompleteSession.defaultDomain = emailAddr.slice(start + 1, emailAddr.length); }
function setDomainName(){ var emailAddr = gCurrentIdentity.email; var start = emailAddr.lastIndexOf("@"); gAutocompleteSession.defaultDomain = emailAddr.slice(start + 1, emailAddr.length);}
var source = editorShell.GetContentsAs("text/html", 0); if (source.length > 0) { headStart = source.indexOf("<head"); if (headStart > 0) gSourceContentWindow.value = source.slice(headStart); else headStart = source;
function SetEditMode(mode){ if (gIsHTMLEditor) { var bodyNode = editorShell.editorDocument.getElementsByTagName("body").item(0); if (!bodyNode) { dump("SetEditMode: We don't have a body node!\n"); return; } // Switch the UI mode before inserting contents // so user can't type in source w...
gSourceContentWindow.focus(); } else SetDisplayMode(PreviousNonSourceDisplayMode);
var flags = gOutputNoDoctype | gOutputEncodeEntities; var prettyPrint = gPrefs.GetBoolPref("editor.prettyprint"); if (prettyPrint) flags |= gOutputFormatted; source = editorShell.GetContentsAs("text/html", flags); var start = source.search(/<html/i); if (start == -1) start = 0; gSourceContentWindow.value = source.sli...
function SetEditMode(mode){ if (gIsHTMLEditor) { var bodyNode = editorShell.editorDocument.getElementsByTagName("body").item(0); if (!bodyNode) { dump("SetEditMode: We don't have a body node!\n"); return; } // Switch the UI mode before inserting contents // so user can't type in source w...
editorShell.RebuildDocumentFromSource(gSourceContentWindow.value);
source = gSourceContentWindow.value; editorShell.RebuildDocumentFromSource(source);
function SetEditMode(mode){ if (gIsHTMLEditor) { var bodyNode = editorShell.editorDocument.getElementsByTagName("body").item(0); if (!bodyNode) { dump("SetEditMode: We don't have a body node!\n"); return; } // Switch the UI mode before inserting contents // so user can't type in source w...
gSourceContentWindow.value = "";
var titleStart = source.search(/<title>/i); if (titleStart != -1) { titleStart += 7; var titleEnd = source.indexOf("<",titleStart); if (titleEnd > titleStart) { var title = source.slice(titleStart, titleEnd); dump("Title="+title+"|\n"); editorShell.SetDocumentTitle(title); } } source = null; gSourceContentWindow.valu...
function SetEditMode(mode){ if (gIsHTMLEditor) { var bodyNode = editorShell.editorDocument.getElementsByTagName("body").item(0); if (!bodyNode) { dump("SetEditMode: We don't have a body node!\n"); return; } // Switch the UI mode before inserting contents // so user can't type in source w...
dump("Title="+title+"|\n");
function SetEditMode(mode){ if (gIsHTMLEditor) { var bodyNode = editorShell.editorDocument.getElementsByTagName("body").item(0); if (!bodyNode) { dump("SetEditMode: We don't have a body node!\n"); return; } // Switch the UI mode before inserting contents // so user can't type in source w...
sourceContentWindow.value = editorShell.GetContentsAs("text/html", gOutputBodyOnly); sourceContentWindow.focus(); setTimeout("sourceContentWindow.focus()", 10);
gSourceContentWindow.value = editorShell.GetContentsAs("text/html", gOutputBodyOnly); gSourceContentWindow.focus(); setTimeout("gSourceContentWindow.focus()", 10);
function SetEditMode(mode){ if (gIsHTMLEditor) { var bodyNode = editorShell.editorDocument.getElementsByTagName("body").item(0); if (!bodyNode) { dump("SetEditMode: We don't have a body node!\n"); return; } // Switch the UI mode before inserting contents // so user can't type in source w...
editorShell.InsertSource(sourceContentWindow.value);
editorShell.InsertSource(gSourceContentWindow.value);
function SetEditMode(mode){ if (gIsHTMLEditor) { var bodyNode = editorShell.editorDocument.getElementsByTagName("body").item(0); if (!bodyNode) { dump("SetEditMode: We don't have a body node!\n"); return; } // Switch the UI mode before inserting contents // so user can't type in source w...
sourceContentWindow.value = "";
gSourceContentWindow.value = "";
function SetEditMode(mode){ if (gIsHTMLEditor) { var bodyNode = editorShell.editorDocument.getElementsByTagName("body").item(0); if (!bodyNode) { dump("SetEditMode: We don't have a body node!\n"); return; } // Switch the UI mode before inserting contents // so user can't type in source w...
contentWindow.focus(); setTimeout("contentWindow.focus()", 10);
gContentWindow.focus(); setTimeout("gContentWindow.focus()", 10);
function SetEditMode(mode){ if (gIsHTMLEditor) { var bodyNode = editorShell.editorDocument.getElementsByTagName("body").item(0); if (!bodyNode) { dump("SetEditMode: We don't have a body node!\n"); return; } // Switch the UI mode before inserting contents // so user can't type in source w...
gSourceContentWindow.setAttribute("oninput", "oninputHTMLSource();");
gSourceContentWindow.addEventListener("input", oninputHTMLSource, false);
function SetEditMode(mode){ if (gIsHTMLEditor) { var bodyNode = editorShell.editorDocument.getElementsByTagName("body").item(0); if (!bodyNode) { dump("SetEditMode: We don't have a body node!\n"); return; } // Switch the UI mode before inserting contents // so user can't type in source w...
} else { gSourceContentWindow.removeEventListener("input", oninputHTMLSource, false);
function SetEditMode(mode){ if (gIsHTMLEditor) { var bodyNode = editorShell.editorDocument.getElementsByTagName("body").item(0); if (!bodyNode) { dump("SetEditMode: We don't have a body node!\n"); return; } // Switch the UI mode before inserting contents // so user can't type in source w...
var bodyNode = editorShell.editorDocument.getElementsByTagName("body").item(0); if (!bodyNode)
if (gIsHTMLEditor)
function SetEditMode(mode){ var bodyNode = editorShell.editorDocument.getElementsByTagName("body").item(0); if (!bodyNode) { dump("SetEditMode: We don't have a body node!\n"); return; } // Switch the UI mode before inserting contents // so user can't type in source window while new window is being filled ...
dump("SetEditMode: We don't have a body node!\n"); return; } var previousMode = EditorDisplayMode; if (!SetDisplayMode(mode)) return;
var bodyNode = editorShell.editorDocument.getElementsByTagName("body").item(0); if (!bodyNode) { dump("SetEditMode: We don't have a body node!\n"); return; } var previousMode = EditorDisplayMode; if (!SetDisplayMode(mode)) return;
function SetEditMode(mode){ var bodyNode = editorShell.editorDocument.getElementsByTagName("body").item(0); if (!bodyNode) { dump("SetEditMode: We don't have a body node!\n"); return; } // Switch the UI mode before inserting contents // so user can't type in source window while new window is being filled ...
if (mode == DisplayModeSource) { if (bodyNode)
if (mode == DisplayModeSource)
function SetEditMode(mode){ var bodyNode = editorShell.editorDocument.getElementsByTagName("body").item(0); if (!bodyNode) { dump("SetEditMode: We don't have a body node!\n"); return; } // Switch the UI mode before inserting contents // so user can't type in source window while new window is being filled ...
var childCount = bodyNode.childNodes.length; if( childCount)
if (bodyNode)
function SetEditMode(mode){ var bodyNode = editorShell.editorDocument.getElementsByTagName("body").item(0); if (!bodyNode) { dump("SetEditMode: We don't have a body node!\n"); return; } // Switch the UI mode before inserting contents // so user can't type in source window while new window is being filled ...
var sourceContent = editorShell.GetContentsAs("text/html", gOutputBodyOnly); sourceContentWindow.value = sourceContent.replace(/<body>/,"").replace(/<\/body>/,""); sourceContentWindow.focus(); setTimeout("sourceContentWindow.focus()", 10); return;
var childCount = bodyNode.childNodes.length; if( childCount) { sourceContentWindow.value = editorShell.GetContentsAs("text/html", gOutputBodyOnly); sourceContentWindow.focus(); setTimeout("sourceContentWindow.focus()", 10); return; }
function SetEditMode(mode){ var bodyNode = editorShell.editorDocument.getElementsByTagName("body").item(0); if (!bodyNode) { dump("SetEditMode: We don't have a body node!\n"); return; } // Switch the UI mode before inserting contents // so user can't type in source window while new window is being filled ...
SetDisplayMode(PreviousNonSourceDisplayMode); } else if (previousMode == DisplayModeSource) { editorShell.SelectAll(); editorShell.InsertSource(sourceContentWindow.value); sourceContentWindow.value = ""; if (bodyNode) editorShell.editorSelection.collapse(bodyNode, 0);
else if (previousMode == DisplayModeSource) { editorShell.SelectAll(); editorShell.InsertSource(sourceContentWindow.value); sourceContentWindow.value = ""; if (bodyNode) editorShell.editorSelection.collapse(bodyNode, 0);
function SetEditMode(mode){ var bodyNode = editorShell.editorDocument.getElementsByTagName("body").item(0); if (!bodyNode) { dump("SetEditMode: We don't have a body node!\n"); return; } // Switch the UI mode before inserting contents // so user can't type in source window while new window is being filled ...
contentWindow.focus(); setTimeout("contentWindow.focus()", 10);
contentWindow.focus(); setTimeout("contentWindow.focus()", 10); }
function SetEditMode(mode){ var bodyNode = editorShell.editorDocument.getElementsByTagName("body").item(0); if (!bodyNode) { dump("SetEditMode: We don't have a body node!\n"); return; } // Switch the UI mode before inserting contents // so user can't type in source window while new window is being filled ...
var userResolution = document.getElementById("userResolution"); var item = screenResolution.getElementsByAttribute( "value", resolution )[0]; if (item != null) { screenResolution.selectedItem = item; userResolution.setAttribute("hidden", "true"); } else { var dpi = screenResolution.getAttribute( "dpi" ); userResolut...
setResolution( resolution );
function SetFields( aDataObject ) { languageData = aDataObject.languageData ? aDataObject.languageData : languageData ; currentLanguage = aDataObject.currentLanguage ? aDataObject.currentLanguage : null ; var lists = ["selectLangs", "proportionalFont"]; var prefvalue; for( var i = 0; i < lists.lengt...
if(element.id == "ProfileDir" && aValue != "") { chooseProfileFolder( aValue );
switch (element.id) { case "ProfileDir": if (aValue) chooseProfileFolder(aValue); break; case "ProfileName": element.value = aValue; break; case "ProfileLocale": document.getElementById("ProfileLocale").setAttribute("data", aValue); break;
function SetFields( aElement, aValue, aDataObject ){ element = document.getElementById( aElement ); if(element.id == "ProfileDir" && aValue != "") { chooseProfileFolder( aValue ); } else if(element.id == "ProfileName") element.value = aValue;}
else if(element.id == "ProfileName") element.value = aValue;
function SetFields( aElement, aValue, aDataObject ){ element = document.getElementById( aElement ); if(element.id == "ProfileDir" && aValue != "") { chooseProfileFolder( aValue ); } else if(element.id == "ProfileName") element.value = aValue;}
dump("wizardAdapter: SetFields(" + id + ", " + value + ")\n");
_dd("wizardAdapter: SetFields(" + id + ", " + value + ")\n");
function SetFields(id, value){ dump("wizardAdapter: SetFields(" + id + ", " + value + ")\n"); var field = document.getElementById(id); if (!field) { dump(" Unknown field with id " + id + "\n"); dump(" Trying to find it in the ispbox \n"); var ispBox = document.getElementById("ispBox"...
dump(" Unknown field with id " + id + "\n"); dump(" Trying to find it in the ispbox \n");
_dd(" Unknown field with id " + id + "\n"); _dd(" Trying to find it in the ispbox \n");
function SetFields(id, value){ dump("wizardAdapter: SetFields(" + id + ", " + value + ")\n"); var field = document.getElementById(id); if (!field) { dump(" Unknown field with id " + id + "\n"); dump(" Trying to find it in the ispbox \n"); var ispBox = document.getElementById("ispBox"...
dump("still couldn't find it!\n");
_dd("still couldn't find it!\n");
function SetFields(id, value){ dump("wizardAdapter: SetFields(" + id + ", " + value + ")\n"); var field = document.getElementById(id); if (!field) { dump(" Unknown field with id " + id + "\n"); dump(" Trying to find it in the ispbox \n"); var ispBox = document.getElementById("ispBox"...
dump(" SetFields(<" + field.tagName + ">);\n");
_dd(" SetFields(<" + field.tagName + ">);\n");
function SetFields(id, value){ dump("wizardAdapter: SetFields(" + id + ", " + value + ")\n"); var field = document.getElementById(id); if (!field) { dump(" Unknown field with id " + id + "\n"); dump(" Trying to find it in the ispbox \n"); var ispBox = document.getElementById("ispBox"...
field.setAttribute( propertyName, newValue );
function setFieldValue( elementId, newValue, propertyName ){ var undefined; if( newValue !== undefined ) { var field = document.getElementById( elementId ); if( propertyName ) { field[ propertyName ] = newValue; field.setAttribute( propertyName, newValue ); } els...
if( propertyName )
if( newValue === false )
function setFieldValue( elementId, newValue, propertyName ){ var undefined; if( newValue !== undefined ) { var field = document.getElementById( elementId ); if( propertyName ) { field[ propertyName ] = newValue; //field.setAttribute( propertyName, newValue ); } e...
field[ propertyName ] = newValue;
field.removeAttribute( propertyName );
function setFieldValue( elementId, newValue, propertyName ){ var undefined; if( newValue !== undefined ) { var field = document.getElementById( elementId ); if( propertyName ) { field[ propertyName ] = newValue; //field.setAttribute( propertyName, newValue ); } e...
field.value = newValue;
if( propertyName ) { field.setAttribute( propertyName, newValue ); } else { field.value = newValue; }
function setFieldValue( elementId, newValue, propertyName ){ var undefined; if( newValue !== undefined ) { var field = document.getElementById( elementId ); if( propertyName ) { field[ propertyName ] = newValue; //field.setAttribute( propertyName, newValue ); } e...
var undefined; if( newValue !== undefined ) { var field = document.getElementById( elementId ); if( newValue === false ) { try { field.removeAttribute( propertyName ); } catch (e) { dump("setFieldValue: field.removeAttribute couldn't remove "+propertyName+ " from "+elementId+" e: "+e+"\n"); } } else { if( propertyNam...
var undefined; if( newValue !== undefined ) { var field = document.getElementById( elementId ); if( newValue === false ) { try { field.removeAttribute( propertyName ); } catch (e) { dump("setFieldValue: field.removeAttribute couldn't remove "+propertyName+ " from "+elementId+" e: "+e+"\n"); } } else if( propertyName ...
function setFieldValue( elementId, newValue, propertyName ){ var undefined; if( newValue !== undefined ) { var field = document.getElementById( elementId ); if( newValue === false ) { try { field.removeAttribute( propertyName ); } catch (e) { dump(...
} } }
} }
function setFieldValue( elementId, newValue, propertyName ){ var undefined; if( newValue !== undefined ) { var field = document.getElementById( elementId ); if( newValue === false ) { try { field.removeAttribute( propertyName ); } catch (e) { dump(...
} else { selectAccountRadioElem.removeAttribute("disabled"); selectFolderRadioElem.removeAttribute("disabled"); accountPicker.removeAttribute("disabled"); folderPicker.removeAttribute("disabled");
function SetFolderDisplay(pickerMode, disableMode, radioElemPrefix, accountPickerId, folderPickedField, folderPickerId){ if (!pickerMode) pickerMode = gDefaultPickerMode; var selectAccountRadioId = radioE...
var radioElemId = radioElemPrefix + "_selectAccount"; var radioGroupElement = document.getElementById(radioElemId); radioGroupElement.setAttribute("checked", "true");
selectAccountRadioElem.setAttribute("checked", "true"); selectFolderRadioElem.setAttribute("checked", "false"); if (disableMode) { selectAccountRadioElem.setAttribute("disabled","true"); selectFolderRadioElem.setAttribute("disabled","true"); } else { selectAccountRadioElem.removeAttribute("disabled"); selectFolderRadio...
function SetFolderDisplay(pickerMode, disableMode, radioElemPrefix, accountPickerId, folderPickedField, folderPickerId){ if (!pickerMode) pickerMode = gDefaultPickerMode; switch (pickerMode) { ...
var radioElemId = radioElemPrefix + "_selectFolder"; var radioGroupElement = document.getElementById(radioElemId); radioGroupElement.setAttribute("checked", "true");
selectFolderRadioElem.setAttribute("checked", "true"); selectAccountRadioElem.setAttribute("checked", "false"); if (disableMode) { selectAccountRadioElem.setAttribute("disabled","true"); selectFolderRadioElem.setAttribute("disabled","true"); } else { selectAccountRadioElem.removeAttribute("disabled"); selectFolderRadi...
function SetFolderDisplay(pickerMode, disableMode, radioElemPrefix, accountPickerId, folderPickedField, folderPickerId){ if (!pickerMode) pickerMode = gDefaultPickerMode; switch (pickerMode) { ...
if (disableMode) { var radioId = radioElemPrefix + "_selectAccount"; var radioElement = document.getElementById(radioId); radioElement.setAttribute("disabled", "true"); radioId = radioElemPrefix + "_selectFolder"; radioElement = document.getElementById(radioId); radioElement.setAttribute("disabled", "true"); var picke...
function SetFolderDisplay(pickerMode, disableMode, radioElemPrefix, accountPickerId, folderPickedField, folderPickerId){ if (!pickerMode) pickerMode = gDefaultPickerMode; switch (pickerMode) { ...
formElement.value = localfile.unicodePath;
formElement.value = localfile.path;
function setFormElementValue(formElement, value) { //formElement.value = formElement.defaultValue; // formElement.checked = formElement.defaultChecked; var type = formElement.localName; if (type == "checkbox") { if (value == undefined) { if (formElement.defaultChecked) formElement.checked = formElem...
} else {
} else if (formElement.type == "text" && formElement.getAttribute("datatype") == "nsIFileSpec") { if (value) { var filespec = value.QueryInterface(Components.interfaces.nsIFileSpec); try { formElement.value = filespec.nativePath; } catch (ex) { dump("Still need to fix uninitialized filespec problem!\n"); } } else for...
function setFormElementValue(formElement, value) { if (formElement.type == "checkbox") { if (value == undefined) { formElement.checked = formElement.defaultChecked; } else { if (formElement.getAttribute("reversed")) formElement.checked = !value; else formElement.checked = value; }...
var dirService = Components.classes["@mozilla.org/directory_service;1"]
var dirService = Components.classes["@mozilla.org/file/directory_service;1"]
function setFromBuddyIcon(email){ var fromBuddyIcon = document.getElementById("fromBuddyIcon"); try { // better to cache this? var myScreenName = pref.getCharPref("aim.session.screenname"); var card = abAddressCollector.getCardFromAttribute("PrimaryEmail", email); if (myScreenName && card && card.ai...
dump("alignment ="+alignment+"\n");
function SetGlobalElementToCurrentDialogSettings(){ // src var str = dialog.srcInput.value.trimString(); globalElement.setAttribute("src", str); // alt str = dialog.altTextInput.value.trimString(); globalElement.setAttribute("alt", str); var alignment; //Note that the attributes "left" and "right" are opposite ...
if ( dialog.imagelrInput.value.length > 0 )
if ( dialog.imagelrInput.value )
function SetGlobalElementToCurrentDialogSettings(){ // src var str = dialog.srcInput.value.trimString(); globalElement.setAttribute("src", str); // alt str = dialog.altTextInput.value.trimString(); globalElement.setAttribute("alt", str); var alignment; //Note that the attributes "left" and "right" are opposite ...
if ( dialog.imagetbInput.value.length > 0 )
if ( dialog.imagetbInput.value )
function SetGlobalElementToCurrentDialogSettings(){ // src var str = dialog.srcInput.value.trimString(); globalElement.setAttribute("src", str); // alt str = dialog.altTextInput.value.trimString(); globalElement.setAttribute("alt", str); var alignment; //Note that the attributes "left" and "right" are opposite ...
if ( dialog.border.value.length > 0 )
if ( dialog.border.value )
function SetGlobalElementToCurrentDialogSettings(){ // src var str = dialog.srcInput.value.trimString(); globalElement.setAttribute("src", str); // alt str = dialog.altTextInput.value.trimString(); globalElement.setAttribute("alt", str); var alignment; //Note that the attributes "left" and "right" are opposite ...