rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
identity = msgService.currentIdentity;
identity = accountManager.currentIdentity;
function ComposeStartup(){ dump("Compose: ComposeStartup\n"); // Get arguments var args = GetArgs(); // fill in Identity combobox var identitySelect = document.getElementById("msgIdentity"); if (identitySelect) { fillIdentitySelect(identitySelect); } var identity; if (args.preselectid) i...
if (args.to) composeFields.to = args.to; if (args.cc) composeFields.cc = args.cc; if (args.bcc) composeFields.bcc = args.bcc; if (args.newsgroups) composeFields.newsgroups = args.newsgroups; if (args.subject) composeFields.subject = args.subject; if (args.attachment) composeFields.attachments = args.attachment; if (arg...
if (args.to) composeFields.to = args.to; if (args.cc) composeFields.cc = args.cc; if (args.bcc) composeFields.bcc = args.bcc; if (args.newsgroups) composeFields.newsgroups = args.newsgroups; if (args.subject) composeFields.subject = args.subject; if (args.attachment) { var attachmentList = args.attachment.split(","); v...
function ComposeStartup(){ var params = null; // New way to pass parameters to the compose window as a nsIMsgComposeParameters object var args = null; // old way, parameters are passed as a string if (window.arguments && window.arguments[0]) { try { params = window.arguments[0].QueryInterface(Components.in...
var attachmentValue = msgCompFields.attachments; if (attachmentValue != "") { var atts = attachmentValue.split(","); for (var i=0; i < atts.length; i++) AddAttachment(atts[i], null);
var attachments = msgCompFields.attachmentsArray; if (attachments) for (var i = 0; i < attachments.Count(); i ++) AddAttachment(attachments.QueryElementAt(i, Components.interfaces.nsIMsgAttachment));
function ComposeStartup(){ var params = null; // New way to pass parameters to the compose window as a nsIMsgComposeParameters object var args = null; // old way, parameters are passed as a string if (window.arguments && window.arguments[0]) { try { params = window.arguments[0].QueryInterface(Components.in...
}
function ComposeStartup(){ var params = null; // New way to pass parameters to the compose window as a nsIMsgComposeParameters object var args = null; // old way, parameters are passed as a string if (window.arguments && window.arguments[0]) { try { params = window.arguments[0].QueryInterface(Components.in...
if (gComposerCommandManager) gComposerCommandManager.unregisterCommand("cmd_preferences", nsPreferencesCommand);
function ComposeStartup(){ dump("Compose: ComposeStartup\n"); //dump("Get arguments\n"); var args = GetArgs(); //dump("fill in Identity menulist\n"); var identityList = document.getElementById("msgIdentity"); var identityListPopup = document.getElementById("msgIdentityPopup"); if (identityListPopup) { ...
window.editorShell.RegisterDocumentStateListener(editorDocumentListener);
function ComposeStartup(){ dump("Compose: ComposeStartup\n"); // Get arguments var args = GetArgs(); // fill in Identity combobox var identitySelect = document.getElementById("msgIdentity"); if (identitySelect) { fillIdentitySelect(identitySelect); // because of bug #14312, a default option was in the s...
msgCompose.RegisterStateListener(stateListener);
function ComposeStartup(){ dump("Compose: ComposeStartup\n"); // Get arguments var args = GetArgs(); // fill in Identity combobox var identitySelect = document.getElementById("msgIdentity"); if (identitySelect) { fillIdentitySelect(identitySelect); // because of bug #14312, a default option was in the s...
editorAppCore.loadUrl("resource:/res/mailnews/compose/msgcomposeBody.html");
function ComposeStartup(){ dump("Compose: StartUp\n"); var sessionID; var appCoreName; // Get arguments var args = GetArgs(); // Generate a unique number, do we have a better way? var date = new Date(); sessionID = date.getTime() + Math.random(); appCoreName = "EditorAppCore:" + sessionID; editorAppCore = XPAppCoresMan...
if (gComposerCommandManager) gComposerCommandManager.unregisterCommand("cmd_preferences", nsPreferencesCommand);
if (gHTMLEditorCommandManager) gHTMLEditorCommandManager.unregisterCommand("cmd_preferences", nsPreferencesCommand);
function ComposeStartup(){ dump("Compose: ComposeStartup\n"); //dump("Get arguments\n"); var args = GetArgs(); //dump("fill in Identity menulist\n"); var identityList = document.getElementById("msgIdentity"); var identityListPopup = document.getElementById("msgIdentityPopup"); if (identityListPopup) { ...
if (gAutoSaveTimeout) clearTimeout(gAutoSaveTimeout);
function ComposeUnload(){ dump("\nComposeUnload from XUL\n"); EditorCleanup(); RemoveMessageComposeOfflineObserver(); RemoveDirectoryServerObserver(null); if (gCurrentIdentity) RemoveDirectoryServerObserver("mail.identity." + gCurrentIdentity.key); if (gCurrentAutocompleteDirectory) RemoveDirectorySettingsO...
var bx = this.mOutliner.boxObject; this.mOlBox = bx.QueryInterface(Components.interfaces.nsIOutlinerBoxObject);
this.mOlBox = this.mOutliner.outlinerBoxObject;
function ComputedStyleViewer(){ this.mObsMan = new ObserverManager(this); this.mURL = window.location; this.mOutliner = document.getElementById("olStyles"); var bx = this.mOutliner.boxObject; this.mOlBox = bx.QueryInterface(Components.interfaces.nsIOutlinerBoxObject);}
if (currentFrame.isNative) return;
function con_fchanged (currentFrame, currentFrameIndex){ var stack = console.stackView.stack; if (currentFrame) { var frameRecord = stack.childData[currentFrameIndex]; var vr = frameRecord.calculateVisualRow(); console.stackView.selectedIndex = vr; console.stackView.scrollTo (vr...
if (e.line[0] == console.prefs["input.commandchar"]) { var ary = e.line.substr(1, e.line.length).match (/(\S+)? ?(.*)/); var command = ary[1];
var ary = e.line.match (/(\S+)? ?(.*)/); var command = ary[1];
function con_icline (e){ if (console._inputHistory[0] != e.line) console._inputHistory.unshift (e.line); if (console._inputHistory.length > console.prefs["input.history.max"]) console._inputHistory.pop(); console._lastHistoryReferenced = -1; console._incompleteLine = ""; if (e.line[0] =...
e.command = command; e.inputData = ary[2] ? stringTrim(ary[2]) : ""; e.line = e.line; console.onInputCommand (e); } else evalInDebuggerScope (e.line);
e.command = command; e.inputData = ary[2] ? stringTrim(ary[2]) : ""; e.line = e.line; console.onInputCommand (e);
function con_icline (e){ if (console._inputHistory[0] != e.line) console._inputHistory.unshift (e.line); if (console._inputHistory.length > console.prefs["input.history.max"]) console._inputHistory.pop(); console._lastHistoryReferenced = -1; console._incompleteLine = ""; if (e.line[0] =...
function con_iquit (e)
function con_iquit ()
function con_iquit (e){ window.close();}
function con_iscope (e)
function con_iscope ()
function con_iscope (e){ if (!console.frames) { display (MSG_ERR_NO_STACK, MT_ERROR); return false; } if (console.frames[console.currentFrameIndex].scope.propertyCount == 0) display (getMsg (MSN_NO_PROPERTIES, MSG_VAL_SCOPE + " 0")); else displayProperties (console.frames[...
display (getMsg (MSN_NO_PROPERTIES, MSG_VAL_SCOPE + " 0"));
display (getMsg (MSN_NO_PROPERTIES, MSG_WORD_SCOPE + " 0"));
function con_iscope (e){ if (!console.frames) { display (MSG_ERR_NO_STACK, MT_ERROR); return false; } if (console.frames[console.currentFrameIndex].scope.propertyCount == 0) display (getMsg (MSN_NO_PROPERTIES, MSG_VAL_SCOPE + " 0")); else displayProperties (console.frames[...
function con_iwhere (e)
function con_iwhere ()
function con_iwhere (e){ if (!console.frames) { display (MSG_ERR_NO_STACK, MT_ERROR); return false; } displayCallStack(); return true;}
console.sourceView.outliner.invalidate();
function con_ondc (){ /* XXX */}
if (sourceView.childData && sourceView.childData.isLoaded)
if ("childData" in sourceView && sourceView.childData.isLoaded)
function con_projsel (e){ var rowIndex = console.projectView.selectedIndex; if (rowIndex == -1 || rowIndex > console.projectView.rowCount) return; var row = console.projectView.childData.locateChildByVisualRow(rowIndex); if (!row) { ASSERT (0, "bogus row index " + rowIndex); ...
case 33: w = window.frames[0]; newOfs = w.pageYOffset - (w.innerHeight / 2); if (newOfs > 0) w.scrollTo (w.pageXOffset, newOfs); else w.scrollTo (w.pageXOffset, 0); break; case 34: w = window.frames[0]; newOfs = w.pageYOffset + (w.innerHeight / 2); if (newOfs < (w.innerHeight + w.pageYOffset)) w.scrollTo (w.pageXOff...
function con_slkeypress (e){ switch (e.keyCode) { case 13: if (!e.target.value) return; ev = new Object(); ev.keyEvent = e; ev.line = e.target.value; console.onInputCompleteLine (ev); e.target.value = ""; ...
dispatch ("find-frame", {frameIndex: row.childIndex});
dispatch ("frame", {frameIndex: row.childIndex});
function con_stacksel (e){ if (console.stackView.selectedIndex == -1) return; console.scriptsView.selectedIndex = -1; console.projectView.selectedIndex = -1; console.sourceView.selectedIndex = -1; var rowIndex = console.stackView.selectedIndex; if (rowIndex == -1 || rowIndex > console.stackVie...
var cmdchar = console.prefs["input.commandchar"];
function con_tabcomplete (e){ var selStart = e.target.selectionStart; var selEnd = e.target.selectionEnd; var v = e.target.value; var cmdchar = console.prefs["input.commandchar"]; if (selStart != selEnd) { /* text is highlighted, just move caret to end and exit */ ...
if ((v[0] == cmdchar) && (selStart <= firstSpace))
if ((selStart <= firstSpace))
function con_tabcomplete (e){ var selStart = e.target.selectionStart; var selEnd = e.target.selectionEnd; var v = e.target.value; var cmdchar = console.prefs["input.commandchar"]; if (selStart != selEnd) { /* text is highlighted, just move caret to end and exit */ ...
/* line starts with /, and the cursor is positioned before the * first space, so we're completing a command
/* The cursor is positioned before the first space, so we're completing * a command
function con_tabcomplete (e){ var selStart = e.target.selectionStart; var selEnd = e.target.selectionEnd; var v = e.target.value; var cmdchar = console.prefs["input.commandchar"]; if (selStart != selEnd) { /* text is highlighted, just move caret to end and exit */ ...
var partialCommand = v.substring(1, firstSpace).toLowerCase();
var partialCommand = v.substring(0, firstSpace).toLowerCase();
function con_tabcomplete (e){ var selStart = e.target.selectionStart; var selEnd = e.target.selectionEnd; var v = e.target.value; var cmdchar = console.prefs["input.commandchar"]; if (selStart != selEnd) { /* text is highlighted, just move caret to end and exit */ ...
pfx = cmdchar + cmds[0];
pfx = cmds[0];
function con_tabcomplete (e){ var selStart = e.target.selectionStart; var selEnd = e.target.selectionEnd; var v = e.target.value; var cmdchar = console.prefs["input.commandchar"]; if (selStart != selEnd) { /* text is highlighted, just move caret to end and exit */ ...
pfx = cmdchar + getCommonPfx(cmds);
pfx = getCommonPfx(cmds);
function con_tabcomplete (e){ var selStart = e.target.selectionStart; var selEnd = e.target.selectionEnd; var v = e.target.value; var cmdchar = console.prefs["input.commandchar"]; if (selStart != selEnd) { /* text is highlighted, just move caret to end and exit */ ...
document.getElementById("markAsReadOnSpam").disabled = false;
function conditionallyEnableUI(id){ if (!document.getElementById("level").checked) { document.getElementById("useWhiteList").disabled = true; document.getElementById("whiteListAbURI").disabled = true; document.getElementById("moveOnSpam").disabled = true; document.getElementById("moveTargetMode").disabled ...
document.getElementById("moveTargetMode0").disabled = true;
document.getElementById("moveTargetMode").disabled = true;
function conditionallyEnableUI(id){ if (!document.getElementById("level").checked) { document.getElementById("useWhiteList").disabled = true; document.getElementById("whiteListAbURI").disabled = true; document.getElementById("moveOnSpam").disabled = true; document.getElementById("moveTargetMode0").disabled...
document.getElementById("moveTargetMode1").disabled = true;
function conditionallyEnableUI(id){ if (!document.getElementById("level").checked) { document.getElementById("useWhiteList").disabled = true; document.getElementById("whiteListAbURI").disabled = true; document.getElementById("moveOnSpam").disabled = true; document.getElementById("moveTargetMode0").disabled...
var choice = document.getElementById("moveTargetMode").selectedItem.getAttribute("value");
var choice = document.getElementById("moveTargetMode").value;
function conditionallyEnableUI(id){ if (!document.getElementById("level").checked) { document.getElementById("useWhiteList").disabled = true; document.getElementById("whiteListAbURI").disabled = true; document.getElementById("moveOnSpam").disabled = true; document.getElementById("moveTargetMode0").disabled...
document.getElementById("moveTargetMode0").disabled = !enabled;
document.getElementById("moveTargetMode").disabled = !enabled;
function conditionallyEnableUI(id){ if (!document.getElementById("level").checked) { document.getElementById("useWhiteList").disabled = true; document.getElementById("whiteListAbURI").disabled = true; document.getElementById("moveOnSpam").disabled = true; document.getElementById("moveTargetMode0").disabled...
document.getElementById("moveTargetMode1").disabled = !enabled;
function conditionallyEnableUI(id){ if (!document.getElementById("level").checked) { document.getElementById("useWhiteList").disabled = true; document.getElementById("whiteListAbURI").disabled = true; document.getElementById("moveOnSpam").disabled = true; document.getElementById("moveTargetMode0").disabled...
if( selected.getAttribute("rowMigrate") == "no" ) {
if( selected.firstChild.firstChild.getAttribute("rowMigrate") == "no" ) {
function ConfirmDelete(){ deleteButton = document.getElementById("delbutton"); if( deleteButton.getAttribute("disabled") == "true" ) return; var profileTree = document.getElementById( "profiles" ); if( !profileTree.selectedItems.length ) { alert( bundle.GetStringFromName( "noneselecteddelete" ) ); return; ...
var path = profile.getProfilePath(name); dialogText = gProfileManagerBundle.getFormattedString("deleteprofile", [path]); dialogText = dialogText.replace(/\s*<html:br\/>/g,"\n"); var buttonPressed = {value:0} promptService.confirmEx(window, dialogTitle, dialogText, (promptService.BUTTON_TITLE_IS_STRING * promptService.B...
var pathExists = true; try { var path = profile.getProfilePath(name); } catch (ex) { pathExists = false; } if (pathExists) { dialogText = gProfileManagerBundle.getFormattedString("deleteprofile", [path]); dialogText = dialogText.replace(/\s*<html:br\/>/g,"\n"); var buttonPressed = {value:0} promptService.confirmEx(wind...
function ConfirmDelete(){ deleteButton = document.getElementById("delbutton"); if( deleteButton.getAttribute("disabled") == "true" ) return; var profileTree = document.getElementById( "profiles" ); var selected = profileTree.selectedItems[0]; var name = selected.getAttribute("rowName"); var dialogTitle = gPr...
"calendar.wcap.confirmedHttpLogins", "");
"calendar.wcap.confirmed_http_logins", "");
function confirmInsecureLogin( uri ){ if (g_confirmedHttpLogins == null) { g_confirmedHttpLogins = {}; var confirmedHttpLogins = getPref( "calendar.wcap.confirmedHttpLogins", ""); var tuples = confirmedHttpLogins.split(','); for each ( var tuple in tuples ) { var ar ...
setPref("calendar.wcap.confirmedHttpLogins", confirmedHttpLogins);
setPref("calendar.wcap.confirmed_http_logins", confirmedHttpLogins);
function confirmInsecureLogin( uri ){ if (g_confirmedHttpLogins == null) { g_confirmedHttpLogins = {}; var confirmedHttpLogins = getPref( "calendar.wcap.confirmedHttpLogins", ""); var tuples = confirmedHttpLogins.split(','); for each ( var tuple in tuples ) { var ar ...
if (token.checkPassword(""))
try { if (token.checkPassword("")) return AskUserShowPasswords(); } catch (ex) {
function ConfirmShowPasswords() { // This doesn't harm if passwords are not encrypted var tokendb = Components.classes["@mozilla.org/security/pk11tokendb;1"] .createInstance(Components.interfaces.nsIPK11TokenDB); var token = tokendb.getInternalKeyToken(); // If there is no master password, still ...
}
function ConfirmShowPasswords() { // This doesn't harm if passwords are not encrypted var tokendb = Components.classes["@mozilla.org/security/pk11tokendb;1"] .createInstance(Components.interfaces.nsIPK11TokenDB); var token = tokendb.getInternalKeyToken(); // If there is no master password, still ...
var promptService = nsJSComponentManager.getService("@mozilla.org/embedcomp/prompt-service;1", "nsIPromptService"); return promptService.Confirm(window, titleMsg, dialogMsg);
var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptService); return promptService.confirm(window, titleMsg, dialogMsg);
function ConfirmUnsubscribe(folder){ if (!gMessengerBundle) gMessengerBundle = document.getElementById("bundle_messenger"); var titleMsg = gMessengerBundle.getString("confirmUnsubscribeTitle"); var dialogMsg = gMessengerBundle.getFormattedString("confirmUnsubscribeText", ...
if (!actualWidth || !actualHeight || !(dialog.constrainCheckbox.checked && !dialog.constrainCheckbox.disabled)) return;
function constrainProportions( srcID, destID ){ // Return if we don't have proper data or checkbox isn't checked and enabled// if (!constrainWidth || !constrainHeight || if (!actualWidth || !actualHeight || !(dialog.constrainCheckbox.checked && !dialog.constrainCheckbox.disabled)) return; var srcElement =...
srcElement = document.getElementById ( srcID );
var srcElement = document.getElementById ( srcID );
function constrainProportions( srcID, destID ){ srcElement = document.getElementById ( srcID ); if ( !srcElement ) return; forceInteger( srcID ); // now find out if we should be constraining or not var constrainChecked = (dialog.constrainCheckbox.checked); constrainChecked = constrainChecked && !dialog.con...
destElement = document.getElementById( destID );
var destElement = document.getElementById( destID );
function constrainProportions( srcID, destID ){ srcElement = document.getElementById ( srcID ); if ( !srcElement ) return; forceInteger( srcID ); // now find out if we should be constraining or not var constrainChecked = (dialog.constrainCheckbox.checked); constrainChecked = constrainChecked && !dialog.con...
try { result = new Math(); } catch ( e ) { result = "passed: threw exception", exception = e.toString(); } finally { testcases[tc++] = new TestCase( SECTION, "new Math() [ exception is " + exception +" ]", "passed: threw exception", result ); } }
try { result = new Math(); } catch ( e ) { result = "passed: threw exception", exception = e.toString(); } finally { new TestCase( SECTION, "new Math() [ exception is " + exception +" ]", "passed: threw exception", result ); } }
function Construct_1() { result = "failed: no exception thrown"; exception = null; try { result = new Math(); } catch ( e ) { result = "passed: threw exception", exception = e.toString(); } finally { testcases[tc++] = new TestCase( ...
var child = treeCellChildren[i]; dump("Appended a " + child.localName + "\n");
function constructRow(treeCellChildren){ var treeitem = document.createElement("treeitem"); var row = document.createElement("treerow"); for (var i = 0; i<treeCellChildren.length; i++) { var treecell = document.createElement("treecell"); // it's ok to have empty cells if (treeCellChildren[...
event.preventBubble();
event.stopPropagation();
function contentAreaClick(event) { if (!event.isTrusted) { return true; } var isKeyPress = (event.type == "keypress"); var ceParams = hrefAndLinkNodeForClickEvent(event); if (ceParams) { var href = ceParams.href; if (isKeyPress) { openNewTabWith(href, true, event.shiftKey); ...
} else { var href; linkNode = target; while (linkNode) { if (linkNode.nodeType == Node.ELEMENT_NODE) { href = linkNode.getAttributeNS("http: break; } linkNode = linkNode.parentNode; } if (href && href != "") { href = makeURLAbsolute(target.baseURI,href); handleLinkClick(event, href); return true; }
function contentAreaClick(event) { var target = event.target; var linkNode; var local_name = target.localName; if (local_name) { local_name = local_name.toLowerCase(); } switch (local_name) { case "a": linkNode = target; break; case "area": if (target.href) ...
return false;
function contentAreaClick(event, fieldNormalClicks) { var target = event.target; var linkNode; var local_name = target.localName; if (local_name) { local_name = local_name.toLowerCase(); } switch (local_name) { case "a": case "area": case "link": if (target.hasAttribute("href")) ...
var isKeyPress = (event.type == "keypress");
var isKeyCommand = (event.type == "command");
function contentAreaClick(event) { if (!event.isTrusted || event.getPreventDefault()) { return true; } var isKeyPress = (event.type == "keypress"); var ceParams = hrefAndLinkNodeForClickEvent(event); if (ceParams) { var href = ceParams.href; if (isKeyPress) { openNewTabWith(href...
if (isKeyPress) {
if (isKeyCommand) {
function contentAreaClick(event) { if (!event.isTrusted || event.getPreventDefault()) { return true; } var isKeyPress = (event.type == "keypress"); var ceParams = hrefAndLinkNodeForClickEvent(event); if (ceParams) { var href = ceParams.href; if (isKeyPress) { openNewTabWith(href...
if (pref && !isKeyPress && event.button == 1 &&
if (pref && !isKeyCommand && event.button == 1 &&
function contentAreaClick(event) { if (!event.isTrusted || event.getPreventDefault()) { return true; } var isKeyPress = (event.type == "keypress"); var ceParams = hrefAndLinkNodeForClickEvent(event); if (ceParams) { var href = ceParams.href; if (isKeyPress) { openNewTabWith(href...
var focusedWindow = document.commandDispatcher.focusedWindow; if (isContentFrame(focusedWindow)) { gFocusedURL = Components.lookupMethod(focusedWindow, 'location').call(focusedWindow).href;
var focusedWindow = new XPCNativeWrapper(document.commandDispatcher.focusedWindow, "top", "document", "location"); if (focusedWindow.top == window.content) { gFocusedURL = focusedWindow.location.href;
function contentAreaFrameFocus(){ var focusedWindow = document.commandDispatcher.focusedWindow; if (isContentFrame(focusedWindow)) { gFocusedURL = Components.lookupMethod(focusedWindow, 'location').call(focusedWindow).href; gFocusedDocument = focusedWindow.document; }}
&& (!pref || !pref.getBoolPref("middlemouse.contentLoadURL"))) {
&& !isAutoscrollBlocker(event.originalTarget)) {
function contentAreaMouseDown(event) { if (event.button == 1 && (event.target != event.currentTarget) && !hrefAndLinkNodeForClickEvent(event) && (!pref || !pref.getBoolPref("middlemouse.contentLoadURL"))) { startScrolling(event); ignoreMouseEvents = true; return false; } return ...
ignoreMouseEvents = true;
function contentAreaMouseDown(event) { if (event.button == 1 && (event.target != event.currentTarget) && !hrefAndLinkNodeForClickEvent(event) && (!pref || !pref.getBoolPref("middlemouse.contentLoadURL"))) { startScrolling(event); ignoreMouseEvents = true; return false; } return ...
var ccalendar = getDisplayComposite(); ccalendar.modifyItem(newItem, null);
doTransaction('modify', newItem, newItem.parent, todoItem, null);
function contextChangePriority( event, Priority ){ var tree = document.getElementById( ToDoUnifinderTreeName ); if (tree.view.selection.count > 0) { var todoItem = tree.taskView.getCalendarTaskAtRow( tree.currentIndex ); if(todoItem) { var newItem = todoItem.clone().QueryInterface(Componen...
function contextChangePriority( event, Priority )
function contextChangePriority( Priority, event )
function contextChangePriority( event, Priority ){ var tree = document.getElementById( ToDoUnifinderTreeName ); if (tree.treeBoxObject.selection.count > 0) { var treeitem = tree.treeBoxObject.view.getItemAtIndex( tree.currentIndex ); if(treeitem) { var todoId = treeitem.getAttribute("toDoID...
var tree = document.getElementById( ToDoUnifinderTreeName );
function contextChangePriority( event, Priority ){ var tree = document.getElementById( ToDoUnifinderTreeName ); if (tree.treeBoxObject.selection.count > 0) { var treeitem = tree.treeBoxObject.view.getItemAtIndex( tree.currentIndex ); if(treeitem) { var todoId = treeitem.getAttribute("toDoID...
var ToDoItem = gICalLib.fetchTodo( todoId );
var ToDoItem = gICalLib.fetchToDo( todoId );
function contextChangePriority( event, Priority ){ var tree = document.getElementById( ToDoUnifinderTreeName ); if (tree.treeBoxObject.selection.count > 0) { var treeitem = tree.treeBoxObject.view.getItemAtIndex( tree.currentIndex ); if(treeitem) { var todoId = treeitem.getAttribute("toDoID...
var ccalendar = getDisplayComposite(); ccalendar.modifyItem(newItem, null);
doTransaction('modify', newItem, newItem.parent, todoItem, null);
function contextChangeProgress( event, Progress ){ var tree = document.getElementById( ToDoUnifinderTreeName ); if (tree.view.selection.count > 0) { var todoItem = tree.taskView.getCalendarTaskAtRow( tree.currentIndex ); if(todoItem) { var newItem = todoItem.clone().QueryInterface(Componen...
var deck = document.getElementById("stateDeck");
deck = document.getElementById("stateDeck");
function ContinueImport( info) { var isMail = info.importType == 'mail' ? true : false; var clear = true; if (info.importInterface) { if (!info.importInterface.ContinueImport()) { info.importSuccess = false; clearInterval( info.intervalState); if (info.progressWindow != null) { var deck = document.getElement...
mailName = mailName.QueryInterface( Components.interfaces.nsISupportsWString);
mailName = mailName.QueryInterface( Components.interfaces.nsISupportsString);
function ContinueImport( info) { var isMail = info.importType == 'mail' ? true : false; var clear = true; var deck; var pcnt; if (info.importInterface) { if (!info.importInterface.ContinueImport()) { info.importSuccess = false; clearInterval( info.intervalState); if (info.progressWindow != null) ...
dump("unsupported sort column: " + columnID + "\n"); sortKey = 0;
try { columnHandler = gDBView.getColumnHandler(columnID); gDBView.db.dBFolderInfo.setProperty('customSortCol', columnID); sortKey = nsMsgViewSortType.byCustom; } catch(err) { dump("unsupported sort column: " + columnID + " - no custom handler installed. (Error was: " + err + ")\n"); sortKey = 0; }
function ConvertColumnIDToSortType(columnID){ var sortKey; switch (columnID) { case "dateCol": sortKey = nsMsgViewSortType.byDate; break; case "senderCol": sortKey = nsMsgViewSortType.byAuthor; break; case "recipientCol": sortKey = nsMsgViewSortType.byRecipient; break; case "su...
dump("unsupported sort: " + columnID + "\n");
dump("unsupported sort column: " + columnID + "\n");
function ConvertColumnIDToSortType(columnID){ var sortKey; switch (columnID) { case "dateCol": sortKey = nsMsgViewSortType.byDate; break; case "senderCol": sortKey = nsMsgViewSortType.byAuthor; break; case "subjectCol": sortKey = nsMsgViewSortType.bySubject; break; case "unre...
case "senderOrRecipientCol": if (IsSpecialFolderSelected(MSG_FOLDER_FLAG_SENTMAIL | MSG_FOLDER_FLAG_DRAFTS | MSG_FOLDER_FLAG_QUEUE)) { sortKey = nsMsgViewSortType.byRecipient; } else { sortKey = nsMsgViewSortType.byAuthor; }
case "senderCol": sortKey = nsMsgViewSortType.byAuthor; break; case "recipientCol": sortKey = nsMsgViewSortType.byRecipient;
function ConvertColumnIDToSortType(columnID){ var sortKey; switch (columnID) { case "dateCol": sortKey = nsMsgViewSortType.byDate; break; case "senderOrRecipientCol": if (IsSpecialFolderSelected(MSG_FOLDER_FLAG_SENTMAIL | MSG_FOLDER_FLAG_DRAFTS | MSG_FOLDER_FLAG_QUEUE)) { sortKey = nsMsgVie...
var dateStr = time.getMonth() + 1; dateStr += "/"; dateStr += time.getDate(); dateStr += "/"; dateStr += 1900 + time.getYear();
var year, month, date; initializeSearchDateFormat(); year = 1900 + time.getYear(); month = time.getMonth() + 1; date = time.getDate(); var dateStr; var sep = gSearchDateSeparator; switch (gSearchDateFormat) { case 1: dateStr = year + sep + month + sep + date; break; case 2: dateStr = year + sep + date + sep + month;...
function convertDateToString(time){ var dateStr = time.getMonth() + 1; dateStr += "/"; dateStr += time.getDate(); dateStr += "/"; dateStr += 1900 + time.getYear(); return dateStr;}
language = gLangBundle.getString(tokens[0]);
language = gLangBundle.getString(tokens[0].toLowerCase());
function convertLanguageCode(abbr){ if (!abbr) return ""; var result; var language = ""; var region; var is_region_set = false; var tokens = abbr.split("-"); if (tokens[0] === "x" || tokens[0] === "i") { // x and i prefixes mean unofficial ones. So we upper-case the first // word and leave the rest. to...
var zuluEndTime = calendarEvent.end.getTime();
function convertLocalToZulu( calendarEvent ){ var zuluStartTime = calendarEvent.start.getTime(); var zuluEndTime = calendarEvent.end.getTime(); calendarEvent.start.setTime( zuluStartTime + ZULU_OFFSET_MILLIS ); calendarEvent.end.setTime( zuluEndTime + ZULU_OFFSET_MILLIS );}
calendarEvent.end.utc = true; }
function convertLocalToZulu( calendarEvent ){ var zuluStartTime = calendarEvent.start.getTime(); var zuluEndTime = calendarEvent.end.getTime(); calendarEvent.start.setTime( zuluStartTime + ZULU_OFFSET_MILLIS ); calendarEvent.end.setTime( zuluEndTime + ZULU_OFFSET_MILLIS );}
case nsMsgViewSortType.byCustom: try { columnID = gDBView.db.dBFolderInfo.getProperty('customSortCol'); } catch (err) { dump("ConvertSortTypeToColumnID: custom sort key but no handler for column '" + columnID + "'\n"); columnID = "dateCol"; } break;
function ConvertSortTypeToColumnID(sortKey){ var columnID; // hack to turn this into an integer, if it was a string // it would be a string if it came from localStore.rdf sortKey = sortKey - 0; switch (sortKey) { case nsMsgViewSortType.byDate: columnID = "dateCol"; break; case nsMsgViewSortType.byA...
dump("unsupported sort: " + sortKey + "\n");
dump("unsupported sort key: " + sortKey + "\n");
function ConvertSortTypeToColumnID(sortKey){ var columnID; // hack to turn this into an integer, if it was a string; sortKey = sortKey - 0; switch (sortKey) { case nsMsgViewSortType.byDate: columnID = "dateCol"; break; case nsMsgViewSortType.byAuthor: columnID = "senderCol"; break; case...
columnID = "senderOrRecipientCol";
columnID = "recipientCol";
function ConvertSortTypeToColumnID(sortKey){ var columnID; // hack to turn this into an integer, if it was a string // it would be a string if it came from localStore.rdf sortKey = sortKey - 0; switch (sortKey) { case nsMsgViewSortType.byDate: columnID = "dateCol"; break; case nsMsgViewSortType.byA...
case nsMsgViewSortType.byId: columnID = null; break;
function ConvertSortTypeToColumnID(sortKey){ var columnID; // hack to turn this into an integer, if it was a string; sortKey = sortKey - 0; switch (sortKey) { case nsMsgViewSortType.byDate: columnID = "dateCol"; break; case nsMsgViewSortType.byAuthor: columnID = "senderCol"; break; case...
time.setTime(Date.parse(str));
time.setSeconds(0); time.setMinutes(0); time.setHours(0); time.setDate(date); time.setMonth(month); time.setYear(year);
function convertStringToPRTime(str){ var time = new Date(); time.setTime(Date.parse(str)); // Javascript time is in seconds, PRTime is in microseconds // so multiply by 1000 when converting return (time.getTime() * 1000);}
return ReplaceWhitespace(string,"_").replace(/[^a-zA-Z0-9_\.\-\:]+/g,'');
return string.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_\.\-\:]+/g,'');
function ConvertToCDATAString(string){ return ReplaceWhitespace(string,"_").replace(/[^a-zA-Z0-9_\.\-\:]+/g,'');}
var zuluEndTime = calendarEvent.end.getTime();
function convertZuluToLocal( calendarEvent ){ var zuluStartTime = calendarEvent.start.getTime(); var zuluEndTime = calendarEvent.end.getTime(); calendarEvent.start.setTime( zuluStartTime - ZULU_OFFSET_MILLIS ); calendarEvent.end.setTime( zuluEndTime - ZULU_OFFSET_MILLIS );}
calendarEvent.end.utc = false; }
function convertZuluToLocal( calendarEvent ){ var zuluStartTime = calendarEvent.start.getTime(); var zuluEndTime = calendarEvent.end.getTime(); calendarEvent.start.setTime( zuluStartTime - ZULU_OFFSET_MILLIS ); calendarEvent.end.setTime( zuluEndTime - ZULU_OFFSET_MILLIS );}
this.status = status;
this.status = GetStatusString(status);
function Cookie(number,name,value,isDomain,host,rawHost,path,isSecure,expires, status,policy) { this.number = number; this.name = name; this.value = value; this.isDomain = isDomain; this.host = host; this.rawHost = rawHost; this.path = path; this.isSecure = isSecure; this.expires = expires; thi...
function Cookie(number,name,value,isDomain,host,rawHost,path,isSecure,expires) {
function Cookie(number,name,value,isDomain,host,rawHost,path,isSecure,expires, status,policy) {
function Cookie(number,name,value,isDomain,host,rawHost,path,isSecure,expires) { this.number = number; this.name = name; this.value = value; this.isDomain = isDomain; this.host = host; this.rawHost = rawHost; this.path = path; this.isSecure = isSecure; this.expires = expires;}
this.status = status; this.policy = policy;
function Cookie(number,name,value,isDomain,host,rawHost,path,isSecure,expires) { this.number = number; this.name = name; this.value = value; this.isDomain = isDomain; this.host = host; this.rawHost = rawHost; this.path = path; this.isSecure = isSecure; this.expires = expires;}
params.SetInt(nsICookieAcceptDialog.ACCEPT_COOKIE, 1);
params.SetInt(nsICookieAcceptDialog.ACCEPT_COOKIE, 1); window.close();
function cookieAccept(){ params.SetInt(nsICookieAcceptDialog.ACCEPT_COOKIE, 1); // say that ok was pressed}
return;
return true;
function CookieSelected() { var selections = GetOutlinerSelections(cookiesOutliner); if (selections.length) { document.getElementById("removeCookie").removeAttribute("disabled"); } else { ClearCookieProperties(); return; } var idx = selections[0]; var props = [ {id: "ifl_name", value: cookies[idx]...
{id: "ifl_expires", value: GetExpiresString(cookies[idx].expires)}
{id: "ifl_expires", value: GetExpiresString(cookies[idx].expires)}, {id: "ifl_policy", value: GetPolicyString(cookies[idx].policy)}
function CookieSelected() { var selections = GetOutlinerSelections(cookiesOutliner); if (selections.length) { document.getElementById("removeCookie").removeAttribute("disabled"); } else { ClearCookieProperties(); return true; } var idx = selections[0]; var props = [ {id: "ifl_name", value: cookies...
var pcString = placeString = mozURLString = htmlString = unicodeString = "";
var pcString = psString = placeString = mozURLString = htmlString = unicodeString = "";
copy: function() { var nodes = this._activeView.getCopyableSelection(); var xferable = Cc["@mozilla.org/widget/transferable;1"]. createInstance(Ci.nsITransferable); var foundFolder = false, foundLink = false; var pcString = placeString = mozURLString = htmlString = unicodeString = ""; ...
if (pcString || placeString || unicodeString || htmlString ||
if (pcString || psString || placeString || unicodeString || htmlString ||
copy: function() { var nodes = this._activeView.getCopyableSelection(); var xferable = Cc["@mozilla.org/widget/transferable;1"]. createInstance(Ci.nsITransferable); var foundFolder = false, foundLink = false; var pcString = placeString = mozURLString = htmlString = unicodeString = ""; ...
sBookmarkItem += "\n\n\n\n\n\n";
sBookmarkItem += "\n\n\n\n\n\n\n\n\n";
copyBookmark: function (aSelection) { const kSuppArrayContractID = "@mozilla.org/supports-array;1"; const kSuppArrayIID = Components.interfaces.nsISupportsArray; var itemArray = Components.classes[kSuppArrayContractID].createInstance(kSuppArrayIID); const kSuppWStringContractID = "@mozilla.org/supports-s...
var characterSet = Components.lookupMethod(this.target.ownerDocument, "characterSet") .call(this.target.ownerDocument);
var ownerDocument = new XPCNativeWrapper(this.target, "ownerDocument").ownerDocument; var characterSet = new XPCNativeWrapper(ownerDocument, "characterSet").characterSet;
copyEmail : function () { // Copy the comma-separated list of email addresses only. // There are other ways of embedding email addresses in a mailto: // link, but such complex parsing is beyond us. var url = this.linkURL(); var qmark = url.indexOf( "?" ); var addresses; ...
if ( qmark > mailtolength ) addresses = url.substring( mailtolength, qmark );
if ( qmark > kMailToLength ) addresses = url.substring( kMailToLength, qmark );
copyEmail : function () { // Copy the comma-separated list of email addresses only. // There are other ways of embedding email addresses in a mailto: // link, but such complex parsing is beyond us. var url = this.linkURL(); var qmark = url.indexOf( "?" ); var addresses; ...
addresses = url.substr( mailtolength );
addresses = url.substr( kMailToLength );
copyEmail : function () { // Copy the comma-separated list of email addresses only. // There are other ways of embedding email addresses in a mailto: // link, but such complex parsing is beyond us. var url = this.linkURL(); var qmark = url.indexOf( "?" ); var addresses; ...
var url = this.linkURL();
var url = this.linkURL;
copyEmail : function () { // Copy the comma-separated list of email addresses only. // There are other ways of embedding email addresses in a mailto: // link, but such complex parsing is beyond us. var url = this.linkURL(); var qmark = url.indexOf( "?" ); var addresses; ...
dump("Error copying the " +
_dd("Error copying the " +
function copyObjectToInterface(dest, src) { if (!dest) return; if (!src) return; var i; for (i in src) { try { if (dest[i] != src[i]) dest[i] = src[i]; } catch (ex) { dump("Error copying the " + i + " attribute: " + ex + "\n"); ...
dump("(This is ok if this is a ServerType-* attribute)\n");
_dd("(This is ok if this is a ServerType-* attribute)\n");
function copyObjectToInterface(dest, src) { if (!dest) return; if (!src) return; var i; for (i in src) { try { if (dest[i] != src[i]) dest[i] = src[i]; } catch (ex) { dump("Error copying the " + i + " attribute: " + ex + "\n"); ...
this.mClipboardHelper.writeStringToClipboard(text, kGlobalClipboard);
this.mClipboardHelper.copyString(text);
copySearchItemLine: function() { var mod = this.mSearchService.currentModule; var idx = this.mSearchService.getSelectedIndex(0); var text = mod.getItemText(idx); this.mClipboardHelper.writeStringToClipboard(text, kGlobalClipboard); },
const kSuppWStringContractID = "@mozilla.org/supports-wstring;1"; const kSuppWStringIID = Components.interfaces.nsISupportsWString;
const kSuppWStringContractID = "@mozilla.org/supports-string;1"; const kSuppWStringIID = Components.interfaces.nsISupportsString;
copySelection: function (aSelection) { const kSuppArrayContractID = "@mozilla.org/supports-array;1"; const kSuppArrayIID = Components.interfaces.nsISupportsArray; var itemArray = Components.classes[kSuppArrayContractID].createInstance(kSuppArrayIID); const kSuppWStringContractID = "@mozilla.org/supports-...
debug("# of Nodes selected: " + select_list.length + "\n\n");
debug("# of Nodes selected: " + select_list.length + "\n");
function copySelectionToClipboard(){ var treeNode = document.getElementById("bookmarksTree"); if (!treeNode) return(false); var select_list = treeNode.selectedItems; if (!select_list) return(false); if (select_list.length < 1) return(false); debug("# of Nodes selected: " + select_list.length + "\n\n"); var RDF = ...
debug("Node " + nodeIndex + ": " + ID + " name: " + theName + "\n");
debug("Node " + nodeIndex + ": " + ID + " name: " + theName);
function copySelectionToClipboard(){ var treeNode = document.getElementById("bookmarksTree"); if (!treeNode) return(false); var select_list = treeNode.selectedItems; if (!select_list) return(false); if (select_list.length < 1) return(false); debug("# of Nodes selected: " + select_list.length + "\n\n"); var RDF = ...
debug("Copy URL: " + url + "\n\n");
debug("Copy URL: " + url);
function copySelectionToClipboard(){ var treeNode = document.getElementById("bookmarksTree"); if (!treeNode) return(false); var select_list = treeNode.selectedItems; if (!select_list) return(false); if (select_list.length < 1) return(false); debug("# of Nodes selected: " + select_list.length + "\n\n"); var RDF = ...
dd ("result radio is " + i);
function copyToBreakpoint(){ breakpoint.conditionEnabled = dialog["condition-checkbox"].checked; if ("scriptWrapper" in breakpoint) { breakpoint.oneTime = dialog["onetime-checkbox"].checked; breakpoint.triggerCount = dialog["trigger-textbox"].value; } breakpoint.enabled = dialog["enabled-ch...
else dd ("not at index " + i);
function copyToBreakpoint(){ breakpoint.conditionEnabled = dialog["condition-checkbox"].checked; if ("scriptWrapper" in breakpoint) { breakpoint.oneTime = dialog["onetime-checkbox"].checked; breakpoint.triggerCount = dialog["trigger-textbox"].value; } breakpoint.enabled = dialog["enabled-ch...
var clipboard = getServiceById( "{8B5314BA-DB01-11d2-96CE-0060B0FB9956}", "nsIClipboard" );
var clipboard = Components .classes["component: .getService ( Components.interfaces.nsIClipboard );
copyToClipboard : function ( text ) { // Get clipboard. var clipboard = getServiceById( "{8B5314BA-DB01-11d2-96CE-0060B0FB9956}", "nsIClipboard" ); // Create tranferable that will transfer the text. var transferable = createInstanceById( "{8B5314BC-...