add spinner to the template so that it can be loaded in time
This commit is contained in:
parent
e0924a5f07
commit
0219b8b3b9
|
@ -19,7 +19,7 @@ $(document).ready(function(){
|
||||||
success: function(response) {
|
success: function(response) {
|
||||||
if (response.data.migrationCompleted === false) {
|
if (response.data.migrationCompleted === false) {
|
||||||
var message = t('files_encryption', 'Initial encryption started... This can take some time. Please wait.');
|
var message = t('files_encryption', 'Initial encryption started... This can take some time. Please wait.');
|
||||||
$('p[id="message"]').html('<img src="' + OC.imagePath('core', 'loading-dark.gif') + '"/> ' + message);
|
$('span[id="messageText"]').text(message);
|
||||||
$('p[id="message"]').removeClass('hidden').addClass('info');
|
$('p[id="message"]').removeClass('hidden').addClass('info');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<p id="message" class="hidden">
|
<p id="message" class="hidden">
|
||||||
|
<img src="<?php p(\OCP\Util::imagePath('core', 'loading-dark.gif'));?>"/>
|
||||||
|
<span id="messageText"></span>
|
||||||
</p>
|
</p>
|
||||||
<p class="infield grouptop">
|
<p class="infield grouptop">
|
||||||
<input type="text" name="user" id="user" placeholder=""
|
<input type="text" name="user" id="user" placeholder=""
|
||||||
|
|
Loading…
Reference in New Issue