Prevent js error

This commit is contained in:
Robin Appelman 2014-04-21 13:00:29 +02:00 committed by Thomas Müller
parent c09852e006
commit 7272779456
1 changed files with 3 additions and 1 deletions

View File

@ -277,7 +277,9 @@ OC.Settings.Apps = OC.Settings.Apps || {
$(document).ready(function(){ $(document).ready(function(){
$('#app-navigation ul li').each(function(index,li){ $('#app-navigation ul li').each(function(index,li){
var app = OC.get('appData_'+$(li).data('id')); var app = OC.get('appData_'+$(li).data('id'));
if (app) {
app.groups= $(li).data('groups') || []; app.groups= $(li).data('groups') || [];
}
$(li).data('app',app); $(li).data('app',app);
$(this).find('span.hidden').remove(); $(this).find('span.hidden').remove();
}); });