Commit 83b0ed10 by Kang Donghun

#42593 ルーム内で検索ボタンをタップすると、メッセージ欄等が表示される

parent 1b38a184
......@@ -279,6 +279,7 @@ $(function() {
// 検索アイコン押下イベント
$('.nav_item_wrap .search_menu').click(function(){
$('.nav_item_wrap').addClass('none');
$('.footer-wrap').addClass('none');
$('.chat_room_src_form').removeClass('none');
$('.room_container').addClass('none');
$('.overlay_src_msg').removeClass('none');
......@@ -292,6 +293,7 @@ $(function() {
});
$('.chat_room_src_form .cancel').click(function(){
$('.nav_item_wrap').removeClass('none');
$('.footer-wrap').removeClass('none');
$('.chat_room_src_form').addClass('none');
$('.chat_room_src_form input').val('');
$('.room_container').removeClass('none');
......@@ -303,6 +305,7 @@ $(function() {
$('.chat_room_src_form input[type="search"]').blur();
$('#searchMessage').removeClass('onfocus');
$('.chat_list').addClass('none');
CHAT_UI.scrollToBottom();
});
$('.chat_room_src_form input[type="search"]').click(function() {
......@@ -417,6 +420,7 @@ $(function() {
var beforeHeight;
var beforeScroll;
var footerHeight = $('.footer-wrap').height();
window.addEventListener("resize", function() {
console.log('aaaa');
var afterHeight = window.innerHeight;
......@@ -428,7 +432,7 @@ $(function() {
} else {
//キーボード非表示
$('.room_container').css('margin-bottom', $('.footer-wrap').height());
$('.room_container').css('margin-bottom', footerHeight);
window.scrollTo(0, beforeScroll);
}
});
......
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