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
c153ba62
Commit
c153ba62
authored
Jul 20, 2021
by
onuma
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_refactoring_onuma' into 'develop'
isOnile の判定を文字列からbool値に変更した。 See merge request
!197
parents
c565bd21
bf18ef8c
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
14 additions
and
14 deletions
+14
-14
public_new/js/Models/deviceinfo.js
+1
-1
public_new/js/Models/userinfo.js
+1
-1
public_new/js/common/common.js
+2
-2
public_new/js/common/native-bridge-delegate.js
+3
-3
public_new/js/sockets/chat-websocket.js
+1
-1
public_new/js/views/archive/archive.js
+2
-2
public_new/js/views/chats/chat-list.js
+2
-2
public_new/js/views/chats/chat-room-message.js
+1
-1
public_new/js/views/collaboration/collaboration.js
+1
-1
No files found.
public_new/js/Models/deviceinfo.js
View file @
c153ba62
...
...
@@ -28,7 +28,7 @@ var DeviceInfo = class {
}
isMobile
()
{
return
this
.
isMoble
==
"true"
;
return
this
.
isMoble
==
true
;
}
};
...
...
public_new/js/Models/userinfo.js
View file @
c153ba62
NativeBridgeDataSource
.
getMyUserInfo
=
function
()
{
if
(
typeof
android
!=
"undefined"
)
{
return
JSON
.
parse
(
android
.
removeFavoriteGroup
(
groupID
));
return
JSON
.
parse
(
android
.
getMyUserInfo
(
));
}
else
{
return
JSON
.
parse
(
callNativeApp
(
NATIVE_KEY_IOS
.
currentUserInfo
,
{}));
}
...
...
public_new/js/common/common.js
View file @
c153ba62
...
...
@@ -89,7 +89,7 @@ Common.dismissLoadingIndicator = function () {
};
Common
.
refreshForOnline
=
function
()
{
serverInfo
.
isOnline
=
"true"
;
serverInfo
.
isOnline
=
true
;
$
(
".footer_item a"
).
removeClass
(
"ui-state-disabled"
);
if
(
typeof
ChatList
!=
"undefined"
)
{
ChatList
.
refreshForOnline
();
...
...
@@ -103,7 +103,7 @@ Common.refreshForOnline = function () {
};
Common
.
refreshForOffline
=
function
()
{
serverInfo
.
isOnline
=
"false"
;
serverInfo
.
isOnline
=
false
;
$
(
".footer_item a"
).
addClass
(
"ui-state-disabled"
);
if
(
typeof
ChatList
!=
"undefined"
)
{
ChatList
.
refreshForOffline
();
...
...
public_new/js/common/native-bridge-delegate.js
View file @
c153ba62
...
...
@@ -66,7 +66,7 @@ NativeBridgeDelegate.createChatRoom = function (
};
NativeBridgeDelegate
.
updateContactInfo
=
function
()
{
if
(
serverInfo
.
isOnline
!=
"true"
)
{
if
(
serverInfo
.
isOnline
==
false
)
{
return
;
}
NativeBridgeDelegate
.
updateGroupInfo
(
"0"
);
...
...
@@ -82,7 +82,7 @@ NativeBridgeDelegate.updateContactInfo = function () {
};
NativeBridgeDelegate
.
updateGroupInfo
=
function
(
groupID
)
{
if
(
serverInfo
.
isOnline
==
"true"
)
{
if
(
serverInfo
.
isOnline
==
true
)
{
if
(
typeof
android
!=
"undefined"
)
{
// TODO: peacekim:: check this method is right or not
android
.
updateGroupUser
();
...
...
@@ -192,7 +192,7 @@ NativeBridgeDelegate.goHome = function () {
NativeBridgeDelegate
.
updatePreMessage
=
function
(
messageID
)
{
if
(
typeof
android
!=
"undefined"
)
{
if
(
serverInfo
.
isOnline
==
"true"
)
{
if
(
serverInfo
.
isOnline
==
true
)
{
android
.
updatePreMessage
(
messageID
);
}
}
else
{
...
...
public_new/js/sockets/chat-websocket.js
View file @
c153ba62
...
...
@@ -10,7 +10,7 @@ CHAT_SOCKET.socketCheck = function () {
};
CHAT_SOCKET
.
connectSocket
=
function
()
{
if
(
serverInfo
.
isOnline
==
"true"
)
{
if
(
serverInfo
.
isOnline
==
true
)
{
socket
=
io
(
serverInfo
.
chatURL
);
setSocketAction
();
}
else
{
...
...
public_new/js/views/archive/archive.js
View file @
c153ba62
...
...
@@ -115,7 +115,7 @@ ArchiveUI.refreshArchiveDetailScreen = function (archiveId) {
// 初期化
$
(
"#archiveDetail"
).
html
(
""
);
if
(
serverInfo
.
isOnline
==
"true"
)
{
if
(
serverInfo
.
isOnline
==
true
)
{
NativeBridgeDelegate
.
updateArchiveDetail
(
archiveId
);
}
...
...
@@ -303,7 +303,7 @@ ArchiveUI.refreshArchiveScreen = function () {
const
archiveTemplate
=
getTemplate
(
TemplateURL
.
ARCHIVE
);
// アーカイブ一覧取得
if
(
serverInfo
.
isOnline
==
"true"
)
{
if
(
serverInfo
.
isOnline
==
true
)
{
NativeBridgeDelegate
.
updateArchiveList
();
}
...
...
public_new/js/views/chats/chat-list.js
View file @
c153ba62
...
...
@@ -58,7 +58,7 @@ ChatList.bindChatSearch = function () {
};
ChatList
.
refreshRoomList
=
function
(
roomType
)
{
if
(
serverInfo
.
isOnline
==
"true"
)
{
if
(
serverInfo
.
isOnline
==
true
)
{
Common
.
refreshForOnline
();
}
else
{
Common
.
refreshForOffline
();
...
...
@@ -76,7 +76,7 @@ ChatList.refreshRoomList = function (roomType) {
ChatList
.
selectTab
(
roomType
);
// update room info in native db
if
(
serverInfo
.
isOnline
==
"true"
)
{
if
(
serverInfo
.
isOnline
==
true
)
{
NativeBridgeDelegate
.
updateRoomList
();
}
...
...
public_new/js/views/chats/chat-room-message.js
View file @
c153ba62
...
...
@@ -78,7 +78,7 @@ ChatRoom.loadMessages = function (joinRoomID, joinRoomName) {
let
roomID
=
joinRoomID
.
replace
(
/
[
'"
]
+/g
,
""
);
roomName
=
joinRoomName
;
// 画面更新
if
(
serverInfo
.
isOnline
==
"true"
)
{
if
(
serverInfo
.
isOnline
==
true
)
{
Common
.
refreshForOnline
();
NativeBridgeDelegate
.
updateMessages
(
roomID
);
}
else
{
...
...
public_new/js/views/collaboration/collaboration.js
View file @
c153ba62
...
...
@@ -155,7 +155,7 @@ CollaborationUI.insertFavoriteUserInCollaboration = function (shopMemberID) {
};
CollaborationUI
.
refreshForOffline
=
function
()
{
serverInfo
.
isOnline
=
"false"
;
serverInfo
.
isOnline
=
false
;
if
(
typeof
coview_api
==
"undefined"
)
{
return
;
}
...
...
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