mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-24 06:48:40 +01:00
Avoid exception if use_time_grid preference is not set
This commit is contained in:
parent
75d51c02f2
commit
984a7f6f72
@ -3601,7 +3601,10 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend(
|
|||||||
*/
|
*/
|
||||||
granularity: function(state) {
|
granularity: function(state) {
|
||||||
var list = egw.preference('use_time_grid','calendar');
|
var list = egw.preference('use_time_grid','calendar');
|
||||||
if(list === 0) return parseInt(egw.preference('interval','calendar')) || 30;
|
if(list === 0 || typeof list === 'undefined')
|
||||||
|
{
|
||||||
|
return parseInt(egw.preference('interval','calendar')) || 30;
|
||||||
|
}
|
||||||
if(typeof list == 'string') list = list.split(',');
|
if(typeof list == 'string') list = list.split(',');
|
||||||
if(!list.indexOf && jQuery.isPlainObject(list))
|
if(!list.indexOf && jQuery.isPlainObject(list))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user