From: gdkhd812
Date: Wed, 16 Oct 2013 10:52:19 +0000 (+0900)
Subject: 過去ログ表示機能を廃止した
X-Git-Url: http://git.osdn.jp/view?p=webchat%2FWebChat.git;a=commitdiff_plain;h=460011fa7341a9be7ef510c411d3ed73dfc953fa
過去ログ表示機能を廃止した
---
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)