Don't try to translate caption if one was not provided - silences warning when dragging

This commit is contained in:
Nathan Gray 2014-01-11 11:51:46 +00:00
parent 26b8cae767
commit 8140ecf24b

View File

@ -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);