mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 18:03:39 +01:00
Don't try to translate caption if one was not provided - silences warning when dragging
This commit is contained in:
parent
26b8cae767
commit
8140ecf24b
@ -351,7 +351,7 @@ egwAction.prototype.updateActions = function(_actions, _app)
|
||||
}
|
||||
|
||||
// translate caption
|
||||
if (typeof elem.no_lang == "undefined" || !elem.no_lang)
|
||||
if (elem.caption && (typeof elem.no_lang == "undefined" || !elem.no_lang))
|
||||
{
|
||||
elem.caption = egw.lang(elem.caption);
|
||||
if (typeof elem.hint == "string") elem.hint = egw.lang(elem.hint);
|
||||
|
Loading…
Reference in New Issue
Block a user