зеркало из https://github.com/mozilla/gecko-dev.git
Fix bug # 11626: get context menus in the bookmarks window working again. Approval: chofmann. Review: Hyatt
This commit is contained in:
Родитель
21978c2e4a
Коммит
c73c7adf6a
|
@ -447,8 +447,8 @@ function fillContextMenu(name)
|
|||
dump("Command #" + cmdIndex + ": id='" + cmdResource.Value + "' name='" + cmdName + "'\n\n");
|
||||
|
||||
var menuItem = document.createElement("menuitem");
|
||||
menuItem.setAttribute("name", cmdName);
|
||||
menuItem.setAttribute("onclick", "return doContextCmd('" + cmdResource.Value + "');");
|
||||
menuItem.setAttribute("value", cmdName);
|
||||
menuItem.setAttribute("onaction", "return doContextCmd('" + cmdResource.Value + "');");
|
||||
|
||||
menuNode.appendChild(menuItem);
|
||||
}
|
||||
|
|
|
@ -447,8 +447,8 @@ function fillContextMenu(name)
|
|||
dump("Command #" + cmdIndex + ": id='" + cmdResource.Value + "' name='" + cmdName + "'\n\n");
|
||||
|
||||
var menuItem = document.createElement("menuitem");
|
||||
menuItem.setAttribute("name", cmdName);
|
||||
menuItem.setAttribute("onclick", "return doContextCmd('" + cmdResource.Value + "');");
|
||||
menuItem.setAttribute("value", cmdName);
|
||||
menuItem.setAttribute("onaction", "return doContextCmd('" + cmdResource.Value + "');");
|
||||
|
||||
menuNode.appendChild(menuItem);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче