Commit 6c789299 by Kang Donghun

Merge branch 'bugfix/#598_オフラインでグループのお気に入りボタン動作修正' into 'release_sp3'

#42544 フラインでグループのお気に入りを解除すると、アイコン(★)の色が色無し(☆)になる

See merge request !72
parents 617ad507 6a2843b8
......@@ -1417,13 +1417,20 @@ CHAT_UI.insertFavoriteUser = function(shopMemberId) {
};
CHAT_UI.removeFavoriteGroup = function(groupId) {
CHAT_UI.showLoadingIndicator();
var result;
if (typeof(android) != "undefined") {
android.removeFavoriteGroup(groupId);
result = android.removeFavoriteGroup(groupId);
} else {
webkit.messageHandlers.removeFavoriteGroup.postMessage(groupId);
result = webkit.messageHandlers.removeFavoriteGroup.postMessage(groupId);
}
if (!result) {
$('.group_'+groupId).addClass('active');
$('.group_'+groupId).removeClass('disable');
} else {
$('.group_'+groupId).removeClass('active');
$('.group_'+groupId).addClass('disable');
}
$('.group_'+groupId).removeClass('active');
$('.group_'+groupId).addClass('disable');
CHAT_UI.dismissLoadingIndicator();
};
......@@ -1438,8 +1445,6 @@ CHAT_UI.insertFavoriteGroup = function(groupId) {
if (!result) {
$('.group_'+groupId).addClass('disable');
$('.group_'+groupId).removeClass('active');
CHAT_UI.dismissLoadingIndicator();
return;
} else {
$('.group_'+groupId).removeClass('disable');
$('.group_'+groupId).addClass('active');
......
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