mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
namespace fixes
This commit is contained in:
parent
d6bf64b07f
commit
64923492d2
@ -195,7 +195,7 @@ function OpenEditNode()
|
||||
dump("gEditNode removed.\n");
|
||||
|
||||
// create the html:input node
|
||||
htmlInput = document.createElement("html:input");
|
||||
htmlInput = document.createElementNS("http://www.w3.org/TR/REC-html40", "html:input");
|
||||
htmlInput.setAttribute("value", name);
|
||||
htmlInput.setAttribute("onkeypress", "return EditNodeKeyPress(event)");
|
||||
|
||||
@ -363,7 +363,7 @@ function fillContextMenu(name)
|
||||
popupNode.removeChild(menuNode);
|
||||
|
||||
// create a new menu node
|
||||
menuNode = document.createElement("menu");
|
||||
menuNode = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "menu");
|
||||
popupNode.appendChild(menuNode);
|
||||
|
||||
var treeNode = document.getElementById("bookmarksTree");
|
||||
@ -456,7 +456,7 @@ function fillContextMenu(name)
|
||||
|
||||
dump("Command #" + cmdIndex + ": id='" + cmdResource.Value + "' name='" + cmdName + "'\n\n");
|
||||
|
||||
var menuItem = document.createElement("menuitem");
|
||||
var menuItem = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "menuitem");
|
||||
menuItem.setAttribute("value", cmdName);
|
||||
menuItem.setAttribute("onaction", "return doContextCmd('" + cmdResource.Value + "');");
|
||||
|
||||
|
@ -36,7 +36,7 @@ function fillContextMenu(name,node)
|
||||
popupNode.removeChild(menuNode);
|
||||
|
||||
// create a new menu node
|
||||
menuNode = document.createElement("menu");
|
||||
menuNode = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "menu");
|
||||
popupNode.appendChild(menuNode);
|
||||
|
||||
switch(ext) {
|
||||
@ -99,7 +99,7 @@ function GetFileURL(node)
|
||||
function isImageFile(parent,url)
|
||||
{
|
||||
// note: deleted all the doContextCmd stuff from bookmarks.
|
||||
var menuItem = document.createElement("menuitem");
|
||||
var menuItem = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "menuitem");
|
||||
menuItem.setAttribute("value","Insert Image");
|
||||
// menuItem.setAttribute("onaction","AutoInsertImage(\'" + url + "\')");
|
||||
parent.appendChild(menuItem);
|
||||
|
@ -223,7 +223,7 @@ function OpenEditNode()
|
||||
dump("gEditNode removed.\n");
|
||||
|
||||
// create the html:input node
|
||||
htmlInput = document.createElement("html:input");
|
||||
htmlInput = document.createElementNS("http://www.w3.org/TR/REC-html40", "html:input");
|
||||
htmlInput.setAttribute("value", name);
|
||||
htmlInput.setAttribute("onkeypress", "return EditNodeKeyPress(event)");
|
||||
|
||||
@ -394,14 +394,14 @@ function fillContextMenu(name,node)
|
||||
popupNode.removeChild(menuNode);
|
||||
|
||||
// create a new menu node
|
||||
menuNode = document.createElement("menu");
|
||||
menuNode = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "menu");
|
||||
popupNode.appendChild(menuNode);
|
||||
|
||||
dump("mwa");
|
||||
if(ext == "gif")
|
||||
{
|
||||
// note: deleted all the doContextCmd stuff from bookmarks.
|
||||
menuItem = document.createElement("menuitem");
|
||||
menuItem = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "menuitem");
|
||||
menuItem.setAttribute("value","Insert Image");
|
||||
// menuItem.setAttribute("onaction","AutoInsertImage(\'" + url + "\')");
|
||||
parent.appendChild(menuItem);
|
||||
|
Loading…
Reference in New Issue
Block a user