mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
return expected granularity when nothing or 0 is set for use_time_grid
This commit is contained in:
parent
845d7d20a7
commit
e3f63c2564
@ -3426,6 +3426,7 @@ app.classes.calendar = 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(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