issue #11 Fix amenity&room seervice order popup shows up when those are disabled.

This commit is contained in:
Paul Kim
2024-03-19 12:32:04 +09:00
parent 81ba70644e
commit 93dae53e28

View File

@@ -607,12 +607,21 @@ HotelTV.ui_appfull = (function() {
let _amenity = null;
let _roomservice = null;
let _elAmPupOoderRoot = $('.popup .amenity').children('.order');
if ( _elAmPupOoderRoot.css('display')!="none" ){
_elAmPupOoderRoot.hide();
}
let _elRsPupOoderRoot = $('.popup .roomservice').children('.order');
if ( _elRsPupOoderRoot.css('display')!="none" ){
_elRsPupOoderRoot.hide();
}
if (!_opening.amenity) {
return;
}
_amenity = _opening.amenity;
// HOTKEY정보를 state에 기록
if (!(_amenity.button in _state.hotkey.mm)) {
_state.hotkey.mm[_amenity.button] = {
@@ -631,10 +640,7 @@ HotelTV.ui_appfull = (function() {
};
}
let _elAmPupOoderRoot = $('.popup .amenity').children('.order');
if ( _elAmPupOoderRoot.css('display')!="none" ){
_elAmPupOoderRoot.hide();
}
@@ -642,7 +648,6 @@ HotelTV.ui_appfull = (function() {
return;
}
_roomservice = _opening.roomService;
// HOTKEY정보를 state에 기록
if (!(_roomservice.button in _state.hotkey.mm)) {
_state.hotkey.mm[_roomservice.button] = {
@@ -661,10 +666,6 @@ HotelTV.ui_appfull = (function() {
};
}
let _elRsPupOoderRoot = $('.popup .roomservice').children('.order');
if ( _elRsPupOoderRoot.css('display')!="none" ){
_elRsPupOoderRoot.hide();
}
return;
}