fix namespace
git-svn-id: svn://10.0.0.236/trunk@70055 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -270,9 +270,9 @@ function AddTreeItem ( name, value, treekids, attArray, valueCaseFunc )
|
||||
{
|
||||
attArray[attArray.length] = name;
|
||||
var treekids = document.getElementById ( treekids );
|
||||
var treeitem = document.createElement ( "treeitem" );
|
||||
var treerow = document.createElement ( "treerow" );
|
||||
var attrcell = document.createElement ( "treecell" );
|
||||
var treeitem = document.createElementNS ( "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "treeitem" );
|
||||
var treerow = document.createElementNS ( "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "treerow" );
|
||||
var attrcell = document.createElementNS ( "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "treecell" );
|
||||
attrcell.setAttribute( "class", "propertylist" );
|
||||
attrcell.setAttribute( "value", name.toLowerCase() );
|
||||
treerow.appendChild ( attrcell );
|
||||
@@ -293,10 +293,10 @@ function AddTreeItem ( name, value, treekids, attArray, valueCaseFunc )
|
||||
// optional parameters for initial values.
|
||||
function CreateCellWithField( name, value )
|
||||
{
|
||||
var valcell = document.createElement ( "treecell" );
|
||||
var valcell = document.createElementNS ( "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "treecell" );
|
||||
valcell.setAttribute ( "class", "value propertylist" );
|
||||
valcell.setAttribute ( "allowevents", "true" );
|
||||
var valField = document.createElement ( "html:input" );
|
||||
var valField = document.createElementNS ( "http://www.w3.org/TR/REC-html40", "html:input" );
|
||||
valField.setAttribute ( "type", "text" );
|
||||
if ( name ) valField.setAttribute ( "id", name );
|
||||
if ( value ) valField.setAttribute ( "value", value );
|
||||
|
||||
@@ -347,7 +347,7 @@ function AppendStringToMenulist(menulist, string)
|
||||
// May not have any popup yet -- so create one
|
||||
if (!menupopup)
|
||||
{
|
||||
menupopup = document.createElement("menupopup");
|
||||
menupopup = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "menupopup");
|
||||
if (menupopup)
|
||||
menulist.appendChild(menupopup);
|
||||
else
|
||||
@@ -356,7 +356,7 @@ function AppendStringToMenulist(menulist, string)
|
||||
return null;
|
||||
}
|
||||
}
|
||||
menuItem = document.createElement("menuitem");
|
||||
menuItem = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "menuitem");
|
||||
if (menuItem)
|
||||
{
|
||||
menuItem.setAttribute("value", string);
|
||||
@@ -375,7 +375,7 @@ function AppendValueAndDataToMenulist(menulist, valueStr, dataStr)
|
||||
// May not have any popup yet -- so create one
|
||||
if (!menupopup)
|
||||
{
|
||||
menupopup = document.createElement("menupopup");
|
||||
menupopup = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "menupopup");
|
||||
if (menupopup)
|
||||
menulist.appendChild(menupopup);
|
||||
else
|
||||
@@ -384,7 +384,7 @@ function AppendValueAndDataToMenulist(menulist, valueStr, dataStr)
|
||||
return null;
|
||||
}
|
||||
}
|
||||
menuItem = document.createElement("menuitem");
|
||||
menuItem = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "menuitem");
|
||||
if (menuItem)
|
||||
{
|
||||
menuItem.setAttribute("value", valueStr);
|
||||
@@ -429,7 +429,7 @@ function AppendStringToTreelist(tree, string)
|
||||
var treechildren = tree.firstChild;
|
||||
if (!treechildren)
|
||||
{
|
||||
treechildren = document.createElement("treechildren");
|
||||
treechildren = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "treechildren");
|
||||
if (treechildren)
|
||||
tree.appendChild(treechildren);
|
||||
else
|
||||
@@ -438,9 +438,9 @@ function AppendStringToTreelist(tree, string)
|
||||
return null;
|
||||
}
|
||||
}
|
||||
var treeitem = document.createElement("treeitem");
|
||||
var treerow = document.createElement("treerow");
|
||||
var treecell = document.createElement("treecell");
|
||||
var treeitem = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "treeitem");
|
||||
var treerow = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "treerow");
|
||||
var treecell = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "treecell");
|
||||
if (treeitem && treerow && treecell)
|
||||
{
|
||||
treerow.appendChild(treecell);
|
||||
|
||||
Reference in New Issue
Block a user