Commit 75a3a885 authored by Andrew Robert Nicols's avatar Andrew Robert Nicols
Browse files

Swap Edit and Delete buttons for Group Categories administration (Fixes #627820).


Signed-off-by: default avatarAndrew Robert Nicols <andrew.nicols@luns.net.uk>
parent 490b70cd
......@@ -87,15 +87,15 @@ function displaymenuitems(itemlist) {
// Creates one table row
function formatrow (item) {
// item has id, type, name, link, linkedto
var del = INPUT({'type':'button','class':'s icon btn-del','value':{$getstring['delete']}});
connect(del, 'onclick', function () { delitem(item.id); });
var edit = INPUT({'type':'button','class':'s icon btn-edit','value':{$getstring['edit']}});
connect(edit, 'onclick', function () { edititem(item); });
var del = INPUT({'type':'button','class':'s icon btn-del','value':{$getstring['delete']}});
connect(del, 'onclick', function () { delitem(item.id); });
var cells = map(
partial(TD,null),
[
item.name,
[del,edit]
[edit,del]
]
);
return TR({'id':'menuitem_'+item.id},cells);
......@@ -197,4 +197,4 @@ $smarty->assign('INLINEJAVASCRIPT', $ijs);
$smarty->assign('optionform', $optionform);
$smarty->display('admin/groups/groupcategories.tpl');
?>
\ No newline at end of file
?>
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