Preserve changed groups when switching between apps
This commit is contained in:
parent
953e194245
commit
0f82b8efb3
1 changed files with 5 additions and 0 deletions
|
@ -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));
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue