Preserve changed groups when switching between apps

This commit is contained in:
Robin Appelman 2014-05-08 11:18:41 +02:00 committed by Thomas Müller
parent 953e194245
commit 0f82b8efb3
1 changed files with 5 additions and 0 deletions

View File

@ -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));
}
});