Skip to content
Snippets Groups Projects
Commit 0f82b8ef authored by Robin Appelman's avatar Robin Appelman Committed by Thomas Müller
Browse files

Preserve changed groups when switching between apps

parent 953e1942
Branches
No related tags found
No related merge requests found
...@@ -341,6 +341,11 @@ $(document).ready(function(){ ...@@ -341,6 +341,11 @@ $(document).ready(function(){
var appid = element.data('appid'); var appid = element.data('appid');
if (appid) { if (appid) {
OC.Settings.Apps.enableApp(appid, false, element, groups); 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));
} }
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment