Commit 3d2da3a6 by onuma

contact.htmlへの遷移をcontact.js から namecard.jsに移動。

parent 6948af59
......@@ -74,7 +74,6 @@
<script src="./js/Models/serverinfo.js"></script>
<script src="./js/Models/userinfo.js"></script>
<!-- view -->
<script src="./js/views/contact/contact.js"></script>
<script src="./js/views/contact/namecard.js"></script>
<script src="./js/views/archive/archive.js"></script>
<script>
......
......@@ -172,7 +172,6 @@
<script src="./js/views/chats/chat-room.js"></script>
<script src="./js/views/chats/chat-room-search.js"></script>
<script src="./js/views/chats/chat-room-message.js"></script>
<script src="./js/views/contact/contact.js"></script>
<script src="./js/views/contact/namecard.js"></script>
<script src="./js/common/loading.js"></script>
......
......@@ -257,13 +257,6 @@ Contact.insertFavoriteGroup = function (groupID) {
//全グループ検索画面表示。
Contact.refreshAllGroupSearch = function (paramGroupID) {
const groupID = paramGroupID;
if (window.location.pathname.includes("chat_room")||
window.location.pathname.includes("archive_detail"))
{
if (groupID == "") return;
NativeBridgeDelegate.setToMoveGroupId(groupID);
window.location.href = "contact.html";
}
Common.showLoadingIndicator();
......
......@@ -106,3 +106,14 @@ Namecard.refreshForOnline = function () {
Namecard.refreshForOffline = function () {
$("#favoriteButton").prop("disabled", true);
};
Namecard.moveContactPage = function (paramGroupID) {
const groupID = paramGroupID;
if (window.location.pathname.includes("chat_room") ||
window.location.pathname.includes("archive_detail"))
{
if (groupID == "") return;
NativeBridgeDelegate.setToMoveGroupId(groupID);
window.location.href = "contact.html";
}
}
......@@ -14,7 +14,7 @@
</div>
<div class="modal-body" id="userNameCard-scroll">
{{#groupPathList}}
<li onclick="Contact.refreshAllGroupSearch({{groupId}});"><b>{{groupPath}}</b></li>
<li onclick="Namecard.moveContactPage({{groupId}});"><b>{{groupPath}}</b></li>
{{/groupPathList}}
</div>
<div class="modal-footer border-0 justify-content-center">
......
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