rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
var repeatMenu = document.getElementById( "repeat-length-units" ); var weekExtensions = document.getElementById( "repeat-extenstions-week" ); var monthExtensions = document.getElementById( "repeat-extenstions-month" );
var repeatMenu = document.getElementById( "repeat-length-units" );
function updateRepeatUnitExtensions( ){ var repeatMenu = document.getElementById( "repeat-length-units" ); var weekExtensions = document.getElementById( "repeat-extenstions-week" ); var monthExtensions = document.getElementById( "repeat-extenstions-month" ); //FIX ME! WHEN THE WINDOW LOADS, THIS DOESN'T EXIST ...
if( repeatMenu.selectedItem ) { switch( repeatMenu.selectedItem.value ) { case "days": weekExtensions.setAttribute( "collapsed", "true" ); monthExtensions.setAttribute( "collapsed", "true" ); break; case "weeks": weekExtensions.removeAttribute( "collapsed" ); monthExtensions.setAttribute( "collapsed", "true" ); update...
if( repeatMenu.selectedItem ) { switch( repeatMenu.selectedItem.value ) { case "days": hideElement("repeat-extensions-week"); hideElement("repeat-extensions-month"); break; case "weeks": showElement("repeat-extensions-week"); hideElement("repeat-extensions-month"); updateAdvancedWeekRepeat(); break; case "months": hide...
function updateRepeatUnitExtensions( ){ var repeatMenu = document.getElementById( "repeat-length-units" ); var weekExtensions = document.getElementById( "repeat-extenstions-week" ); var monthExtensions = document.getElementById( "repeat-extenstions-month" ); //FIX ME! WHEN THE WINDOW LOADS, THIS DOESN'T EXIST ...
sizeToContent();
function updateRepeatUnitExtensions( ){ var repeatMenu = document.getElementById( "repeat-length-units" ); var weekExtensions = document.getElementById( "repeat-extenstions-week" ); var monthExtensions = document.getElementById( "repeat-extenstions-month" ); //FIX ME! WHEN THE WINDOW LOADS, THIS DOESN'T EXIST ...
}
} sizeToContent();
function updateRepeatUnitExtensions( ){ var repeatMenu = document.getElementById( "repeat-length-units" ); var weekExtensions = document.getElementById( "repeat-extenstions-week" ); var monthExtensions = document.getElementById( "repeat-extenstions-month" ); //FIX ME! WHEN THE WINDOW LOADS, THIS DOESN'T EXIST ...
dump("updating button\n"); } else { dump("could not find button\n");
function UpdateSaveButton(modified){ var saveButton = document.getElementById("saveButton"); if (saveButton) { if (modified) { saveButton.setAttribute("src", "chrome://editor/skin/images/ED_SaveMod.gif"); } else { saveButton.setAttribute("src", "chrome://editor/skin/images/ED_SaveFile.gif"); } ...
for (var i=0; i<gSearchTerms.length; i++) {
for (var i=0; i<gSearchTerms.length; i++)
function updateSearchAttributes(){ for (var i=0; i<gSearchTerms.length; i++) { gSearchTerms[i].obj.searchattribute.refreshList(); }}
}
function updateSearchAttributes(){ for (var i=0; i<gSearchTerms.length; i++) { gSearchTerms[i].obj.searchattribute.refreshList(); }}
dump("id = " + selectedItem.id + "\n");
function updateSearchFolderPicker() { var selectedItem = gFolderPicker.selectedItem; if (selectedItem.localName != "menuitem") return; dump("id = " + selectedItem.id + "\n"); SetFolderPicker(selectedItem.id, gFolderPicker.id); // use the URI to get the real folder gCurrentFolder = RDF.GetResour...
function UpdateSettings() {
function UpdateSettings(selectName) {
function UpdateSettings() { var oldUserLevel = window.userLevel; window.userLevel = document.xmltform1.level.options[document.xmltform1.level.selectedIndex].value; var oldShowIcons = window.showIcons; window.showIcons = document.xmltform1.icons.options[document.xmltform1.icons.selectedIndex].value; window.windowsM...
var oldUserLevel = window.userLevel; window.userLevel = document.xmltform1.level.options[document.xmltform1.level.selectedIndex].value;
dump("UpdateSettings: "+selectName+"\n");
function UpdateSettings() { var oldUserLevel = window.userLevel; window.userLevel = document.xmltform1.level.options[document.xmltform1.level.selectedIndex].value; var oldShowIcons = window.showIcons; window.showIcons = document.xmltform1.icons.options[document.xmltform1.icons.selectedIndex].value; window.windowsM...
var oldShowIcons = window.showIcons; window.showIcons = document.xmltform1.icons.options[document.xmltform1.icons.selectedIndex].value;
switch(selectName) { case "level": var oldUserLevel = window.userLevel; window.userLevel = document.xmltform1.level.options[document.xmltform1.level.selectedIndex].value;
function UpdateSettings() { var oldUserLevel = window.userLevel; window.userLevel = document.xmltform1.level.options[document.xmltform1.level.selectedIndex].value; var oldShowIcons = window.showIcons; window.showIcons = document.xmltform1.icons.options[document.xmltform1.icons.selectedIndex].value; window.windowsM...
window.windowsMode = document.xmltform1.windows.options[document.xmltform1.windows.selectedIndex].value;
if (window.userLevel != oldUserLevel) { dump("UpdateSettings: userLevel="+window.userLevel+"\n");
function UpdateSettings() { var oldUserLevel = window.userLevel; window.userLevel = document.xmltform1.level.options[document.xmltform1.level.selectedIndex].value; var oldShowIcons = window.showIcons; window.showIcons = document.xmltform1.icons.options[document.xmltform1.icons.selectedIndex].value; window.windowsM...
dump("UpdateSettings: userLevel="+window.userLevel+"\n"); dump("UpdateSettings: windowsMode="+window.windowsMode+"\n"); dump("UpdateSettings: showIcons="+window.showIcons+"\n");
if (window.userLevel == "advanced") { AlterStyle("DIV.beginner", "display", "none"); AlterStyle("DIV.intermediate", "display", "none"); } else if (window.userLevel == "intermediate") { AlterStyle("DIV.intermediate", "display", "block"); AlterStyle("DIV.beginner", "display", "none"); } else { AlterStyle("DIV.b...
function UpdateSettings() { var oldUserLevel = window.userLevel; window.userLevel = document.xmltform1.level.options[document.xmltform1.level.selectedIndex].value; var oldShowIcons = window.showIcons; window.showIcons = document.xmltform1.icons.options[document.xmltform1.icons.selectedIndex].value; window.windowsM...
if (window.userLevel != oldUserLevel) {
case "icons": var oldShowIcons = window.showIcons; window.showIcons = document.xmltform1.icons.options[document.xmltform1.icons.selectedIndex].value;
function UpdateSettings() { var oldUserLevel = window.userLevel; window.userLevel = document.xmltform1.level.options[document.xmltform1.level.selectedIndex].value; var oldShowIcons = window.showIcons; window.showIcons = document.xmltform1.icons.options[document.xmltform1.icons.selectedIndex].value; window.windowsM...
if (window.userLevel == "advanced") { AlterStyle("DIV.beginner", "display", "none"); AlterStyle("DIV.intermediate", "display", "none");
if (window.showIcons != oldShowIcons) { dump("UpdateSettings: showIcons="+window.showIcons+"\n"); if (window.showIcons == "on") { AlterStyle("SPAN.noicons", "display", "none"); AlterStyle("SPAN.icons", "display", "inline"); AlterStyle("IMG.icons", "display", "inline"); AlterStyle("TR.icons", "display", "table...
function UpdateSettings() { var oldUserLevel = window.userLevel; window.userLevel = document.xmltform1.level.options[document.xmltform1.level.selectedIndex].value; var oldShowIcons = window.showIcons; window.showIcons = document.xmltform1.icons.options[document.xmltform1.icons.selectedIndex].value; window.windowsM...
} else if (window.userLevel == "intermediate") { AlterStyle("DIV.intermediate", "display", "block"); AlterStyle("DIV.beginner", "display", "none");
} else { AlterStyle("SPAN.noicons", "display", "inline"); AlterStyle("SPAN.icons", "display", "none"); AlterStyle("IMG.icons", "display", "none"); AlterStyle("TR.icons", "display", "none"); } } break;
function UpdateSettings() { var oldUserLevel = window.userLevel; window.userLevel = document.xmltform1.level.options[document.xmltform1.level.selectedIndex].value; var oldShowIcons = window.showIcons; window.showIcons = document.xmltform1.icons.options[document.xmltform1.icons.selectedIndex].value; window.windowsM...
} else { AlterStyle("DIV.beginner", "display", "block"); AlterStyle("DIV.intermediate", "display", "block"); } }
case "windows": window.windowsMode = document.xmltform1.windows.options[document.xmltform1.windows.selectedIndex].value; dump("UpdateSettings: windowsMode="+window.windowsMode+"\n"); break;
function UpdateSettings() { var oldUserLevel = window.userLevel; window.userLevel = document.xmltform1.level.options[document.xmltform1.level.selectedIndex].value; var oldShowIcons = window.showIcons; window.showIcons = document.xmltform1.icons.options[document.xmltform1.icons.selectedIndex].value; window.windowsM...
if (window.showIcons != oldShowIcons) {
default: dump("UpdateSettings: Unknown selectName "+selectName+"\n"); break; }
function UpdateSettings() { var oldUserLevel = window.userLevel; window.userLevel = document.xmltform1.level.options[document.xmltform1.level.selectedIndex].value; var oldShowIcons = window.showIcons; window.showIcons = document.xmltform1.icons.options[document.xmltform1.icons.selectedIndex].value; window.windowsM...
if (window.showIcons == "on") { AlterStyle("SPAN.noicons", "display", "none"); AlterStyle("SPAN.icons", "display", "inline"); AlterStyle("IMG.icons", "display", "inline"); AlterStyle("TR.icons", "display", "table-row"); } else { AlterStyle("SPAN.noicons", "display", "inline"); AlterStyle("SPAN.icons", "disp...
return false;
function UpdateSettings() { var oldUserLevel = window.userLevel; window.userLevel = document.xmltform1.level.options[document.xmltform1.level.selectedIndex].value; var oldShowIcons = window.showIcons; window.showIcons = document.xmltform1.icons.options[document.xmltform1.icons.selectedIndex].value; window.windowsM...
var primary = (gDBView.viewFlags & nsMsgViewFlagsType.kThreadedDisplay) && gDBView.supportsThreading; currCol.setAttribute("primary", primary);
if (GetDBView().viewFlags & nsMsgViewFlagsType.kThreadedDisplay) { threadCol.setAttribute("sortDirection", "ascending"); currCol.setAttribute("primary", "true"); } else { threadCol.removeAttribute("sortDirection"); currCol.removeAttribute("primary"); }
function UpdateSortIndicators(sortType, sortOrder){ // show the twisties if the view is threaded var currCol = document.getElementById("subjectCol"); var primary = (gDBView.viewFlags & nsMsgViewFlagsType.kThreadedDisplay) && gDBView.supportsThreading; currCol.setAttribute("primary", primary); // remove the sort in...
currCol = document.getElementById("threadCol");
function UpdateSortIndicators(sortType, sortOrder){ // show the twisties if the view is threaded var currCol = document.getElementById("subjectCol"); var primary = (gDBView.viewFlags & nsMsgViewFlagsType.kThreadedDisplay) && gDBView.supportsThreading; currCol.setAttribute("primary", primary); // remove the sort in...
if (sortedColumn != "threadCol") { currCol = document.getElementById("threadCol"); if (currCol) { if (gDBView.viewFlags & nsMsgViewFlagsType.kThreadedDisplay) currCol.setAttribute("sortDirection", "ascending"); else currCol.removeAttribute("sortDirection"); } }
function UpdateSortIndicators(sortType, sortOrder){ // show the twisties if the view is threaded var currCol = document.getElementById("subjectCol"); var primary = (gDBView.viewFlags & nsMsgViewFlagsType.kThreadedDisplay) && gDBView.supportsThreading; currCol.setAttribute("primary", primary); // remove the sort in...
gOldPrevColumn = currCol._previousVisibleColumn;
function UpdateSortIndicators(sortType, sortOrder){ // show the twisties if the view is threaded var threadCol = document.getElementById("threadCol"); var currCol; var sortedColumn; // set the sort indicator on the column we are sorted by var colID = ConvertSortTypeToColumnID(sortType); if (colID) sortedColum...
viewDebug("gOldPrevColumn = " + gOldPrevColumn + "\n"); if (currCol && subjectCol) threadTree._reorderColumn(currCol, subjectCol, true); gGroupColumn = currCol;
if (groupedBySortUsingDummyRow()) { currCol.removeAttribute("primary"); subjectCol.setAttribute("primary", "true"); }
function UpdateSortIndicators(sortType, sortOrder){ // show the twisties if the view is threaded var threadCol = document.getElementById("threadCol"); var currCol; var sortedColumn; // set the sort indicator on the column we are sorted by var colID = ConvertSortTypeToColumnID(sortType); if (colID) sortedColum...
if (gGroupColumn && !(gDBView.viewFlags & nsMsgViewFlagsType.kGroupBySort)) {
if (!(gDBView.viewFlags & nsMsgViewFlagsType.kGroupBySort))
function UpdateSortIndicators(sortType, sortOrder){ // show the twisties if the view is threaded var threadCol = document.getElementById("threadCol"); var currCol; var sortedColumn; // set the sort indicator on the column we are sorted by var colID = ConvertSortTypeToColumnID(sortType); if (colID) sortedColum...
if (gGroupColumn != currCol) gGroupColumn.removeAttribute("primary"); if (gOldPrevColumn) { var threadTree = GetThreadTree(); threadTree._reorderColumn(gGroupColumn, gOldPrevColumn, false); } gGroupColumn = null; } if (GetDBView().viewFlags & nsMsgViewFlagsType.kThreadedDisplay) {
if ((GetDBView().viewFlags & nsMsgViewFlagsType.kThreadedDisplay) && !groupedBySortUsingDummyRow()) {
function UpdateSortIndicators(sortType, sortOrder){ // show the twisties if the view is threaded var threadCol = document.getElementById("threadCol"); var currCol; var sortedColumn; // set the sort indicator on the column we are sorted by var colID = ConvertSortTypeToColumnID(sortType); if (colID) sortedColum...
if (this.statusTextField.label != text) {
if (this.statusTextField.label != text)
updateStatusField : function() { var text = this.overLink || this.status || this.jsStatus || this.jsDefaultStatus || this.defaultStatus; // check the current value so we don't trigger an attribute change // and cause needless (slow!) UI updates if (this.statusTextField.label != text) { this.statusTe...
}
updateStatusField : function() { var text = this.overLink || this.status || this.jsStatus || this.jsDefaultStatus || this.defaultStatus; // check the current value so we don't trigger an attribute change // and cause needless (slow!) UI updates if (this.statusTextField.label != text) { this.statusTe...
statusTextFld.setAttribute("value", text);
if (statusTextFld.getAttribute("value") != text) { statusTextFld.setAttribute("value", text); }
updateStatusField : function() { var text = this.jsStatus || this.overLink || this.jsDefaultStatus || this.defaultStatus; if (!statusTextFld) statusTextFld = document.getElementById("statusbar-display"); statusTextFld.setAttribute("value", text); },
var numUnread = folder.getNumUnread(false); var numTotal = folder.getTotalMessages(false);
var numUnread = Bundle.formatStringFromName("unreadMsgStatus", [ folder.getNumUnread(false)], 1); var numTotal = Bundle.formatStringFromName("totalMsgStatus", [folder.getTotalMessages(false)], 1);
function UpdateStatusMessageCounts(folder){ var unreadElement = GetUnreadCountElement(); var totalElement = GetTotalCountElement(); if(folder && unreadElement && totalElement) { var numUnread = folder.getNumUnread(false); var numTotal = folder.getTotalMessages(false); unreadElement.setAttribute("value", numUnread); ...
color = "black";
color = "#4e84c2";
function updateStyleSheetForCalendar(aCalendar){ var spec = aCalendar.uri.spec; var cpss = calendarPrefStyleSheet; function selectorForCalendar(spec) { return '*[item-calendar="' + spec + '"]'; } function getRuleForCalendar(spec) { for (var i = 0; i < cpss.cssRules.length; i++) { ...
rule.style.color = color;
rule.style.backgroundColor = color; rule.style.color = getContrastingTextColor(color);
function updateStyleSheetForCalendar(aCalendar){ var spec = aCalendar.uri.spec; var cpss = calendarPrefStyleSheet; function selectorForCalendar(spec) { return '*[item-calendar="' + spec + '"]'; } function getRuleForCalendar(spec) { for (var i = 0; i < cpss.cssRules.length; i++) { ...
if (color) rule.style.color = getContrastingTextColor(color);
rule.style.color = getContrastingTextColor(color);
function updateStyleSheetForObject(object) { var calStyleSheet = getCalendarStyleSheet(); var name; if (object.uri) name = object.uri.spec; else name = object.replace(' ','_'); // Returns an equality selector for calendars (which have a uri), since an // event can only belong to one cale...
if (color) rule.style.color = getContrastingTextColor(color);
rule.style.color = getContrastingTextColor(color);
function updateStyleSheetForObject(object) { var calStyleSheet = getCalendarStyleSheet(); var name; if (object.uri) name = object.uri.spec; else name = object.replace(' ','_'); // Returns an equality selector for calendars (which have a uri), since an // event can only belong to one cale...
rule.style.borderColor = color; rule.style.borderWidth = "2px";
rule.style.border = color + " solid 2px";
function updateStyleSheetForObject(object) { var calStyleSheet = getCalendarStyleSheet(); var name; if (object.uri) name = object.uri.spec; else name = object.replace(' ','_'); // Returns an equality selector for calendars (which have a uri), since an // event can only belong to one cale...
updateTimestampFor(view, node);
if(node.className == "msg-nested-tr") { nested = node.firstChild.firstChild.firstChild.firstChild; while (nested) { updateTimestampFor(view, nested); nested = nested.nextSibling; } } else { updateTimestampFor(view, node); }
function updateTimestamps(view){ if (!("messages" in view)) return; view._timestampLast = ""; var node = view.messages.firstChild.firstChild; while (node) { updateTimestampFor(view, node); node = node.nextSibling; }}
entry.description = aMIMEInfo.Description;
entry.description = aMIMEInfo.description;
updateTypeInfo: function (aMIMEInfo) { var mimeType = aMIMEInfo.MIMEType; var isNewMIMEType = this.mimeHandlerExists(mimeType); var entry = new HandlerOverride(MIME_URI(mimeType), this._inner); entry.mimeType = mimeType; entry.isEditable = true; entry.alwaysAsk = aMIMEInfo.alwaysAskBeforeHandl...
#endif
updateUnreadCount: function () { var shell = Components.classes["@mozilla.org/browser/shell-service;1"] .getService(Components.interfaces.nsIWindowsShellService); var unreadCount = shell.unreadMailCount; var message = gNavigatorBundle.getFormattedString("mailUnreadTooltip", [unreadC...
if( repeatCheckBox.checked && repeatUntilRadio.checked )
if( repeatCheckBox.checked == true && repeatUntilRadio.checked )
function updateUntilItemEnabled(){ var repeatUntilRadio = document.getElementById( "repeat-until-radio" ); var repeatCheckBox = document.getElementById( "repeat-checkbox" ); var repeatEndText = document.getElementById( "repeat-end-date-text" ); var repeatEndPicker = document.getElementById( "repeat-end-date-...
var repeatCheckBox = document.getElementById( "repeat-checkbox" ); var numberRadio = document.getElementById("repeat-numberoftimes-radio"); var numberTextBox = document.getElementById("repeat-numberoftimes-textbox"); if( repeatCheckBox.checked && numberRadio.selected ) { numberTextBox.removeAttribute( "disabled" ); ...
var repeatCheckBox = document.getElementById("repeat-checkbox"); var numberRadio = document.getElementById("repeat-numberoftimes-radio"); var untilRadio = document.getElementById("repeat-until-radio");
function updateUntilItemEnabled(){ var repeatCheckBox = document.getElementById( "repeat-checkbox" ); var numberRadio = document.getElementById("repeat-numberoftimes-radio"); var numberTextBox = document.getElementById("repeat-numberoftimes-textbox"); if( repeatCheckBox.checked && numberRadio.selected ) {...
var untilRadio = document.getElementById( "repeat-until-radio" ); var untilPicker = document.getElementById( "repeat-end-date-picker" ); if( repeatCheckBox.checked && untilRadio.selected ) { untilPicker.removeAttribute( "disabled" ); } else { untilPicker.setAttribute( "disabled", "true" ); }
if( repeatCheckBox.checked && numberRadio.selected ) enableElement("repeat-numberoftimes-textbox"); else disableElement("repeat-numberoftimes-textbox"); if( repeatCheckBox.checked && untilRadio.selected ) enableElement("repeat-end-date-picker"); else disableElement("repeat-end-date-picker");
function updateUntilItemEnabled(){ var repeatCheckBox = document.getElementById( "repeat-checkbox" ); var numberRadio = document.getElementById("repeat-numberoftimes-radio"); var numberTextBox = document.getElementById("repeat-numberoftimes-textbox"); if( repeatCheckBox.checked && numberRadio.selected ) {...
header["descnodes"].appendChild(nodes);
header["descnodes"].appendChild(adoptNode(nodes));
function updateUser(){ var source; if (view.name) source = "<" + view.name + "@" + view.host + ">"; else source = MSG_UNKNOWN; if (view.parent.isConnected) setText("serverstr", view.connectionHost, true); else setText("serverstr", null, true); setText("title", getMsg(MSG_TI...
var nodes = client.munger.munge(view.desc, null, getObjectDetails(view)); header["descnodes"].appendChild(nodes);
var data = getObjectDetails(view); data.dontLogURLs = true; var nodes = client.munger.munge(view.desc, null, data); header["descnodes"].appendChild(nodes);
function updateUser(){ var source; if (view.name) source = "<" + view.name + "@" + view.host + ">"; else source = MSG_UNKNOWN; if (view.parent.isConnected) setText("serverstr", view.connectionHost, true); else setText("serverstr", null, true); setText("title", getMsg(MSG_TI...
cell.textContent = b[0];
var d = this.getUTCDate(b[0]); var label = pad(d.getUTCHours(), 2) + ':' + pad(d.getUTCMinutes(), 2); if (lastDate != d.getUTCDate()) { lastDate = d.getUTCDate(); label = d.getUTCDate() +'/'+ (d.getUTCMonth()+1) + '<br>' + label; } cell.innerHTML = label + '<br><a href="javascript:controller.showLog(\'' + b[0] + '\');"...
updateView: function(aResult) { YAHOO.widget.Logger.log('waterfallView.updateView called'); var head = document.getElementById('head'); head.innerHTML = '<th></th>'; this.content.innerHTML = ''; for each (var loc in controller.locales) { var h = document.createElement('th'); h.className = 'wf...
window.title = windowTitle + xulWin.getAttribute("titlemenuseparator") + xulWin.getAttribute("titlemodifier");
document.title = windowTitle + xulWin.getAttribute("titlemenuseparator") + xulWin.getAttribute("titlemodifier");
function UpdateWindowTitle(){ try { var windowTitle = GetDocumentTitle(); if (!windowTitle) windowTitle = GetString("untitled"); // Append just the 'leaf' filename to the Doc. Title for the window caption var docUrl = GetDocumentUrl(); if (docUrl && !IsUrlAboutBlank(docUrl)) { var scheme = ...
try { var resultsPaneUIVersion = gPrefs.getIntPref(prefName); if (resultsPaneUIVersion == 1) { var elements = document.getElementsByAttribute("hiddenbydefault","true"); for (var i=0; i<elements.length; i++) { elements[i].setAttribute("hidden","true"); } gPrefs.setIntPref(prefName, 2); } } catch (ex) { dump("UpgradeAdd...
function UpgradeAddressBookResultsPaneUI(prefName){ try { var resultsPaneUIVersion = gPrefs.getIntPref(prefName); if (resultsPaneUIVersion == 1) { // hide all columns with hiddenbydefault="true" var elements = document.getElementsByAttribute("hiddenbydefault","true"); for (var i=0; i<elements.len...
var folderPaneUIVersion = pref.getIntPref("mail.ui.folderpane.version"); if (folderPaneUIVersion == 1) { var folderUnreadCol = document.getElementById("folderUnreadCol"); folderUnreadCol.setAttribute("hidden", "true"); var folderTotalCol = document.getElementById("folderTotalCol"); folderTotalCol.setAttribute("hidden"...
function UpgradeFolderPaneUI(){ var folderPaneUIVersion = pref.getIntPref("mail.ui.folderpane.version"); if (folderPaneUIVersion == 1) { var folderUnreadCol = document.getElementById("folderUnreadCol"); folderUnreadCol.setAttribute("hidden", "true"); var folderTotalCol = document.getElementById("folderTotalC...
if (threadPaneUIVersion == 1) { labelCol = document.getElementById("labelCol"); labelCol.setAttribute("hidden", "true"); }
function UpgradeThreadPaneUI(){ var labelCol; var threadPaneUIVersion; try { threadPaneUIVersion = pref.getIntPref("mailnews.ui.threadpane.version"); if (threadPaneUIVersion < 5) { var threadTree = document.getElementById("threadTree"); var junkCol = document.getElementById("junkStatusCol"); ...
var labelCol;
function UpgradeThreadPaneUI(){ var labelCol; var threadPaneUIVersion; try { threadPaneUIVersion = pref.getIntPref("mailnews.ui.threadpane.version"); if (threadPaneUIVersion < 4) { var threadTree = document.getElementById("threadTree"); var junkCol = document.getElementById("junkStatusCol"); var...
if (threadPaneUIVersion == 1) { labelCol = document.getElementById("labelCol"); labelCol.setAttribute("hidden", "true"); }
function UpgradeThreadPaneUI(){ var labelCol; var threadPaneUIVersion; try { threadPaneUIVersion = pref.getIntPref("mailnews.ui.threadpane.version"); if (threadPaneUIVersion < 4) { var threadTree = document.getElementById("threadTree"); var junkCol = document.getElementById("junkStatusCol"); var...
var beforeCol = subjectCol.boxObject.nextSibling.boxObject.nextSibling;
beforeCol = subjectCol.boxObject.nextSibling.boxObject.nextSibling;
function UpgradeThreadPaneUI(){ var labelCol; var threadPaneUIVersion; try { threadPaneUIVersion = pref.getIntPref("mailnews.ui.threadpane.version"); if (threadPaneUIVersion < 4) { var threadTree = document.getElementById("threadTree"); var junkCol = document.getElementById("junkStatusCol"); if ...
var beforeCol = junkCol.boxObject.nextSibling.boxObject.nextSibling;
beforeCol = junkCol.boxObject.nextSibling.boxObject.nextSibling;
function UpgradeThreadPaneUI(){ var labelCol; var threadPaneUIVersion; try { threadPaneUIVersion = pref.getIntPref("mailnews.ui.threadpane.version"); if (threadPaneUIVersion < 4) { var threadTree = document.getElementById("threadTree"); var junkCol = document.getElementById("junkStatusCol"); if ...
if (gClickSelectsAll) if (!gIgnoreFocus) gURLBar.select(); else { gIgnoreFocusCount++; if (gIgnoreFocusCount >= 2) { gIgnoreFocusCount = 0; gIgnoreFocus = false; } }
if (gIgnoreFocus) gIgnoreFocus = false; else if (gClickSelectsAll) gURLBar.select();
function URLBarFocusHandler(aEvent){ if (gClickSelectsAll) if (!gIgnoreFocus) gURLBar.select(); else { // check if gIgnoreFocusCount >= 2 because right-clicking on the url bar // causes two blur and two focus events before the context menu is displayed. // we need to eat all those events and ...
gMouseDownX = -1; if (gURLBar) { if (gClickSelectsAll) { var focusedElement = null; if (document.commandDispatcher.focusedElement) focusedElement = document.commandDispatcher.focusedElement.parentNode.parentNode.parentNode; if (!focusedElement || (focusedElement && focusedElement != gURLBar)) { gIgnoreFocusCount = 1;...
if (gURLBar.hasAttribute("focused")) { gIgnoreClick = true; } else { gIgnoreFocus = true; gIgnoreClick = false; gURLBar.setSelectionRange(0, 0);
function URLBarMouseDownHandler(aEvent){ gMouseDownX = -1; if (gURLBar) { if (gClickSelectsAll) { var focusedElement = null; if (document.commandDispatcher.focusedElement) focusedElement = document.commandDispatcher.focusedElement.parentNode.parentNode.parentNode; if (!focusedElement || (focu...
function urlSecurityCheck(url, doc)
function urlSecurityCheck(url, sourceURL)
function urlSecurityCheck(url, doc) { // URL Loading Security Check var focusedWindow = doc.commandDispatcher.focusedWindow; var sourceURL = getContentFrameURI(focusedWindow); var sourceURI = makeURI(sourceURL); var destURI = makeURI(url); const nsIScriptSecurityManager = Components.interfaces.nsIScriptSecurityMa...
var focusedWindow = doc.commandDispatcher.focusedWindow; var sourceURL = getContentFrameURI(focusedWindow);
function urlSecurityCheck(url, doc) { // URL Loading Security Check var focusedWindow = doc.commandDispatcher.focusedWindow; var sourceURL = getContentFrameURI(focusedWindow); var sourceURI = makeURI(sourceURL); var destURI = makeURI(url); const nsIScriptSecurityManager = Components.interfaces.nsIScriptSecurityMa...
throw "Load of " + url + " denied.";
throw "Load of " + url + " from " + sourceURL + " denied.";
function urlSecurityCheck(url, doc) { // URL Loading Security Check var focusedWindow = doc.commandDispatcher.focusedWindow; var sourceURL = getContentFrameURI(focusedWindow); var sourceURI = makeURI(sourceURL); var destURI = makeURI(url); const nsIScriptSecurityManager = Components.interfaces.nsIScriptSecurityMa...
document.getElementById( "useDefaults" ).removeAttribute( "disabled" );
document.getElementById( "useCustomColors" ).removeAttribute( "disabled" );
function useCustomColors() { var dataEls = ["text", "link", "fLink", "background"]; for( var i = 0; i < dataEls.length; i++ ) { var element = document.getElementById( ( dataEls[i] + "Data" ) ); element = document.getElementById( ( dataEls[i] + "Label" ) ); element.removeAttribute( "disa...
SetElementEnabledById("Text", true); SetElementEnabledById("Link", true); SetElementEnabledById("Active", true); SetElementEnabledById("Visited", true); SetElementEnabledById("Background", true);
function UseCustomColors(){ SetElementEnabledById("TextButton", true); SetElementEnabledById("LinkButton", true); SetElementEnabledById("ActiveLinkButton", true); SetElementEnabledById("VisitedLinkButton", true); SetElementEnabledById("BackgroundButton", true); SetColorPreview("textCW", customTextColor); S...
SetElementEnabledById("Text", false); SetElementEnabledById("Link", false); SetElementEnabledById("Active", false); SetElementEnabledById("Visited", false); SetElementEnabledById("Background", false);
function UseDefaultColors(){ SetColorPreview("textCW", defaultTextColor); SetColorPreview("linkCW", defaultLinkColor); SetColorPreview("activeCW", defaultActiveColor); SetColorPreview("visitedCW", defaultVisitedColor); SetColorPreview("backgroundCW", defaultBackgroundColor); // Setting to blank...
document.getElementById( "useDefaults" ).setAttribute( "disabled", "true" );
document.getElementById( "useCustomColors" ).setAttribute( "disabled", "true" );
function useNavigatorColors() { // use colors from navigator var prefstrings = ["browser.display.foreground_color", "browser.anchor_color", "browser.visited_color", "browser.display.background_color"]; var dataEls = ["text", "link", "fLink", "background"]; for( var i = 0; i < dataEls.length; i++ ) { ...
else hostmask = hostmask.replace(/[^.]+$/, "*");
function usr_banmask(){ var hostmask = this.host; if (!/^\d+\.\d+\.\d+\.\d+$/.test(hostmask)) hostmask = hostmask.replace(/^[^.]+/, "*"); return "*!" + this.name + "@" + hostmask;}
this.nick = nick.toLowerCase();
this.nick = this.parent.toLowerCase(nick);
function usr_changenick (nick){ this.properNick = nick; this.nick = nick.toLowerCase();}
rdf.Assert (this.rdfRes, rdf.resFounder, rdf.litUnk); rdf.Assert (this.rdfRes, rdf.resAdmin, rdf.litUnk);
function usr_graphres(){ if (!ASSERT(this.TYPE == "IRCChanUser", "cuser.getGraphResource called on wrong object")) { return null; } var rdf = client.rdf; if (!("rdfRes" in this)) { if (!("nextResID" in CIRCUser)) CIRCUser.nextResID = 0; this.rdfRes = rdf....
var mode = "";
var mode;
function usr_updres(){ if (!ASSERT(this.TYPE == "IRCChanUser", "cuser.updateGraphResource called on wrong object")) { return; } if (!("rdfRes" in this)) { this.getGraphResource(); return; } var rdf = client.rdf; rdf.Change (this.rdfRes, rdf.resUniName, rdf.Get...
mode = userModes[j].symbol;
mode = userModes[j];
function usr_updres(){ if (!ASSERT(this.TYPE == "IRCChanUser", "cuser.updateGraphResource called on wrong object")) { return; } if (!("rdfRes" in this)) { this.getGraphResource(); return; } var rdf = client.rdf; rdf.Change (this.rdfRes, rdf.resUniName, rdf.Get...
if (mode && !mode.match(/^[@%+]$/)) { rdf.Change(this.rdfRes, rdf.resNick, rdf.GetLiteral(mode + " " + this.unicodeName)); } else { rdf.Change (this.rdfRes, rdf.resNick, rdf.GetLiteral(this.unicodeName)); }
var displayname = this.unicodeName; if (mode && !mode.mode.match(/^[qaohv]$/)) displayname = mode.symbol + " " + displayname; rdf.Change(this.rdfRes, rdf.resNick, rdf.GetLiteral(displayname));
function usr_updres(){ if (!ASSERT(this.TYPE == "IRCChanUser", "cuser.updateGraphResource called on wrong object")) { return; } if (!("rdfRes" in this)) { this.getGraphResource(); return; } var rdf = client.rdf; rdf.Change (this.rdfRes, rdf.resUniName, rdf.Get...
rdf.Change(this.rdfRes, rdf.resFounder, this.isFounder ? rdf.litTrue : rdf.litFalse); rdf.Change(this.rdfRes, rdf.resAdmin, this.isAdmin ? rdf.litTrue : rdf.litFalse);
function usr_updres(){ if (!ASSERT(this.TYPE == "IRCChanUser", "cuser.updateGraphResource called on wrong object")) { return; } if (!("rdfRes" in this)) { this.getGraphResource(); return; } var rdf = client.rdf; rdf.Change (this.rdfRes, rdf.resUniName, rdf.Get...
var alertText = Bundle.GetStringFromName("accountExists");
alertText = Bundle.GetStringFromName("accountExists");
function validate() { var servername = document.getElementById("hostname"); var smtpserver = document.getElementById("smtphostname"); if ((servername && servername.value =="") || (smtpserver && smtpserver.value == "")) { var alertText = Bundle.GetStringFromName("enterValidHostname"); window.alert(alertTex...
dump("check if this account exists\n");
function validate() { var servername = document.getElementById("hostname"); var smtpserver = document.getElementById("smtphostname"); if ((servername && servername.value =="") || (smtpserver && smtpserver.value == "")) { var alertText = Bundle.GetStringFromName("enterValidHostname"); window.alert(alertTex...
var hostName = servername.value;
function validate() { var servername = document.getElementById("hostname"); var smtpserver = document.getElementById("smtphostname"); if ((servername && servername.value =="") || (smtpserver && smtpserver.value == "")) { var alertText = Bundle.GetStringFromName("enterValidHostname"); window.alert(alertTex...
var userName = parent.getCurrentUserName(pageData);
var protocolinfo = Components.classes["component: if (!protocolinfo.requiresUsername) { var userName = parent.getCurrentUserName(pageData); var hostName = servername.value;
function validate() { var servername = document.getElementById("hostname"); var smtpserver = document.getElementById("smtphostname"); if ((servername && servername.value =="") || (smtpserver && smtpserver.value == "")) { var alertText = Bundle.GetStringFromName("enterValidHostname"); window.alert(alertTex...
var accountExists = false; var accountManager = Components.classes["component: try { var server = accountManager.FindServer(userName,hostName,serverType); if (server) { accountExists = true; } } catch (ex) { accountExists = false; } if (accountExists) { var alertText = Bundle.GetStringFromName("accountExists"); window....
if (parent.AccountExists(userName,hostName,serverType)) { var alertText = Bundle.GetStringFromName("accountExists"); window.alert(alertText); return false; }
function validate() { var servername = document.getElementById("hostname"); var smtpserver = document.getElementById("smtphostname"); if ((servername && servername.value =="") || (smtpserver && smtpserver.value == "")) { var alertText = Bundle.GetStringFromName("enterValidHostname"); window.alert(alertTex...
var alertText = Bundle.GetStringFromName("accountExists");
alertText = Bundle.GetStringFromName("accountExists");
function validate() { var username = document.getElementById("username").value; if (protocolinfo && protocolinfo.requiresUsername && (!username || username == "")) { var alertText = Bundle.GetStringFromName("enterUserName"); window.alert(alertText); return false; } var pageData = parent.GetPageData(...
var email = document.getElementById("email").value;
function validate(data){ var email = document.getElementById("email").value; var name = document.getElementById("fullName").value; if (! name || name=="") { var alertText = Bundle.GetStringFromName("enterName"); window.alert(alertText); return false; } var emailArray = email.split('@'); if (emailArray.le...
var emailArray = email.split('@'); if (emailArray.length != 2 || emailArray[0] == "" || emailArray[1] == "") { var alertText = Bundle.GetStringFromName("enterValidEmail"); window.alert(alertText); return false; }
parent.UpdateWizardMap();
function validate(data){ var email = document.getElementById("email").value; var name = document.getElementById("fullName").value; if (! name || name=="") { var alertText = Bundle.GetStringFromName("enterName"); window.alert(alertText); return false; } var emailArray = email.split('@'); if (emailArray.le...
var pageData = parent.GetPageData(); var serverType = parent.getCurrentServerType(pageData); var hostName = parent.getCurrentHostname(pageData); if (parent.AccountExists(username,hostName,serverType)) { var alertText = Bundle.GetStringFromName("accountExists"); window.alert(alertText); return false; }
function validate() { var username = document.getElementById("username").value; if (protocolinfo && protocolinfo.requiresUsername && (!username || username == "")) { var alertText = Bundle.GetStringFromName("enterUserName"); window.alert(alertText); return false; } return true;}
var styleValue = backColorStyle+dialog.backgroundColor+";";
var styleValue = backColorStyle+previewBGColor+";";
function ValidateAndPreviewImage(ShowErrorMessage){ // First make a string with just background color var styleValue = backColorStyle+dialog.backgroundColor+";"; var retVal = true; var image = dialog.BackgroundImageInput.value.trimString(); if (image) { if (IsValidImage(image)) { backgroundImage = imag...
dump("Set preview background CSS: "+styleValue+"\n");
function ValidateAndPreviewImage(ShowErrorMessage){ // First make a string with just background color var styleValue = backColorStyle+dialog.backgroundColor+";"; var retVal = true; var image = dialog.BackgroundImageInput.value.trimString(); if (image) { if (IsValidImage(image)) { backgroundImage = imag...
if (image.length > 0)
if (image)
function ValidateAndPreviewImage(ShowErrorMessage){ // First make a string with just background color var styleValue = backColorStyle+dialog.backgroundColor+";"; var image = dialog.BackgroundImageInput.value.trimString(); if (image.length > 0) { if (IsValidImage(image)) { backgroundImage = image; /...
dump("ValidateAndPreviewImage: styleValue ="+styleValue+"\n");
function ValidateAndPreviewImage(ShowErrorMessage){ // First make a string with just background color var styleValue = backColorStyle+dialog.backgroundColor+";"; var image = dialog.BackgroundImageInput.value.trimString(); if (image.length > 0) { if (IsValidImage(image)) { backgroundImage = image; /...
dump("ValidateAndPreviewImage: styleValue ="+styleValue+"\n");
function ValidateAndPreviewImage(ShowErrorMessage){ // First make a string with just background color var styleValue = backColorStyle+dialog.backgroundColor+";"; var image = dialog.BackgroundImageInput.value.trimString(); if (image) { if (IsValidImage(image)) { backgroundImage = image; // Append im...
if (IsValidImage(image)) { backgroundImage = image;
backgroundImage = image;
function ValidateAndPreviewImage(ShowErrorMessage){ // First make a string with just background color var styleValue = backColorStyle+previewBGColor+";"; var retVal = true; var image = TrimString(gDialog.BackgroundImageInput.value); if (image) { if (IsValidImage(image)) { backgroundImage = image; ...
var displayImage = gHaveDocumentUrl ? MakeAbsoluteUrl(image) : image; styleValue += backImageStyle+displayImage+");"; } else { backgroundImage = null; if (ShowErrorMessage) { SetTextboxFocus(gDialog.BackgroundImageInput); ShowInputErrorMessage(GetString("MissingImageError")); } retVal = false; }
var displayImage = gHaveDocumentUrl ? MakeAbsoluteUrl(image) : image; styleValue += backImageStyle+displayImage+");";
function ValidateAndPreviewImage(ShowErrorMessage){ // First make a string with just background color var styleValue = backColorStyle+previewBGColor+";"; var retVal = true; var image = TrimString(gDialog.BackgroundImageInput.value); if (image) { if (IsValidImage(image)) { backgroundImage = image; ...
if (IsValidImage(image)) { backgroundImage = image; styleValue += backImageStyle+backgroundImage+");"; } else { backgroundImage = ""; if (ShowErrorMessage) { SetTextboxFocus(gDialog.BackgroundImageInput); ShowInputErrorMessage(GetString("MissingImageError")); } }
backgroundImage = image; styleValue += backImageStyle+backgroundImage+");";
function ValidateAndPreviewImage(ShowErrorMessage){ // First make a string with just background color var styleValue = backColorStyle+previewBGColor+";"; var image = TrimString(gDialog.BackgroundImageInput.value); if (image) { if (IsValidImage(image)) { backgroundImage = image; // Append image styl...
if (hAlign == "left")
var isTH = globalCellElement.nodeName.toLowerCase() == "th"; if ((isTH && hAlign == "center") || (!isTH && hAlign == "left"))
function ValidateCellData(){ validatePanel = CellPanel; if (dialog.CellHeightCheckbox.checked) { ValidateNumber("CellHeightInput", dialog.CellHeightUnits, 1, maxPixels, globalCellElement, "height"); if (error) return false; } if (dialog.CellWidthCheckbox.checked) { ValidateNumber("Cel...
globalElement.setAttribute(textStr, customTextColor);
var tmpColor = customTextColor.toLowerCase(); if (tmpColor != "windowtext") globalElement.setAttribute(textStr, customTextColor); else globalElement.removeAttribute(textStr); tmpColor = customBackgroundColor.toLowerCase(); if (tmpColor != "window") globalElement.setAttribute(bgcolorStr, customBackgroundColor); else...
function ValidateData(){ // Colors values are updated as they are picked, no validation necessary if (dialog.DefaultColorsRadio.checked) { globalElement.removeAttribute(textStr); globalElement.removeAttribute(linkStr); globalElement.removeAttribute(vlinkStr); globalElement.removeAttribute(alinkStr); g...
globalElement.setAttribute(bgcolorStr, customBackgroundColor);
function ValidateData(){ // Colors values are updated as they are picked, no validation necessary if (dialog.DefaultColorsRadio.checked) { globalElement.removeAttribute(textStr); globalElement.removeAttribute(linkStr); globalElement.removeAttribute(vlinkStr); globalElement.removeAttribute(alinkStr); g...
if (NoDefault && color.length == 0)
if (NoDefault && !color)
function ValidateData(){ if (LastPickedIsDefault) color = LastPickedColor; else color = dialog.ColorInput.value; color = color.trimString().toLowerCase(); // TODO: Validate the color string! if (NoDefault && color.length == 0) { ShowInputErrorMessage(GetString("NoColorError")); SetTextfieldFocus(dia...
switch (BulletStyleList.selectedIndex)
switch (dialog.BulletStyleList.selectedIndex)
function ValidateData(){ var type = 0; // globalElement should already be of the correct type //dump("Global List element="+globalElement+" should be type: "+ListType+"\n"); if (globalElement) { if (ListType == "ul") { switch (BulletStyleList.selectedIndex) { // Index 0 = "disc", the defau...
var startingNumber = StartingNumberInput.value.trimString();
var startingNumber = dialog.StartingNumberInput.value.trimString();
function ValidateData(){ var type = 0; // globalElement should already be of the correct type //dump("Global List element="+globalElement+" should be type: "+ListType+"\n"); if (globalElement) { if (ListType == "ul") { switch (BulletStyleList.selectedIndex) { // Index 0 = "disc", the defau...
globalElement.value = gDialog.textareaValue.value;
function ValidateData(){ var attributes = { name: gDialog.textareaName.value, rows: gDialog.textareaRows.value, cols: gDialog.textareaCols.value, wrap: gDialog.textareaWrap.value, tabindex: gDialog.textareaTabIndex.value, accesskey: gDialog.textareaAccessKey.value }; var flags = { readonly: gDia...
var alt = dialog.altTextInput.value;
var alt = dialog.altTextInput.value; if (doAltTextError && !alt) { ShowInputErrorMessage(GetString("NoAltText")); SetTextfieldFocus(dialog.altTextInput); doAltTextError = false; return false; }
function ValidateData(){ if ( !IsValidImage(dialog.srcInput.value )) { ShowInputErrorMessage(GetString("MissingImageError")); return false; } //TODO: WE NEED TO DO SOME URL VALIDATION HERE, E.G.: // We must convert to "file:///" or "http://" format else image doesn't load! var src = dialog.srcInput.value.tri...
if (width.length > 0)
if (width)
function ValidateData(){ if ( !IsValidImage(dialog.srcInput.value )) { ShowInputErrorMessage(GetString("MissingImageError")); return false; } //TODO: WE NEED TO DO SOME URL VALIDATION HERE, E.G.: // We must convert to "file:///" or "http://" format else image doesn't load! var src = dialog.srcInput.value.tri...
if (height.length > 0)
if (height)
function ValidateData(){ if ( !IsValidImage(dialog.srcInput.value )) { ShowInputErrorMessage(GetString("MissingImageError")); return false; } //TODO: WE NEED TO DO SOME URL VALIDATION HERE, E.G.: // We must convert to "file:///" or "http://" format else image doesn't load! var src = dialog.srcInput.value.tri...
if ( dialog.imagelrInput.value.length > 0 )
if ( dialog.imagelrInput.value )
function ValidateData(){ if ( !IsValidImage(dialog.srcInput.value )) { ShowInputErrorMessage(GetString("MissingImageError")); return false; } //TODO: WE NEED TO DO SOME URL VALIDATION HERE, E.G.: // We must convert to "file:///" or "http://" format else image doesn't load! var src = dialog.srcInput.value.tri...
if ( dialog.imagetbInput.value.length > 0 )
if ( dialog.imagetbInput.value )
function ValidateData(){ if ( !IsValidImage(dialog.srcInput.value )) { ShowInputErrorMessage(GetString("MissingImageError")); return false; } //TODO: WE NEED TO DO SOME URL VALIDATION HERE, E.G.: // We must convert to "file:///" or "http://" format else image doesn't load! var src = dialog.srcInput.value.tri...
if ( dialog.border.value.length > 0 )
if ( dialog.border.value )
function ValidateData(){ if ( !IsValidImage(dialog.srcInput.value )) { ShowInputErrorMessage(GetString("MissingImageError")); return false; } //TODO: WE NEED TO DO SOME URL VALIDATION HERE, E.G.: // We must convert to "file:///" or "http://" format else image doesn't load! var src = dialog.srcInput.value.tri...
var index = gDialog.inputType.selectedIndex; switch (index) { case 4: case 5: break; case 8: if (!globalElement.hasAttribute("src")) { doImageProperties(); if (!globalElement.hasAttribute("src")) return false; } break; case 3: default: if (!gDialog.inputName.value || !gDialog.inputValue.value) { AlertWithTitle(GetStrin...
function ValidateData(){ var index = gDialog.inputType.selectedIndex; switch (index) { case 4: case 5: break; case 8: if (!globalElement.hasAttribute("src")) { doImageProperties(); if (!globalElement.hasAttribute("src")) return false; } break; case 3: de...
var index = gDialog.inputType.selectedIndex;
function ValidateData(){ var index = gDialog.inputType.selectedIndex; switch (index) { case 4: case 5: break; case 8: if (!globalElement.hasAttribute("src")) { doImageProperties(); if (!globalElement.hasAttribute("src")) return false; } break; case 3: de...