forked from extern/egroupware
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
|
// 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);
|
elem.caption = egw.lang(elem.caption);
|
||||||
if (typeof elem.hint == "string") elem.hint = egw.lang(elem.hint);
|
if (typeof elem.hint == "string") elem.hint = egw.lang(elem.hint);
|
||||||
|
Loading…
Reference in New Issue
Block a user