|
|
|
|
@ -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'); |
|
|
|
|
|
|
|
|
|
|