Skip to content

Commit

Permalink
Fixed issue #17801: No way to go to submit button in create group or …
Browse files Browse the repository at this point in the history
…question form with keyboard (#2195)

* Fixed issue #17801: No way to go to submit button in create group or question form with keyboard

* Revert "Fixed issue #17801: No way to go to submit button in create group or question form with keyboard"

This reverts commit 26f1611.

* Fixed issue #17801: No way to go to submit button in create group or question form with keyboard

Co-authored-by: encuestabizdevgit <devgit@encuesta.biz>
  • Loading branch information
gabrieljenik and encuestabizdevgit committed Jan 11, 2022
1 parent 270078b commit 26f0398
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Expand Up @@ -6,23 +6,23 @@
?>

<!-- Save -->
<a id="save-button" class="btn btn-success pull-right" role="button">
<button id="save-button" class="btn btn-success pull-right" type="button">
<i class="fa fa-check"></i>
<?php eT('Save'); ?>
</a>
</button>
<!-- Back Button -->
<a class="btn btn-default" href="<?php echo $backUrl ?>" role="button">
<span class="fa fa-backward"></span>
&nbsp;&nbsp;
<?php eT('Back') ?>
</a>
<!-- Save and add question -->
<a class="btn btn-default" id='save-and-new-question-button' role="button">
<button class="btn btn-default" id='save-and-new-question-button' type="button">
<span class="fa fa-plus"></span>
<?php eT('Save & add question'); ?>
</a>
</button>
<!-- Save and new group -->
<a class="btn btn-default" id='save-and-new-button' role="button">
<button class="btn btn-default" id='save-and-new-button' type="button">
<span class="fa fa-plus"></span>
<?php eT('Save & add group'); ?>
</a>
</button>
Expand Up @@ -27,29 +27,29 @@

<!-- Save and close -->
<?php if(!empty($showSaveAndCloseButton)): ?>
<a
<button
id="save-and-close-button-create-question"
class="btn btn-default"
role="button"
type="button"
onclick="return LS.questionEditor.checkIfSaveIsValid(event, 'overview');"
>
<i class="fa fa-check-square"></i>
<?php eT("Save and close");?>
</a>
</button>
<?php endif; ?>

<!-- Save -->
<?php if(!empty($showSaveButton)): ?>
<a
<button
id="save-button-create-question"
class="btn btn-success"
role="button"
type="button"
<?php if ($oQuestion->qid !== 0): // Only enable Ajax save for edit question, not create question. ?>
data-save-with-ajax="true"
<?php endif; ?>
onclick="return LS.questionEditor.checkIfSaveIsValid(event, 'editor');"
>
<i class="fa fa-check"></i>
<?php eT("Save");?>
</a>
</button>
<?php endif; ?>

0 comments on commit 26f0398

Please sign in to comment.