add spinner to the template so that it can be loaded in time

This commit is contained in:
Bjoern Schiessle 2013-11-27 22:36:47 +01:00
parent e0924a5f07
commit 0219b8b3b9
2 changed files with 3 additions and 1 deletions

View File

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

View File

@ -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=""