diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-12-06 13:10:33 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-12-13 08:39:38 +0100 |
commit | f0a0e44d2e543c1c0642093a72fc3c2fafdb6350 (patch) | |
tree | 3c85be1632d77adfd8e9251dd72990f64db55837 /settings | |
parent | 5d56eba398357d5b324137ac55997d46d25f0051 (diff) | |
download | nextcloud-server-f0a0e44d2e543c1c0642093a72fc3c2fafdb6350.tar.gz nextcloud-server-f0a0e44d2e543c1c0642093a72fc3c2fafdb6350.zip |
fix broken link on app management page for apps without ocsid - fix #9574, fix #10461
Diffstat (limited to 'settings')
-rw-r--r-- | settings/js/apps.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js index 04fe99636cb..332c09f150e 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -104,7 +104,12 @@ OC.Settings.Apps = OC.Settings.Apps || { if (app.internal === false) { page.find('span.score').show(); page.find('p.appstore').show(); - page.find('a#appstorelink').attr('href', 'http://apps.owncloud.com/content/show.php?content=' + app.id); + var link = page.find('a#appstorelink'); + if(app.ocsid) { + link.attr('href', 'https://apps.owncloud.com/content/show.php?content=' + app.ocsid); + } else { + link.hide(); + } page.find('small.externalapp').hide(); } else { page.find('p.appslink').hide(); |