Commit 617ad507 by Kang Donghun

Merge branch 'bugfix/#545_メッセージ欄などが非活性化されていない' into 'release_sp3'

#42167 オフラインにしても、メッセージ欄などが非活性化されていない

See merge request !71
parents e8b1eec1 4c13c6c8
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
<!--<link rel="stylesheet" href="./css/notosansjp.css">--> <!--<link rel="stylesheet" href="./css/notosansjp.css">-->
<link href="./fontawesome/css/all.css" rel="stylesheet"> <link href="./fontawesome/css/all.css" rel="stylesheet">
<link rel="stylesheet" href="./css/bootstrap.min.css"> <link rel="stylesheet" href="./css/bootstrap.min.css">
<link rel="stylesheet" href="./css/jquery-ui.min.css">
<link rel="stylesheet" href="./css/common.css"> <link rel="stylesheet" href="./css/common.css">
<link rel="stylesheet" href="./css/chat.css"> <link rel="stylesheet" href="./css/chat.css">
<link rel="stylesheet" href="./css/loading.css"> <link rel="stylesheet" href="./css/loading.css">
......
...@@ -2346,13 +2346,15 @@ CHAT_UI.refreshAllGroupForAddUser = function(paramGroupId) { ...@@ -2346,13 +2346,15 @@ CHAT_UI.refreshAllGroupForAddUser = function(paramGroupId) {
CHAT_UI.refreshForOnline = function() { CHAT_UI.refreshForOnline = function() {
IS_ONLINE = 'true'; IS_ONLINE = 'true';
$('.craeteRoomButton').show(); $('.craeteRoomButton').show();
$('#messageSend').removeClass('disabled'); $('.footer_item a').removeClass('ui-state-disabled');
$('#messageSend').attr('disabled', false); $('#videoUploadButton').removeClass('ui-state-disabled');
$('#favoriteButton').attr('disabled', false); $('#imageInputButton').removeClass('ui-state-disabled');
$('#messageSend').prop('disabled', false);
$('#messageInput').prop('disabled', false);
$('#messageInput').prop('placeholder', 'メッセージを入力してください');
$('#favoriteButton').prop('disabled', false);
$('#roomMenu').show(); $('#roomMenu').show();
$('.attach_file').show();
$('.fa-download').show(); $('.fa-download').show();
$('.chat_room_footer').show();
if (typeof $('#roomTitle').val() != 'undefined') { if (typeof $('#roomTitle').val() != 'undefined') {
CHAT_SOCKET.connectSocket(); CHAT_SOCKET.connectSocket();
socket.emit('join', CHAT.globalLoginParameter, function() { socket.emit('join', CHAT.globalLoginParameter, function() {
...@@ -2363,13 +2365,15 @@ CHAT_UI.refreshForOnline = function() { ...@@ -2363,13 +2365,15 @@ CHAT_UI.refreshForOnline = function() {
CHAT_UI.refreshForOffline = function() { CHAT_UI.refreshForOffline = function() {
IS_ONLINE = 'false'; IS_ONLINE = 'false';
$('.craeteRoomButton').hide(); $('.craeteRoomButton').hide();
$('#messageSend').addClass('disabled'); $('.footer_item a').addClass('ui-state-disabled');
$('#messageSend').attr('disabled', true); $('#videoUploadButton').addClass('ui-state-disabled');
$('#favoriteButton').attr('disabled', true); $('#imageInputButton').addClass('ui-state-disabled');
$('#messageSend').prop('disabled', true);
$('#messageInput').prop('disabled', true);
$('#messageInput').prop('placeholder', 'ネットワークに接続できません');
$('#favoriteButton').prop('disabled', true);
$('#roomMenu').hide(); $('#roomMenu').hide();
$('.attach_file').hide();
$('.fa-download').hide(); $('.fa-download').hide();
$('.chat_room_footer').hide();
} }
CHAT_UI.displayExistRoom = function(roomId) { CHAT_UI.displayExistRoom = function(roomId) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment