Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
chat_webview
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abookCommunication
chat_webview
Commits
617ad507
Commit
617ad507
authored
Apr 20, 2021
by
Kang Donghun
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bugfix/#545_メッセージ欄などが非活性化されていない' into 'release_sp3'
#42167 オフラインにしても、メッセージ欄などが非活性化されていない See merge request
!71
parents
e8b1eec1
4c13c6c8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
10 deletions
+15
-10
public_new/chat_room.html
+1
-0
public_new/js/chat-ui.js
+14
-10
No files found.
public_new/chat_room.html
View file @
617ad507
...
...
@@ -10,6 +10,7 @@
<!--<link rel="stylesheet" href="./css/notosansjp.css">-->
<link
href=
"./fontawesome/css/all.css"
rel=
"stylesheet"
>
<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/chat.css"
>
<link
rel=
"stylesheet"
href=
"./css/loading.css"
>
...
...
public_new/js/chat-ui.js
View file @
617ad507
...
...
@@ -2346,13 +2346,15 @@ CHAT_UI.refreshAllGroupForAddUser = function(paramGroupId) {
CHAT_UI
.
refreshForOnline
=
function
()
{
IS_ONLINE
=
'true'
;
$
(
'.craeteRoomButton'
).
show
();
$
(
'#messageSend'
).
removeClass
(
'disabled'
);
$
(
'#messageSend'
).
attr
(
'disabled'
,
false
);
$
(
'#favoriteButton'
).
attr
(
'disabled'
,
false
);
$
(
'.footer_item a'
).
removeClass
(
'ui-state-disabled'
);
$
(
'#videoUploadButton'
).
removeClass
(
'ui-state-disabled'
);
$
(
'#imageInputButton'
).
removeClass
(
'ui-state-disabled'
);
$
(
'#messageSend'
).
prop
(
'disabled'
,
false
);
$
(
'#messageInput'
).
prop
(
'disabled'
,
false
);
$
(
'#messageInput'
).
prop
(
'placeholder'
,
'メッセージを入力してください'
);
$
(
'#favoriteButton'
).
prop
(
'disabled'
,
false
);
$
(
'#roomMenu'
).
show
();
$
(
'.attach_file'
).
show
();
$
(
'.fa-download'
).
show
();
$
(
'.chat_room_footer'
).
show
();
if
(
typeof
$
(
'#roomTitle'
).
val
()
!=
'undefined'
)
{
CHAT_SOCKET
.
connectSocket
();
socket
.
emit
(
'join'
,
CHAT
.
globalLoginParameter
,
function
()
{
...
...
@@ -2363,13 +2365,15 @@ CHAT_UI.refreshForOnline = function() {
CHAT_UI
.
refreshForOffline
=
function
()
{
IS_ONLINE
=
'false'
;
$
(
'.craeteRoomButton'
).
hide
();
$
(
'#messageSend'
).
addClass
(
'disabled'
);
$
(
'#messageSend'
).
attr
(
'disabled'
,
true
);
$
(
'#favoriteButton'
).
attr
(
'disabled'
,
true
);
$
(
'.footer_item a'
).
addClass
(
'ui-state-disabled'
);
$
(
'#videoUploadButton'
).
addClass
(
'ui-state-disabled'
);
$
(
'#imageInputButton'
).
addClass
(
'ui-state-disabled'
);
$
(
'#messageSend'
).
prop
(
'disabled'
,
true
);
$
(
'#messageInput'
).
prop
(
'disabled'
,
true
);
$
(
'#messageInput'
).
prop
(
'placeholder'
,
'ネットワークに接続できません'
);
$
(
'#favoriteButton'
).
prop
(
'disabled'
,
true
);
$
(
'#roomMenu'
).
hide
();
$
(
'.attach_file'
).
hide
();
$
(
'.fa-download'
).
hide
();
$
(
'.chat_room_footer'
).
hide
();
}
CHAT_UI
.
displayExistRoom
=
function
(
roomId
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment