summaryrefslogtreecommitdiffstats
path: root/settings/js/apps.js
diff options
context:
space:
mode:
Diffstat (limited to 'settings/js/apps.js')
-rw-r--r--settings/js/apps.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js
index 68a3fa54de7..8bee958ec57 100644
--- a/settings/js/apps.js
+++ b/settings/js/apps.js
@@ -81,7 +81,7 @@ OC.Settings.Apps = OC.Settings.Apps || {
},
updateApp:function(appid, element) {
console.log('updateApp:', appid, element);
- element.val(t('settings','Updateing....'));
+ element.val(t('settings','Updating....'));
$.post(OC.filePath('settings','ajax','updateapp.php'),{appid:appid},function(result) {
if(!result || result.status!='success') {
OC.dialogs.alert(t('settings','Error while updating app'),t('settings','Error'));
@@ -132,12 +132,12 @@ OC.Settings.Apps = OC.Settings.Apps || {
var container = $('#apps');
if(container.children('li[data-id="'+entry.id+'"]').length === 0){
- var li=$('<li></li>');
+ var li=$('<li></li>').attr({class: 'enabled-app'});
li.attr('data-id', entry.id);
- var a=$('<a></a>');
- a.attr('style', 'background-image: url('+entry.icon+')');
+ var img= $('<img></img>').attr({ src: entry.icon, class:'icon'});
+ li.append(img);
+ var a=$('<a></a>').attr('href', entry.href);
a.text(entry.name);
- a.attr('href', entry.href);
li.append(a);
container.append(li);
}