From bba296ff758e70717045af6b4ed57023b4c827c5 Mon Sep 17 00:00:00 2001 From: konekoneko Date: Sun, 9 Sep 2012 05:28:20 +0900 Subject: [PATCH] =?utf8?q?=E5=90=8D=E5=89=8D=E3=82=92=E7=A9=BA=E6=AC=84?= =?utf8?q?=E3=81=AB=E3=81=97=E3=81=9F=E7=8A=B6=E6=85=8B=E3=81=A7=E5=85=A5?= =?utf8?q?=E5=AE=A4=E3=81=A7=E3=81=8D=E3=81=AA=E3=81=84=E3=82=88=E3=81=86?= =?utf8?q?=E3=81=AB=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- public/scripts/chatclient.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/public/scripts/chatclient.js b/public/scripts/chatclient.js index 549451a..ca3f4d2 100644 --- a/public/scripts/chatclient.js +++ b/public/scripts/chatclient.js @@ -6,10 +6,11 @@ $entered_message = "%sが入室しました"; $quited_message = "%sが退室しました"; $system_msg_color ="#000000"; $profile_link = "" //プロフィールシステムへのリンク先(%nで名前を表す) -$fanble_message = "[color=blue]%s ファンブル![/color]"; //ファンブル時のメッセージ -$critical_message = "[color=red]%s クリティカル![/color]"; //クリティカル時のメッセージ +$fanble_message = "[color=blue]%s ファンブル![/color]"; +$critical_message = "[color=red]%s クリティカル![/color]"; $send_message = "%sからの送信 %s"; -$failed_connect_message = "failed connect or ip banned"; +$failed_connect_message = "接続に失敗しました"; +$invaild_name_message = "名前を空欄にすることはできません"; //ここから先は変更しないでください $prefix_filelist = "!"; @@ -191,6 +192,12 @@ function createNameList() } function enterEventListener(){ + if(document.enter_form.name.value == "") + { + alert($invaild_name_message); + return; + } + $("#enter_frame").css("display","none"); $("#chat_frame").css("display","block"); -- 2.11.0