Skip to content

Commit

Permalink
Dev: Fixed issue : broken HTML validator after save
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnoulle committed Mar 15, 2016
1 parent 039b96f commit 761f11d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions application/controllers/survey/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -605,10 +605,9 @@ function action()
$tmp = new SurveyRuntimeHelper();
$tmp->run($surveyid,$redata);

if (isset($_POST['saveall']) || isset($flashmessage))
if (App()->request->getPost('saveall') || isset($flashmessage))
{
// TODO: This is echoed after </body> and </html>
echo "<script type='text/javascript'> $(document).ready( function() { alert('".gT("Your responses were successfully saved.","js")."');}) </script>";
App()->clientScript->registerScript("saveflashmessage","alert('".gT("Your responses were successfully saved.","js")."');",CClientScript::POS_READY);
}
}

Expand Down

0 comments on commit 761f11d

Please sign in to comment.