projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5aca24b
)
Pman.I18n.js
author
Alan Knowles
<alan@akbkhome.com>
Thu, 6 Oct 2011 08:01:53 +0000
(16:01 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 6 Oct 2011 08:01:53 +0000
(16:01 +0800)
Pman.I18n.js
patch
|
blob
|
history
diff --git
a/Pman.I18n.js
b/Pman.I18n.js
index
113741d
..
22aefe8
100644
(file)
--- 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 ]);