Commit 7ef85b88 authored by Andrew Robert Nicols's avatar Andrew Robert Nicols
Browse files

Swap Edit and Delete buttons for Menus config (Fixes #627820).


Signed-off-by: default avatarAndrew Robert Nicols <andrew.nicols@luns.net.uk>
parent 75a3a885
......@@ -88,17 +88,17 @@ function formatrow (item) {
// item has id, type, name, link, linkedto
var type = eval(item.type);
var linkedto = A({'href':item.linkedto},item.linktext);
var del = INPUT({'type':'button','class':'button','value':{$getstring['delete']}});
connect(del, 'onclick', function () { delitem(item.id); });
var edit = INPUT({'type':'button','class':'button','value':{$getstring['edit']}});
connect(edit, 'onclick', function () { edititem(item); });
var del = INPUT({'type':'button','class':'button','value':{$getstring['delete']}});
connect(del, 'onclick', function () { delitem(item.id); });
var cells = map(
partial(TD,null),
[
type,
item.name,
linkedto,
[del,edit,contextualHelpIcon(null, null, 'core', 'admin', null, 'adminmenuedit')]
[edit,del,contextualHelpIcon(null, null, 'core', 'admin', null, 'adminmenuedit')]
]
);
return TR({'id':'menuitem_'+item.id},cells);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment