Plugin: whispeak scape lang var - refs BT#15941

pull/3377/head
Angel Fernando Quiroz Campos 6 years ago
parent fdcf31ca7a
commit 34b6113fe5
  1. 9
      plugin/whispeakauth/view/quiz_question.html.twig

@ -1,7 +1,7 @@
<div class="text-center">
<p>{{ 'YouNeedToIdentifyYourselfToAnswerThisQuestion'|get_plugin_lang('WhispeakAuthPlugin') }}</p>
<button type="button" class="btn btn-info" id="whispeak-question-{{ question }}" data-loading-text="{{ 'PleaseWaitWhileLoading'|get_plugin_lang('WhispeakAuthPlugin') }}">
<button type="button" class="btn btn-info" id="whispeak-question-{{ question }}" data-loading-text="{{ 'PleaseWaitWhileLoading'|get_plugin_lang('WhispeakAuthPlugin')|escape('html') }}">
{{ 'IdentifyMe'|get_plugin_lang('WhispeakAuthPlugin') }}
</button>
</div>
@ -13,11 +13,12 @@
originalText = $btnTrigger.text(),
$modal = $('#global-modal'),
$modalTitle = $modal.find('.modal-title'),
$modalBody = $modal.find('.modal-body');
$modalBody = $modal.find('.modal-body'),
$originalLoadingText = $btnTrigger.data('loading-text');
$btnTrigger.text($btnTrigger.data('loading-text')).prop('disabled', true);
$btnTrigger.text($originalLoadingText).prop('disabled', true);
$modalTitle.text('{{ 'PleaseWaitWhileLoading'|get_plugin_lang('WhispeakAuthPlugin') }}');
$modalTitle.text($originalLoadingText);
$modalBody.html('');
$modal.modal('show');

Loading…
Cancel
Save