From 460011fa7341a9be7ef510c411d3ed73dfc953fa Mon Sep 17 00:00:00 2001 From: gdkhd812 Date: Wed, 16 Oct 2013 19:52:19 +0900 Subject: [PATCH] =?utf8?q?=E9=81=8E=E5=8E=BB=E3=83=AD=E3=82=B0=E8=A1=A8?= =?utf8?q?=E7=A4=BA=E6=A9=9F=E8=83=BD=E3=82=92=E5=BB=83=E6=AD=A2=E3=81=97?= =?utf8?q?=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- chat.js | 10 ---------- public/chat.ejs | 3 --- public/scripts/chatclient.js | 29 ----------------------------- 3 files changed, 42 deletions(-) diff --git a/chat.js b/chat.js index 767862e..4370bbe 100644 --- a/chat.js +++ b/chat.js @@ -443,9 +443,6 @@ function ParseConnect(socket) socket.json.emit("send romcount",romcount); socket.json.broadcast.emit("send romcount",romcount); - socket.on("get pastLogList", function (msg) { - ParseGetPastLogList(socket,msg); - }); socket.on("get pastLog", function (msg) { ParseGetPastLog(socket,msg); }); @@ -652,13 +649,6 @@ function GetRoomNumberFromName(name) throw "GetRoomNumberFromName error"; } -function ParseGetPastLogList(socket,msg) -{ - var list = fs.readdir($log_directory,function(err,files){ - socket.emit("req pastloglist",files); - }); -} - function ParseGetPastLog(socket,file) { if(file == "") diff --git a/public/chat.ejs b/public/chat.ejs index 5fe2e60..786c538 100644 --- a/public/chat.ejs +++ b/public/chat.ejs @@ -126,9 +126,6 @@

- 過去ログ - -

diff --git a/public/scripts/chatclient.js b/public/scripts/chatclient.js index 1010810..9657c7e 100644 --- a/public/scripts/chatclient.js +++ b/public/scripts/chatclient.js @@ -44,7 +44,6 @@ $(document).ready(function(){ $("input[name=close]").click(function(e){ $("#help_frame").css("display","none"); }); - $("input[name=openPastlog]").click(openPastlogEventListener); $("#whisper_list_view").click(function(e){ $("#whisper_list").toggle(); }); @@ -61,7 +60,6 @@ $(document).ready(function(){ $socket.on("connect",function(){ $socket.on("req pastlog",pastLogEventListerner); $socket.on("req msg",getMessageEventListerner); - $socket.on("req pastloglist",CreatePastLogList); }); }); @@ -93,7 +91,6 @@ function sendRoomInfoListerner(info) $("#enter_message").append(msg); if(logflag) { - $socket.json.emit("get pastLogList",{rno:document.chat_form.rno.value}); getCurretLog(); } } @@ -114,23 +111,6 @@ function CreateColorList() } } -function CreatePastLogList(file) -{ - $("#enter_frame form select[name=past]").empty(); - var rno = document.chat_form.rno.value; - var pattern = $pastlogfile_pattern.replace("%d",rno); - for(var i = 0; i < file.length; i++) - { - var logname = file[i]; - if(!logname.match(pattern)) - continue; - var element = document.createElement("option"); - element.value = logname; - element.appendChild(document.createTextNode(logname)); - $("#enter_frame form select[name=past]").append(element); - } -} - function getCurretLog() { var rno = document.chat_form.rno.value; @@ -138,15 +118,6 @@ function getCurretLog() $socket.emit("get pastLog",url); } -function openPastlogEventListener() -{ - $tid = 0; - $("#message").empty(); - $("#namelist").empty(); - var url = document.enter_form.past.options[document.enter_form.past.selectedIndex].value; - $socket.emit("get pastLog",url); -} - function pastLogEventListerner(msg) { if(IsRomMode() && $roominfo.type != 0 && $roominfo.admin == false) -- 2.11.0