diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-05-08 11:18:41 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-06-03 12:42:36 +0200 |
commit | 0f82b8efb318e30a97bf7033776cc7d330d73d1d (patch) | |
tree | 06246c2a1806218f2948ee72830f2e8789ba9ad3 /settings | |
parent | 953e194245a519eebce0e36cd8ac27a59e8657bd (diff) | |
download | nextcloud-server-0f82b8efb318e30a97bf7033776cc7d330d73d1d.tar.gz nextcloud-server-0f82b8efb318e30a97bf7033776cc7d330d73d1d.zip |
Preserve changed groups when switching between apps
Diffstat (limited to 'settings')
-rw-r--r-- | settings/js/apps.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/settings/js/apps.js b/settings/js/apps.js index eec5532d5ab..f50914157a6 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -341,6 +341,11 @@ $(document).ready(function(){ var appid = element.data('appid'); if (appid) { OC.Settings.Apps.enableApp(appid, false, element, groups); + var li = $('[data-id="'+appid+'"'); + var app = OC.get('appData_' + $(li).data('id')); + app.groups = groups; + li.data('groups', groups); + li.attr('data-groups', JSON.stringify(groups)); } }); |