Commit 976f40c4 by onuma

Merge branch 'develop_onuma' into 'develop'

#42666 アーカイブ詳細画面で任意ユーザのネームカードを表示し、任意グループを選択しても、該当グループは表示されない。

See merge request !200
parents 9ecee0d3 3d2da3a6
......@@ -49,7 +49,7 @@ ChatList.bindChatSearch = function () {
// iOSキーボード変換検知用
chatSearchInput.on("compositionend", function () {
if (deviceInfo.isIOS()) {
if (deviceInfo.isiOS()) {
var rooms;
var keyword = chatSearchInput.val();
ChatList.searchRoom(keyword, rooms);
......
......@@ -76,7 +76,7 @@ ChatRoom.bindSearchUI = function () {
// iOSキーボード変換検知用
chatSearchInput.on("compositionend", function () {
if (deviceInfo.isIOS()) {
if (deviceInfo.isiOS()) {
let workVal = "";
var keyword = chatSearchInput.val();
ChatRoom.searchMessage(keyword, workVal);
......
......@@ -59,7 +59,7 @@ ChatRoom.bindResize = function () {
}
} else if (beforeHeight < afterHeight) {
$(".room_container").css("margin-bottom", footerHeight);
if (deviceInfo.isIOS()) {
if (deviceInfo.isiOS()) {
window.scrollTo(0, beforeScroll + moreScroll);
} else if (beforeWidth == afterWidth) {
//キーボード非表示
......
......@@ -257,11 +257,6 @@ Contact.insertFavoriteGroup = function (groupID) {
//全グループ検索画面表示。
Contact.refreshAllGroupSearch = function (paramGroupID) {
const groupID = paramGroupID;
if (window.location.pathname.includes("chat_room")) {
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