r=sspitzer
This commit is contained in:
alecf%netscape.com 2000-06-07 00:46:09 +00:00
Родитель 884d42da16
Коммит 19e385f9fa
6 изменённых файлов: 13 добавлений и 13 удалений

Просмотреть файл

@ -80,7 +80,7 @@ function onLoad() {
duplicateButton = document.getElementById("duplicateButton");
deleteButton = document.getElementById("deleteButton");
setDefaultButton = document.getElementById("setDefaultButton");
selectFirstAccount()
}
@ -101,7 +101,7 @@ function findFirstTreeItem(tree) {
var treechildren;
for (var i=0;i<children.length; i++) {
if (children[i].tagName == "treechildren") {
if (children[i].localName == "treechildren") {
treechildren = children[i];
break;
}
@ -109,7 +109,7 @@ function findFirstTreeItem(tree) {
var children = treechildren.childNodes;
for (var i=0; i<children.length; i++) {
if (children[i].tagName == "treeitem")
if (children[i].localName == "treeitem")
return children[i];
}
}
@ -530,7 +530,7 @@ function restorePage(pageId, serverId) {
//
function getFormElementValue(formElement) {
try {
var type = formElement.tagName;
var type = formElement.localName;
if (type=="checkbox") {
if (formElement.getAttribute("reversed"))
return !formElement.checked;
@ -576,7 +576,7 @@ function setFormElementValue(formElement, value) {
//formElement.value = formElement.defaultValue;
// formElement.checked = formElement.defaultChecked;
var type = formElement.tagName;
var type = formElement.localName;
if (type == "checkbox") {
if (value == undefined) {
if (formElement.defaultChecked)
@ -712,7 +712,7 @@ function getServerIdAndPageIdFromTree(tree)
// for toplevel treeitems, we just use the current treeitem
// dump("servernode is " + servernode + "\n");
if (servernode.tagName != "treeitem") {
if (servernode.localName != "treeitem") {
servernode = node;
}
serverId = servernode.getAttribute('id');

Просмотреть файл

@ -116,9 +116,9 @@ function refreshServerList()
// recreate <treechildren>
// note - I tried creating the <treechildren> node pre-populated,
// but the tree wouldn't notice the update
dump("Removing " + serverList.firstChild.tagName + "\n");
dump("Removing " + serverList.firstChild.localName + "\n");
if (serverList.firstChild &&
serverList.firstChild.tagName.toLowerCase() == "treechildren")
serverList.firstChild.localName.toLowerCase() == "treechildren")
serverList.removeChild(serverList.firstChild);
var treeChildren = document.createElement("treechildren");

Просмотреть файл

@ -73,5 +73,5 @@ function onOk()
function onSelected(event)
{
serverList.setAttribute("selectedKey", event.target.getAttribute("key"));
dump("Something selected on " + event.target.tagName + "\n");
dump("Something selected on " + event.target.localName + "\n");
}

Просмотреть файл

@ -42,7 +42,7 @@ function onLoad()
var slot = controls[i].id;
var val = server[slot];
if (controls[i].tagName.toLowerCase() == "checkbox")
if (controls[i].localName.toLowerCase() == "checkbox")
controls[i].checked = val;
else
controls[i].value = val;
@ -59,7 +59,7 @@ function onOk()
for (var i=0; i<controls.length; i++) {
var slot = controls[i].id;
if (slot) {
if (controls[i].tagName.toLowerCase() == "checkbox") {
if (controls[i].localName.toLowerCase() == "checkbox") {
server[slot] = controls[i].checked;
}
else

Просмотреть файл

@ -106,7 +106,7 @@ function initializeDialog(filter)
if (targets && targets.length > 0) {
var target = targets[0];
if (target.tagName == "menuitem")
if (target.localName == "menuitem")
gActionTargetElement.selectedItem = target;
}
} else if (filter.action == nsMsgFilterAction.ChangePriority) {

Просмотреть файл

@ -187,7 +187,7 @@ function removeSearchRow(index)
// searchattribute to find the first <treeitem>
var treeItemRow = searchTermElement.searchattribute;
while (treeItemRow) {
if (treeItemRow.tagName == "treeitem") break;
if (treeItemRow.localName == "treeitem") break;
treeItemRow = treeItemRow.parentNode;
}