1/** 2 * Created by yjwee on 2016-05-24. 3 */ 4$(document).ready(function () { 5 var $paycoLoginBtn = $('.js_btn_payco_login'); 6 7 if ($paycoLoginBtn.length > 0) { 8 $paycoLoginBtn.click(function () { 9 var returnUrl = $(':hidden[name=returnUrl]').val(); 10 var url = '../member/payco/payco_login.php?paycoType=' + $paycoLoginBtn.data('payco-type') + '&returnUrl=' + returnUrl; 11 var win = gd_popup({ 12 url: url, target: "paycoLogin", width: 630, height: 560, resizable: "no", scrollbars: "no" 13 }); 14 win.focus(); 15 return win; 16 }); 17 } 18 19 var $snsConnectBtn = $('.js_btn_sns_connect'); 20 21 if ($snsConnectBtn.length > 0) { 22 $snsConnectBtn.click(function () { 23 if ($(this).data('sns') == 'payco') { 24 var url = '../member/payco/payco_connect.php'; 25 var win = gd_popup({ 26 url: url, target: "paycoLogin", width: 630, height: 560, resizable: "no", scrollbars: "no" 27 }); 28 win.focus(); 29 return win; 30 } 31 }); 32 } 33 34 if (typeof paycoProfile !== 'undefined') { 35 if (paycoProfile.sexCode) { 36 var $sexFl = $(':radio[name="sexFl"]'); 37 if ($sexFl.length > 0) { 38 var $checkedSexFl = $sexFl.filter('*[value="' + paycoProfile.sexCode.toLowerCase() + '"]'); 39 $checkedSexFl.prop('checked', true); 40 $checkedSexFl.next('label').addClass('on'); 41 } 42 } 43 if (paycoProfile.id) { 44 $('#memId').val(paycoProfile.id); 45 var $email = $('#email'); 46 if ($email.length > 0) { 47 $email.val(paycoProfile.id); 48 } 49 } 50 if (paycoProfile.mobileId) { 51 if (_.isUndefined(paycoProfile.id)) { 52 $('#memId').val(paycoProfile.mobileId); 53 } 54 var $cellPhone = $('#cellPhone'); 55 if ($cellPhone.length > 0) { 56 $cellPhone.val(paycoProfile.mobileId); 57 } 58 } 59 if (paycoProfile.name) { 60 $('input[name="memNm"]').val(paycoProfile.name); 61 } 62 var $memPw = $('input[name="memPw"]'); 63 if ($memPw.length > 0) { 64 $memPw.addClass('ignore'); 65 } 66 var $memPwRe = $('input[name="memPwRe"]'); 67 if ($memPwRe.length > 0) { 68 $memPwRe.addClass('ignore'); 69 } 70 } 71 72 if (typeof snsConnection !== 'undefined') { 73 var $disconnectBtn = $('.js_btn_sns_disconnect'); 74 75 if ($disconnectBtn.length > 0) { 76 $disconnectBtn.click(function () { 77 if ($(this).data('sns') == 'payco') { 78 if (confirm(__('ê³ì ì°ê²°ì í´ì íìê² ìµëê¹?'))) { 79 var $ajax = $.ajax('../member/payco/payco_disconnect.php'); 80 $ajax.done(function (response) { 81 alert(response.message); 82 if (response.url) { 83 window.location.href = response.url; 84 } 85 }); 86 } 87 } 88 }); 89 } 90 } 91}); 92 93function confirmJoin(message, location) { 94 if (confirm(message)) { 95 window.location.href = location; 96 } 97}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.