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) { if ($form->IsSubmittedAndValid() === true) {
$this->target->sendCommand($form->createCommand(), $this->view->objects); $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; $deleteData['commentid'] = $object->comment_internal_id;
$iconForm = $cf->iconSubmitForm( $iconForm = $cf->iconSubmitForm(
'img/icons/remove.png', 'img/icons/remove_petrol.png',
'Remove comment', 'Remove comment',
'btn-small', 'link-like',
'removecomment', 'removecomment',
$deleteData $deleteData
); );
$list[] = sprintf( $list[] = sprintf(
"<br />%s [%s] %s (%s): %s\n", "<br />%s [%s] %s (%s): %s\n",
//'<input type="submit" value="x" style="width: 2em" />', $iconForm,
'<a href="#">' . $this->icon('remove_petrol.png') . '</a>' . $iconForm, // Test
$this->escape($comment->comment_author), $this->escape($comment->comment_author),
$this->timeSince($comment->comment_timestamp), $this->timeSince($comment->comment_timestamp),
$comment->comment_type, $comment->comment_type,