Permalink
Browse files

redirect after handle signal without JS

  • Loading branch information...
chemix committed Jun 25, 2014
1 parent 151202a commit dfbb0431ab2ff2225f8fba55ae79ee0ece7fabf2
Showing with 8 additions and 0 deletions.
  1. +8 −0 app/presenters/AdminPresenter.php
@@ -28,6 +28,10 @@ public function handleEnablePost($postId)
$this->flashMessage('Post enabled');
$this->redrawControl('flashes');
$this->redrawControl('wallposts');
// F5 protection without JS
if (!$this->isAjax()){
$this->redirect('this');
}
}
}
@@ -38,6 +42,10 @@ public function handleDisablePost($postId)
$this->flashMessage('Post disabled');
$this->redrawControl('flashes');
$this->redrawControl('wallposts');
// F5 protection
if (!$this->isAjax()){
$this->redirect('this');
}
}
}

0 comments on commit dfbb043

Please sign in to comment.