Fix weekview shown as list when preference was none

This commit is contained in:
Nathan Gray 2016-02-04 19:47:57 +00:00
parent 069da4dace
commit db7528b249

View File

@ -3416,7 +3416,7 @@ app.classes.calendar = AppJS.extend(
* How big or small are the displayed time chunks?
*/
granularity: function(state) {
var list = egw.preference('use_time_grid','calendar') || 'weekN';
var list = egw.preference('use_time_grid','calendar');
if(typeof list == 'string') list = list.split(',');
if(!list.indexOf && jQuery.isPlainObject(list))
{