diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-06-25 05:02:01 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-06-25 05:02:01 +0200 |
commit | c3130919c2fa67caa5d7d52124b20388633c5cfa (patch) | |
tree | fa0528d40d592050933c3f88a1f8c549da751b80 /settings/js/apps.js | |
parent | 052bd8efbb39096867fdb2c0922b77f468a45ef9 (diff) | |
download | nextcloud-server-c3130919c2fa67caa5d7d52124b20388633c5cfa.tar.gz nextcloud-server-c3130919c2fa67caa5d7d52124b20388633c5cfa.zip |
Allow direct link to app.
Diffstat (limited to 'settings/js/apps.js')
-rw-r--r-- | settings/js/apps.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js index 224076aba43..cfef894c6fb 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -73,4 +73,13 @@ $(document).ready(function(){ } } }); + + if(appid) { + var item = $('#leftcontent li[data-id="'+appid+'"]'); + if(item) { + item.trigger('click'); + item.addClass('active'); + $('#leftcontent').animate({scrollTop: $(item).offset().top-70}, 'slow','swing'); + } + } }); |