Skip to content

Commit

Permalink
Fixed issue: Custom templates have a Open Modal instead of a exit and…
Browse files Browse the repository at this point in the history
… clear button
  • Loading branch information
markusfluer committed Sep 8, 2016
1 parent cc0c065 commit 4ee7b92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/replacements_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ function templatereplace($line, $replacements = array(), &$redata = array(), $de
}
if (isset($surveyid) && !$iscompleted)
{
$_clearall = TbHtml::button('Click me to open modal', array(
$_clearall = TbHtml::button(gT("Exit and clear survey"), array(
'class' => "clearall button btn btn-default btn-lg col-xs-4 hidden",
'data-toggle' => 'modal',
'data-target' => '#clearallConfirmation',
Expand Down

1 comment on commit 4ee7b92

@Shnoulle
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one think more :

  1. when click no : you must reactivate other button : https://github.com/LimeSurvey/LimeSurvey/blob/master/scripts/survey_runtime.js#L84
  2. I don't think the action for yes is OK actually ? If don't use the link at top.

Please sign in to comment.