issue #11 Fix amenity&room seervice order popup shows up when those are disabled.
This commit is contained in:
@@ -607,12 +607,21 @@ HotelTV.ui_appfull = (function() {
|
|||||||
let _amenity = null;
|
let _amenity = null;
|
||||||
let _roomservice = 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) {
|
if (!_opening.amenity) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
_amenity = _opening.amenity;
|
_amenity = _opening.amenity;
|
||||||
|
|
||||||
// HOTKEY정보를 state에 기록
|
// HOTKEY정보를 state에 기록
|
||||||
if (!(_amenity.button in _state.hotkey.mm)) {
|
if (!(_amenity.button in _state.hotkey.mm)) {
|
||||||
_state.hotkey.mm[_amenity.button] = {
|
_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;
|
return;
|
||||||
}
|
}
|
||||||
_roomservice = _opening.roomService;
|
_roomservice = _opening.roomService;
|
||||||
|
|
||||||
// HOTKEY정보를 state에 기록
|
// HOTKEY정보를 state에 기록
|
||||||
if (!(_roomservice.button in _state.hotkey.mm)) {
|
if (!(_roomservice.button in _state.hotkey.mm)) {
|
||||||
_state.hotkey.mm[_roomservice.button] = {
|
_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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user