OSDN Git Service
(root)
/
webchat
/
WebChat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5eeb421
)
IsNotEmptyがfalseのフィールドでデーターが空の場合、undefinedが書き込まれてしまうバグを修正した
author
konekoneko
<jbh03215@hotmail.co.jp>
Mon, 6 May 2013 07:23:35 +0000
(16:23 +0900)
committer
konekoneko
<jbh03215@hotmail.co.jp>
Mon, 6 May 2013 07:23:35 +0000
(16:23 +0900)
profile.js
patch
|
blob
|
history
diff --git
a/profile.js
b/profile.js
index
9b0a61c
..
f42a1ee
100644
(file)
--- a/
profile.js
+++ b/
profile.js
@@
-336,7
+336,8
@@
function ProfileCollection()
}
\r
else if(config.alias[key].visible_edit)
\r
{
\r
- if(data[key] == "")
\r
+ console.log("name:"+key+" data:"+data[key]);
\r
+ if(data[key] == "" && typeof(config.alias[key].defaultvalue) != "undefined")
\r
item[key] = config.alias[key].defaultvalue;
\r
else
\r
item[key] = data[key];
\r