Add missing loading indicator for enabled apps

* happened when an app gets activated, because the
  new appended HTML doesn't contain the loading
  image
* fixes #15806
This commit is contained in:
Morris Jobke 2015-04-23 21:39:59 +02:00
parent a672e9d556
commit 62bac7de91
1 changed files with 2 additions and 0 deletions

View File

@ -321,8 +321,10 @@ OC.Settings.Apps = OC.Settings.Apps || {
var img= $('<img class="app-icon"/>').attr({ src: entry.icon}); var img= $('<img class="app-icon"/>').attr({ src: entry.icon});
var a=$('<a></a>').attr('href', entry.href); var a=$('<a></a>').attr('href', entry.href);
var filename=$('<span></span>'); var filename=$('<span></span>');
var loading = $('<div class="icon-loading-dark"></div>').css('display', 'none');
filename.text(entry.name); filename.text(entry.name);
a.prepend(filename); a.prepend(filename);
a.prepend(loading);
a.prepend(img); a.prepend(img);
li.append(a); li.append(a);