Commit 10558594 by Lee Munkyeong

Merge branch 'communication/#42980_createBtn-disable' into 'develop'

#42980 オフライン時にルーム開設ボタンを非活性化するように修正

See merge request !150
parents ec36e743 ed74f16f
...@@ -2530,7 +2530,8 @@ CHAT_UI.refreshAllGroupForAddUser = function(paramGroupId) { ...@@ -2530,7 +2530,8 @@ CHAT_UI.refreshAllGroupForAddUser = function(paramGroupId) {
CHAT_UI.refreshForOnline = function() { CHAT_UI.refreshForOnline = function() {
IS_ONLINE = 'true'; IS_ONLINE = 'true';
$('.craeteRoomButton').show(); $('.craeteRoomButton').off('click', CHAT_UI.offlineHandler);
$('.craeteRoomButton').css('opacity','1.0');
$('.footer_item a').removeClass('ui-state-disabled'); $('.footer_item a').removeClass('ui-state-disabled');
$('#videoUploadButton').removeClass('ui-state-disabled'); $('#videoUploadButton').removeClass('ui-state-disabled');
$('#imageInputButton').removeClass('ui-state-disabled'); $('#imageInputButton').removeClass('ui-state-disabled');
...@@ -2550,7 +2551,8 @@ CHAT_UI.refreshForOnline = function() { ...@@ -2550,7 +2551,8 @@ CHAT_UI.refreshForOnline = function() {
CHAT_UI.refreshForOffline = function() { CHAT_UI.refreshForOffline = function() {
IS_ONLINE = 'false'; IS_ONLINE = 'false';
$('.craeteRoomButton').hide(); $('.craeteRoomButton').on('click', CHAT_UI.offlineHandler);
$('.craeteRoomButton').css('opacity','0.3');
$('.footer_item a').addClass('ui-state-disabled'); $('.footer_item a').addClass('ui-state-disabled');
$('#videoUploadButton').addClass('ui-state-disabled'); $('#videoUploadButton').addClass('ui-state-disabled');
$('#imageInputButton').addClass('ui-state-disabled'); $('#imageInputButton').addClass('ui-state-disabled');
...@@ -2563,6 +2565,10 @@ CHAT_UI.refreshForOffline = function() { ...@@ -2563,6 +2565,10 @@ CHAT_UI.refreshForOffline = function() {
$('.fa-download').hide(); $('.fa-download').hide();
} }
CHAT_UI.offlineHandler = function(e) {
e.preventDefault();
}
CHAT_UI.displayExistRoom = function(roomId) { CHAT_UI.displayExistRoom = function(roomId) {
if (confirm('error_already_exist_same_user')) { if (confirm('error_already_exist_same_user')) {
if (CHAT_UTIL.isIOS()) { if (CHAT_UTIL.isIOS()) {
......
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