Commit 03210a55 by Lee Daehyun

contact グループ画面からの全社の場合トップボタンと上位ボタンの修正

parent 2e455b85
......@@ -92,7 +92,7 @@
<div class="chat_list">
<!-- 全グループ -->
<ul class="p-0 chat_make_room_list">
<li class="d-flex align-items-center">
<li class="d-flex align-items-center" id="rootGroupArea">
<a href="#" class="w-100" id="rootGroupBtn">
<div class="chat_item d-flex flex-row align-items-center">
<div class="chat_item_l">
......@@ -110,7 +110,7 @@
</div>
</a>
</li>
<li class="d-flex align-items-center">
<li class="d-flex align-items-center" id="parentGroupArea">
<a href="#" class="w-100" id="parentGroupBtn">
<div class="chat_item d-flex flex-row align-items-center">
<div class="chat_item_l">
......
......@@ -1309,7 +1309,8 @@ CHAT_UI.insertFavoriteGroup = function(groupId) {
};
//全グループ検索画面表示。
CHAT_UI.refreshAllGroupSearch = function(groupId) {
CHAT_UI.refreshAllGroupSearch = function(paramGroupId) {
var groupId = paramGroupId;
CHAT_UI.showLoadingIndicator();
$('#userNameCard').modal('hide');
$('.cancel').addClass('none');
......@@ -1320,7 +1321,6 @@ CHAT_UI.refreshAllGroupSearch = function(groupId) {
$('.overlay_src_msg').empty();
$('#tabAllGroup').prop('checked', true);
//オンライン状態であればサーバから情報更新。
if (IS_ONLINE == 'true') {
android.updateGroupInfo(groupId);
......@@ -1343,11 +1343,18 @@ CHAT_UI.refreshAllGroupSearch = function(groupId) {
});
}
if (typeof result.rootGroupId !== 'undefined') {
if (paramGroupId == 0) { groupId = result.rootGroupId }
$('#rootGroupBtn').on('click', function() {
CHAT_UI.refreshAllGroupSearch(result.rootGroupId);
});
}
if (groupId == result.rootGroupId || paramGroupId == '0') {
$('#rootGroupArea').addClass('none');
$('#parentGroupArea').addClass('none');
} else {
$('#rootGroupArea').removeClass('none');
$('#parentGroupArea').removeClass('none');
}
//該当グループのパースを表示。
var groupPathTemplate;
$.get({ url: "./template/template_group_path.html", async: false }
......@@ -1942,4 +1949,8 @@ CHAT_UI.showMakeRoomConfirmView = function() {
}
});
//上位グループ、トップグループ遷移ボタンのイベント追加。
if (typeof result.parentGroupId === 'undefined') {
$('.colporate_none').addClass('none');
}
}
\ No newline at end of file
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