new lightbox interface v1

This commit is contained in:
2019-10-20 16:20:29 +02:00
parent 9a1673e01a
commit 5478f7501f
6 changed files with 38 additions and 18 deletions

View File

@@ -96,8 +96,9 @@ function Spot(asGlobals)
};
this.lang = function(sKey, asParams) {
asParams = asParams || [];
if($.type(asParams) != 'array') asParams = [asParams];
var sParamType = $.type(asParams);
if(sParamType == 'undefined') asParams = [];
else if($.type(asParams) != 'array') asParams = [asParams];
var sLang = '';
if(sKey in self.consts.lang) {