Commit 27257207 authored by Martyn Smith's avatar Martyn Smith Committed by Martyn Smith
Browse files

Fixed edit button in IE

parent 5e1b18fe
......@@ -42,8 +42,13 @@ var grouplist = new TableRenderer(
'name',
'count',
function(r) {
var deleteLink = BUTTON({'type':'button', 'class': 'button'}, {$enc_delete});
var editLink = BUTTON({'type': 'button', 'class': 'button'}, {$enc_edit});
connect(editLink, 'onclick', function (e) {
e.stop();
window.location.href = 'edit.php?id=' + r.id;
});
var deleteLink = BUTTON({'type':'button', 'class': 'button'}, {$enc_delete});
connect(deleteLink, 'onclick', function (e) {
e.stop();
......@@ -64,13 +69,10 @@ var grouplist = new TableRenderer(
return TD(
null,
FORM(
{'action': 'edit.php?id=' + r.id, 'method': 'post'},
BUTTON({'type': 'submit', 'class': 'button'}, {$enc_edit}),
' ',
deleteLink
)
);
editLink,
' ',
deleteLink
)
}
]
);
......
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