summaryrefslogtreecommitdiffstats
path: root/settings/templates
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-08-04 20:12:18 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-08-04 20:16:32 +0200
commit24af2e8078147578bd435983c1d9a11f13dae8c1 (patch)
tree76f2d8123f0b13c47127b5e61f230c11d83aa9c8 /settings/templates
parenta6ce497dd932fc013301e433c635c6286fffe513 (diff)
downloadnextcloud-server-24af2e8078147578bd435983c1d9a11f13dae8c1.tar.gz
nextcloud-server-24af2e8078147578bd435983c1d9a11f13dae8c1.zip
Load OCS apps in an ajax call to avoid blocking the WUI.
Diffstat (limited to 'settings/templates')
-rw-r--r--settings/templates/apps.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/settings/templates/apps.php b/settings/templates/apps.php
index 6edaf6c5848..66350e5539c 100644
--- a/settings/templates/apps.php
+++ b/settings/templates/apps.php
@@ -11,12 +11,13 @@
</div>
<ul id="leftcontent">
<?php foreach($_['apps'] as $app):?>
- <li <?php if($app['active']) echo 'class="active"'?> data-id="<?php echo $app['id'] ?>">
- <a href="?appid=<?php echo $app['id'] ?>"><?php echo htmlentities($app['name']) ?></a>
+ <li <?php if($app['active']) echo 'class="active"'?> data-id="<?php echo $app['id'] ?>"
+ data-type="<?php echo $app['internal'] ? 'internal' : 'external' ?>" data-installed="1">
+ <a class="app<?php if(!$app['internal']) echo ' externalapp' ?>" href="?appid=<?php echo $app['id'] ?>"><?php echo htmlentities($app['name']) ?></a>
<span class="hidden">
<?php OC_JSON::encodedPrint($app,false) ?>
</span>
- <?php if(!$app['internal']) echo '<small class="externalapp">3rd party</small>' ?>
+ <?php if(!$app['internal']) echo '<small class="externalapp list">3rd party</small>' ?>
</li>
<?php endforeach;?>
</ul>