mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-08 23:19:04 +01:00
Avoid error if title_queue is not defined yet
This commit is contained in:
parent
0431ebf38b
commit
82f147f4fe
@ -447,8 +447,8 @@ egw.extend('links', egw.MODULE_GLOBAL, function()
|
|||||||
// cache locally
|
// cache locally
|
||||||
title_cache[app][id] = title;
|
title_cache[app][id] = title;
|
||||||
// call callbacks waiting for title of app/id
|
// call callbacks waiting for title of app/id
|
||||||
if(typeof title_queue[app] != 'undefined' &&
|
if(typeof title_queue[app] !== 'undefined' &&
|
||||||
typeof title_queue[app][id] != "undefined"
|
typeof title_queue[app][id] !== "undefined"
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
for(var i=0; i < title_queue[app][id].length; ++i)
|
for(var i=0; i < title_queue[app][id].length; ++i)
|
||||||
@ -456,8 +456,8 @@ egw.extend('links', egw.MODULE_GLOBAL, function()
|
|||||||
var callback = title_queue[app][id][i];
|
var callback = title_queue[app][id][i];
|
||||||
callback.callback.call(callback.context, title);
|
callback.callback.call(callback.context, title);
|
||||||
}
|
}
|
||||||
|
delete title_queue[app][id];
|
||||||
}
|
}
|
||||||
delete title_queue[app][id];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user