Style comment removal. Did it ever work? It doesn't...

This commit is contained in:
Thomas Gelf 2014-03-08 17:16:42 +01:00
parent ba59d938a1
commit 8e44c66850
2 changed files with 4 additions and 4 deletions

View File

@ -923,6 +923,7 @@ class Monitoring_CommandController extends ActionController
if ($form->IsSubmittedAndValid() === true) {
$this->target->sendCommand($form->createCommand(), $this->view->objects);
Notification::success('Comment removal has been requested');
}
}

View File

@ -21,17 +21,16 @@ foreach ($object->comments as $comment) {
$deleteData['commentid'] = $object->comment_internal_id;
$iconForm = $cf->iconSubmitForm(
'img/icons/remove.png',
'img/icons/remove_petrol.png',
'Remove comment',
'btn-small',
'link-like',
'removecomment',
$deleteData
);
$list[] = sprintf(
"<br />%s [%s] %s (%s): %s\n",
//'<input type="submit" value="x" style="width: 2em" />',
'<a href="#">' . $this->icon('remove_petrol.png') . '</a>' . $iconForm, // Test
$iconForm,
$this->escape($comment->comment_author),
$this->timeSince($comment->comment_timestamp),
$comment->comment_type,