From: konekoneko Date: Tue, 27 Nov 2012 19:02:30 +0000 (+0900) Subject: 不要な条件分岐をなくした X-Git-Url: http://git.osdn.jp/view?a=commitdiff_plain;h=3980486d1688c17f23d1f72ff801fddcb76f058b;p=webchat%2FWebChat.git 不要な条件分岐をなくした --- diff --git a/public/profile/edit.ejs b/public/profile/edit.ejs index f207dcd..f4ef394 100644 --- a/public/profile/edit.ejs +++ b/public/profile/edit.ejs @@ -23,16 +23,14 @@ <% for(var key in alias) {%> - <% if(typeof alias[key] != "undefined") {%> - <%= alias[key] %> - - <% if(inputtype[key] == "text" || inputtype[key] == "hiddentext"){ %> - - <% }else if(inputtype[key] == "textarea"){ %> - - <% } %> - + <%= alias[key] %> + + <% if(inputtype[key] == "text"){ %> + + <% }else if(inputtype[key] == "textarea"){ %> + <% } %> + <% } %> diff --git a/public/profile/registor.ejs b/public/profile/registor.ejs index e8b749f..2f447b2 100644 --- a/public/profile/registor.ejs +++ b/public/profile/registor.ejs @@ -20,16 +20,14 @@ <% for(var key in alias) {%> - <% if(typeof alias[key] != "undefined" && typeof inputtype[key] != "undefined") {%> - <%= alias[key] %> - - <% if(inputtype[key] == "text"){ %> - - <% }else if(inputtype[key] == "textarea"){ %> - - <% } %> - + <%= alias[key] %> + + <% if(inputtype[key] == "text"){ %> + + <% }else if(inputtype[key] == "textarea"){ %> + <% } %> + <% } %>