return expected granularity when nothing or 0 is set for use_time_grid

This commit is contained in:
Klaus Leithoff 2016-02-05 15:00:34 +00:00
parent 845d7d20a7
commit e3f63c2564

View File

@ -3426,6 +3426,7 @@ app.classes.calendar = AppJS.extend(
*/
granularity: function(state) {
var list = egw.preference('use_time_grid','calendar');
if(list === 0) return parseInt(egw.preference('interval','calendar')) || 30;
if(typeof list == 'string') list = list.split(',');
if(!list.indexOf && jQuery.isPlainObject(list))
{