Skip to content

Commit

Permalink
Fixed issue: Unable to use ClearAll in Ajax mode (navigator complement)
Browse files Browse the repository at this point in the history
  • Loading branch information
lacrioque committed Aug 6, 2018
1 parent 0b805f0 commit f0c9b21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion application/models/TemplateConfig.php
Expand Up @@ -732,7 +732,7 @@ public function getClassAndAttributes()
$aClassAndAttributes['class']['clearallwrapper'] = $aClassAndAttributes['class']['clearallconfirm'] = ""; // No need, adding it if need something after
$aClassAndAttributes['class']['clearalllabel'] = "ls-js-hidden";
$aClassAndAttributes['attr']['clearallconfirm'] = 'value="confirm" name="confirm-clearall" type="checkbox"';
$aClassAndAttributes['attr']['clearallbutton'] = 'type="submit" value="clearall" name="move" data-confirmedby="confirm-clearall"';
$aClassAndAttributes['attr']['clearallbutton'] = 'type="submit" ';
$aClassAndAttributes['class']['clearallbutton'] = "ls-clearaction ls-clearall"; // Not needed, keep it (and adding to twig to be most compatible in future)

// Language changer
Expand Down
Expand Up @@ -8,5 +8,5 @@
<label class="form-group {{ aSurveyInfo.class.clearalllabel }}">
<input {{ aSurveyInfo.attr.clearallconfirm }} class="{{ aSurveyInfo.class.clearallconfirm }}"><span class="control-label">{{gT("Please confirm you want to clear your response?")}}</span>
</label>
<button {{ aSurveyInfo.attr.clearallbutton }} class="{{ aSurveyInfo.class.clearallbutton }} btn btn-link" title="{{ gT('This action need confirmation.') }}">{{gT("Exit and clear survey")}}</button>
<a href="#" data-limesurvey-submit='{ "clearall":"clearall" }' data-confirmedby='{ "confirm-clearall":"confirm" }' {{ aSurveyInfo.attr.clearallbutton }} class="{{ aSurveyInfo.class.clearallbutton }} btn btn-link" title="{{ gT('This action need confirmation.') }}">{{gT("Exit and clear survey")}}</a>
</div>

0 comments on commit f0c9b21

Please sign in to comment.