yujung 4 лет назад
Родитель
Сommit
2d93889f95
1 измененных файлов с 10 добавлено и 2 удалено
  1. 10 2
      src/main/webapp/ux/style24_link.js

+ 10 - 2
src/main/webapp/ux/style24_link.js

@@ -1583,11 +1583,19 @@ function sendSns(sns, url, txt, media, description)
 	{
 		case 'facebook':
 			var faceUrl = _isApp == 'true' ? 'public://?link=http://www.facebook.com/sharer/sharer.php?u=' : 'http://www.facebook.com/sharer/sharer.php?u=';
-			window.open(faceUrl + _url, "_blank", 'width=600,height=400,resizable=yes,scrollbars=yes');
+			if (_isApp == 'ture' && _osType === 'I') {
+				location.href = faceUrl + _url;
+			} else {
+				window.open(faceUrl + _url, "_blank", 'width=600,height=400,resizable=yes,scrollbars=yes');
+			}
 			break;
 		case 'twitter':
 			var twitUrl = _isApp == 'true' ? 'public://?link=http://twitter.com/intent/tweet?text=' : 'http://twitter.com/intent/tweet?text=';
-			window.open(twitUrl + _txt + '&url=' + _url, "_blank", 'width=600,height=400,resizable=yes,scrollbars=yes');
+			if (_isApp == 'true' && _osType === 'I') {
+				location.href = twitUrl + _txt;
+			} else {
+				window.open(twitUrl + _txt + '&url=' + _url, "_blank", 'width=600,height=400,resizable=yes,scrollbars=yes');
+			}
 			break;
 		default:
 			mcxDialog.alert('지원하지 않는 SNS입니다.');