aboutsummaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-05-08 11:18:41 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-06-03 12:42:36 +0200
commit0f82b8efb318e30a97bf7033776cc7d330d73d1d (patch)
tree06246c2a1806218f2948ee72830f2e8789ba9ad3 /settings
parent953e194245a519eebce0e36cd8ac27a59e8657bd (diff)
downloadnextcloud-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.js5
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));
}
});