X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Pman.I18n.js;fp=Pman.I18n.js;h=22aefe8c5d802d16faf9cb9e606ea66549e643d7;hb=e338b219ced00e8b9ab7daa70127e1edcd44ab17;hp=113741d9affc32cc21e7dfb1613b25fa9d88e14a;hpb=5aca24b7471ea204bf5877390cbf6914d9299dab;p=Pman.Core diff --git a/Pman.I18n.js b/Pman.I18n.js index 113741d9..22aefe8c 100644 --- a/Pman.I18n.js +++ b/Pman.I18n.js @@ -147,6 +147,7 @@ Pman.I18n = { simpleStoreData : function(type, filter) { + filter = typeof(filter) != 'undefined' ? false : filter var lang = 'en'; try { lang = Pman.Login.authUser.lang; @@ -154,7 +155,7 @@ Pman.I18n = { lang = lang || 'en'; var ret = []; Roo.each(Pman.I18n.Data[lang][type], function (o) { - if (typeof(filter) != 'undefined' && filter(o) === false) { + if (filter !== false && filter(o) === false) { return; } ret.push([ o.code, o.title ]);