// odr = 1;
//
function ajax_callback_func(ajax_nm, frm_nm, data, input_A) {
//console.log(typeof input_A.get_html);
//console.log(input_A.get_html);
try { data = JSON.parse(data); }
catch (e) { }
//
if (data.QryQueNo != null && data.QryQueNo > 0 && QryQueNo != data.QryQueNo)
return false;
//console.log(ajax_nm+'------------------------------------------------');
//console.log(data);
//
if (data == 'error' || data == 'reject') { }
// else if(ajax_nm == 'chk_logon')
// {
//console.log(input_A);
// if(data.DATA_4_CALLBACK_FUNC == '')
// location.href="/wdir/¸¶ÀÌÁ¸/·Î±×ÀÎ/_?opn_vw="+input_A.p01+"&bf_pid="+$("#frm_bg_log input[name=tk_pid]").val()+"&togo="+encodeURIComponent(location.href.replace(/#(.*)/,''));
// else if(input_A.p02 == 'null') { }
// else
// {
// $("#"+input_A.p01).modal('toggle');
// }
// }
// else if(data == 'mod_usg')
// {
// //Show_Msg('±ÇÇÑÀÌ ¾ø°Å³ª °ü¸®ÀÚ ·Î±×ÀÎÀÌ ÇÊ¿äÇÕ´Ï´Ù.', 1)
// console.log('asdfasdfasdf');
// }
else if (ajax_nm == 'get_blog_ctn') {
//console.log(data);
$('#blog_clipboard .modal-footer .blog_tt').html(data.DATA_4_CALLBACK_FUNC.title);
$('#blog_clipboard .modal-footer .blog_bs_pic').html(data.DATA_4_CALLBACK_FUNC.bs_pic_loc);
$('#blog_clipboard .modal-title').html(data.DATA_4_CALLBACK_FUNC.kyg_rlty_key_han);
//
$("#blog_bs_frm input[name=Cc]").val(data.DATA_4_CALLBACK_FUNC.Cc);
$("#blog_bs_frm input[name=Sn]").val(data.DATA_4_CALLBACK_FUNC.Sn);
$("#blog_bs_frm input[name=Rn]").val(data.DATA_4_CALLBACK_FUNC.Rn);
$("#blog_bs_frm input[name=bttm_img_1]").val(data.DATA_4_CALLBACK_FUNC.bl_overwrite_img);
$("#blog_bs_frm input[name=bttm_img_2]").val(data.DATA_4_CALLBACK_FUNC.br_overwrite_img);
if (typeof data.DATA_4_CALLBACK_FUNC.pic_list.length != 'undefined')
$("#blog_bs_frm input[name=rlty_img]").val(data.DATA_4_CALLBACK_FUNC.pic_list[0]);
//
$("#blog_wtm_frm input[name=preview_wtr_font]").val(data.DATA_4_CALLBACK_FUNC.preview_wtr_font);
$("#blog_wtm_frm input[name=preview_wtr_font_size]").val(data.DATA_4_CALLBACK_FUNC.preview_wtr_font_size);
$("#blog_wtm_frm input[name=preview_wtr_color]").val(data.DATA_4_CALLBACK_FUNC.preview_wtr_color);
$("#blog_wtm_frm input[name=preview_wtr_alpha]").val(data.DATA_4_CALLBACK_FUNC.preview_wtr_alpha);
$("#blog_wtm_frm textarea[name=preview_wtr_text]").val(data.DATA_4_CALLBACK_FUNC.wtr_mark_txt);
$("#blog_wtm_frm input[name=preview_wtr_position]").val(data.DATA_4_CALLBACK_FUNC.preview_wtr_position);
$("#blog_wtm_frm input[name=preview_rb_img]").val(data.DATA_4_CALLBACK_FUNC.preview_rb_img);
//
var blog_kyg_pic_A = '';
$("#blog_clipboard .blog_pic_list").html('');
if (data.DATA_4_CALLBACK_FUNC.pic_list.length > 0) {
blog_kyg_pic_A = data.DATA_4_CALLBACK_FUNC.pic_list;
for (var blog_p_iii = 0; blog_p_iii < blog_kyg_pic_A.length; blog_p_iii++) {
blog_kyg_pic = "
![](\"")
";
$("#blog_clipboard .blog_pic_list").append(blog_kyg_pic);
if (blog_p_iii == 15) break;
}
}
}
else if (ajax_nm == 'get_recom') {
var inp_05 = input_A.p05.split('!_!');
var temp_nm = inp_05[0];
var trgt_id = inp_05[1];
var trgt_val = inp_05[2];
if (data == '' || (typeof data.DATA_4_CALLBACK_FUNC != 'undefined' && data.DATA_4_CALLBACK_FUNC.length == 0))
return false;
else {
var source = $("#A00_" + temp_nm + "_template").html();
template = Handlebars.compile(source);
Helper_Main_Rcm_List(trgt_id, trgt_val, data);
}
}
else if (data == 'no_right') {
Show_Msg('±ÇÇÑÀÌ ¾ø°Å³ª °ü¸®ÀÚ ·Î±×ÀÎÀÌ ÇÊ¿äÇÕ´Ï´Ù.', 1)
}
else if (ajax_nm == 'cal') {
if (input_A.p04 == 'a') $("#viewday_cal").html(data);
else if (input_A.p04 == 'b') $("#divmiddle").html(data);
}
else if (ajax_nm == 'del_rlty') {
Show_Msg('Á¤»óÀûÀ¸·Î »èÁ¦ÇÏ¿´½À´Ï´Ù.', 1);
setTimeout(function () { self.close(); }, 1500);
}
else if (ajax_nm == 'get_latlng_to_addr') {
if (data == '' && $("#track_frm input[name=pg_nm]").val() == 'map_srch')
$("#s_srch_frm input[name=search_txt]").attr('placeholder', '°Ë»ö¾î¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
else
$("#s_srch_frm input[name=search_txt]").attr('placeholder', data);
}
else if (ajax_nm == 'reg_predict_amt') {
if (data == '' || data.DATA_4_CALLBACK_FUNC == null) { }
else {
$("#predict_amt_btn").addClass('d-none');
$("#predict_amt_info").removeClass('d-none');
$("#predict_amt_won").html(data.DATA_4_CALLBACK_FUNC.predict_amt);
$("#predict_amt_p").html(data.DATA_4_CALLBACK_FUNC.predict_amt_p);
history.go(-1);
}
}
else if (ajax_nm == 'reg_enquete') {
if (data == '' || data.DATA_4_CALLBACK_FUNC == null) { }
else if (data == 'need_login')
Show_Msg('·Î±×ÀÎÀÌ ÇÊ¿äÇÕ´Ï´Ù.', 1)
else if (data == 'done')
Show_Msg('¼³¹®¿¡ ´äÇØÁּż °¨»çÇÕ´Ï´Ù.', 1)
}
else if (ajax_nm == 'get_info_not_swtch' || ajax_nm == 'get_center_addr') {
// odr = 1;
// console.log("odr ====== " + odr++);
// console.log("ajax_nm --- " + ajax_nm);
// console.log("data.DATA_4_CALLBACK_FUNC --- ");
// console.log(data.DATA_4_CALLBACK_FUNC);
if (data == '' || data.DATA_4_CALLBACK_FUNC == null) { }
else {
if (ajax_nm == 'get_center_addr') {
// console.log("odr --- " + odr++);
$("#map_addr_info").html(data.DATA_4_CALLBACK_FUNC['addr']);
$("#map_addr_detail").html('');
$("#map_addr_detail").css('display', 'none');
$("#map_addr_usg").html('');
$("#map_addr_usg").css('display', '');
}
else {
// console.log("odr --- " + odr++);
$("#map_addr_info").html(data.DATA_4_CALLBACK_FUNC['addr']);
$("#map_addr_detail").html('');
$("#map_addr_detail").css('display', '');
$("#map_addr_usg").html('');
$("#map_addr_usg").css('display', '');
removePolygon(); // ´Ù°¢Çü Á¦°Å
var land_coord_cnt = 0;
//if(zoom_lv >= Zoom_Lv_Umd && (swtch_cnt == 0 || swtch_cnt == 6 || sw_tch_rp == 1))
//if(zoom_lv >= Zoom_Lv_Umd && (swtch_cnt == 0 || swtch_cnt == 6 || $("#detail_srch_frm input[name=sw_tch_rp]" ).prop("checked") == true))
// Áö¿ª¸¶Ä¿ÀÇ ´Ù°¢Çü Ç¥½Ã
if (PrintAreaMarker > 0) {
// console.log("odr --- " + odr++);
for (var coord_iii = 0; coord_iii < data.DATA_4_CALLBACK_FUNC['land_coord'].length; coord_iii++) {
if (data.DATA_4_CALLBACK_FUNC['land_coord'][coord_iii]['coords'].length > 0) {
// console.log("odr --- " + odr++);
var lc_cnt = data.DATA_4_CALLBACK_FUNC['land_coord'][coord_iii]['coords'].length;
for (var lc_iii = 0; lc_iii < lc_cnt; lc_iii++) {
print_polygon('', data.DATA_4_CALLBACK_FUNC['land_coord'][coord_iii]['coords']["lc_iii"]);
land_coord_cnt++;
}
}
}
//
print_local_info(data);
// ºÐ¾ß ¹°°Ç¿¡ ÇØ´çµÇ´Â ´Ù°¢Çü Ç¥½Ã
} else {
var poly_coord_cnt = 0;
if (typeof data.DATA_4_CALLBACK_FUNC['poly'] !== 'undefined'
&& typeof data.DATA_4_CALLBACK_FUNC['poly'][0] !== 'undefined'
) {
// console.log("odr --- " + odr++);
var d4cb_lc = data.DATA_4_CALLBACK_FUNC['poly'][0]['coords'];
if (d4cb_lc.length > 0) {
// console.log("odr --- " + odr++);
for (var coord_iii = 0; coord_iii < d4cb_lc.length; coord_iii++) {
if (d4cb_lc[coord_iii]) {
// console.log("odr --- " + odr++);
print_polygon('', d4cb_lc[coord_iii]);
poly_coord_cnt++;
}
}
}
}
var bldg_coord_cnt = 0;
if (typeof data.DATA_4_CALLBACK_FUNC['bldg_info'] !== 'undefined'
&& typeof data.DATA_4_CALLBACK_FUNC['bldg_info'][0] !== 'undefined'
) {
// console.log("odr --- " + odr++);
var d4cb_bc = data.DATA_4_CALLBACK_FUNC['bldg_info'][0]['coords'];
if (d4cb_bc.length > 0) {
// console.log("odr --- " + odr++);
for (var coord_iii = 0; coord_iii < d4cb_bc.length; coord_iii++) {
if (d4cb_bc[coord_iii]) {
// console.log("odr --- " + odr++);
print_polygon(d4cb_bc[coord_iii], '');
// console.log("odr --- " + odr++);
bldg_coord_cnt++;
}
}
}
}
print_bldg_info(1, data);
}
}
// ¸¶Ä¿Å¬¸¯½Ã ´Ù°¢Çü¸¸ Ç¥½Ã
//if( $("#frm_bg_log input[name=tk_pid]").val() == 'map_srch'
// && typeof input_A.p04 !== undefined && input_A.p04 > 0
//){
// $("#map_addr").css('display', '');
// $("#map_addr_info").css('display', 'none');
// $("#map_addr_detail").css('display', 'none');
// $("#map_addr_usg").css('display', 'none');
//}
//else
//console.log('1111111111 - '+input_A.p04);
if ($("#frm_bg_log input[name=tk_pid]").val() == 'map_srch'
&& $("#rlty_list").html() != ''
&& typeof input_A.p04 !== undefined && input_A.p04 > 0
) {
// console.log("odr --- " + odr++);
$("#map_addr").css('display', '');
$("#map_addr_info").css('display', 'none');
$("#map_addr_detail").css('display', 'none');
$("#map_addr_usg").css('display', 'none');
//console.log('22222222222 - '+input_A.p04);
}
else if (land_coord_cnt > 0 || bldg_coord_cnt > 0 || poly_coord_cnt > 0) {
// console.log("odr --- " + odr++);
//console.log('33333333333 - '+input_A.p04);
print_circle(input_A.p01, input_A.p02); // ÁÂÇ¥ Ç¥½Ã
$("#map_addr_info").css('display', '');
$("#map_addr_detail").css('display', '');
$("#map_addr_usg").css('display', '');
$("#rlty_list").css('display', 'none');
//$("#open_bttm_list").css('display', 'none');
$("#map_addr").css('display', '');
$("#map_b_info").css('display', '');
$("#map_addr").attr('onclick', '');
$("#map_addr").attr('onclick', data.DATA_4_CALLBACK_FUNC['win_open_url']);
$("#map_addr").css('height', '80px');
$("#close_b_info").css('bottom', '75px');
$("#close_b_info").css('display', 'block');
$("#close_b_info").attr('stats', '');
$("#open_bttm_list").css('bottom', '75px');
$("#open_bttm_list").css('display', 'none');
$("#open_bttm_list").attr('stats', 'off');
}
else {
console.log("odr --- " + odr++);
//console.log('else');
//console.log('123');
//$("#map_addr").css('display', 'none');
}
}
return false;
}
else if (data == 'need_login' || data.CALLBACK_ACT == 'need_login') {
if (ajax_nm == 'write_memo') {
Cjs_setCookie('BRD_TITLE', $("#frm_memo #BRD_TITLE").val(), 1);
Cjs_setCookie('BRD_CONTENT', $("#frm_memo #BRD_CONTENT").val(), 1);
}
location.href = "/wdir/¸¶ÀÌÁ¸/·Î±×ÀÎ/_?togo=" + encodeURIComponent(location.href.replace(/#(.*)/, ''));
return false;
}
else if (ajax_nm == 'write_memo' || ajax_nm == 'del_memo') {
// ¸Þ¸ð form input(Á¦¸ñ, ³»¿ë) reset
Cjs_setCookie('BRD_TITLE', '', 1);
Cjs_setCookie('BRD_CONTENT', '', 1);
$("#frm_memo #TBL_IDX").val('');
$("#frm_memo input[name=BRD_TITLE]").val('');
// $("#frm_memo textarea[name=BRD_CONTENT]").val('');
$("#frm_memo textarea[name=BRD_CONTENT]").html('');
$("#frm_memo #MEMO_ACT_TP").val('get');
if (data.DATA_4_CALLBACK_FUNC == null) {
$("#memo_list_tbl").html('');
$("#memo_list_container").css('display', 'none');
$("#t_reg_memo").attr('class', 'float_rt py-4 far fa-sticky-note');
}
else {
Helper_Memo_List(data);
}
//
if (ajax_nm == 'write_memo') history.go(-1);
ajax_progress_indicator('01', '');
}
else if (ajax_nm == 'get_recent_brd') {
var brd_html = "" + "" + data.DATA_4_CALLBACK_FUNC[0].board_name + "" + data.DATA_4_CALLBACK_FUNC[0].title + "";
//console.log(brd_html);
$("#recent_brd_one").html(brd_html);
}
else if (ajax_nm == 'reg_brd' || ajax_nm == 'mod_brd' || ajax_nm == 'del_brd') {
if (typeof EditorObj !== 'undefined') {
delete EditorObj["frm_nm"];
}
if (ajax_nm == 'reg_brd') {
if (frm_nm != '') {
$("#" + frm_nm + " textarea[name=brd_content]").val('');
$("#" + frm_nm + " #brd_agreement_1").prop('checked', false);
if ( //$("#"+frm_nm+" input[name=tk_pid]").val() == 'd'
$.inArray($("#" + frm_nm + " input[name=tk_pid]").val(), sw_tch_d_A) >= 0
&& $("#" + frm_nm + " input[name=tk_sub]").val() == 'discuss'
) {
$("#discuss_li").removeClass('hide');
}
}
}
//
if (data.CALLBACK_ACT == 'child_brd_exist') {
Show_Msg('ÇÏÀ§ ´ñ±Û(Çö ±Ûº¸´Ù ³ªÁß¿¡ ÀÛ¼ºµÈ ±Û)·Î ÀÎÇÏ¿©\n¼öÁ¤ ¶Ç´Â »èÁ¦°¡ ºÒ°¡´É ÇÕ´Ï´Ù.', 2);
return false;
}
else if (data.CALLBACK_ACT == 'close_window') {
if (frm_nm != '')
var current_tk_pid = $("#" + frm_nm + " input[name=tk_pid]").val();
//
//if(current_tk_pid == 'd')
if ($.inArray(current_tk_pid, sw_tch_d_A) >= 0) {
Helper_Print_Brd_List(ajax_nm, 'dview_brd_frm', data, input_A);
swal.close();
return false;
}
else if (data.DATA_4_CALLBACK_FUNC.length == 0) {
if (typeof AndroidFunction !== "undefined") history.go(-1);
else self.close();
}
return false;
}
else if (data.CALLBACK_ACT == 'reload') {
swal.close();
//
if (input_A.p01 == 'detail')
Helper_Print_Brd_List(ajax_nm, 'dview_brd_frm', data, input_A);
else if (input_A.p01 == 'blog_txt')
location.href = '/wdir/Ä¿¹Â´ÏƼ/°Ô½Ã±Û/_?tk_sub=blog_txt';
else if (location.href.indexOf('Wrote_Now=1') !== -1) {
location.reload();
}
else {
new_qry_str = '';
brd_qry_str = QstrToObj(window.location.search.substring(1));
$.each(brd_qry_str, function (nm, val) {
if (nm == 'opn_vw') { }
else if (val != '')
new_qry_str += '&' + nm + '=' + val;
});
//if(location.href.indexOf('?') !== -1) location.replace(location.href+'&Wrote_Now=1');
//else location.replace(location.href+'?Wrote_Now=1');
location.replace(window.location.pathname + '?' + new_qry_str + '&Wrote_Now=1');
}
return false;
}
}
else if (ajax_nm == 'vote') {
if (input_A.p01 == 'up') {
var vote_el_nm = "vote_cnt_" + input_A.p02 + "_" + input_A.p03 + "_" + input_A.p04 + "_" + input_A.p05;
var vote_cnt = $("#" + vote_el_nm).html();
if (vote_cnt == '') vote_cnt = 0;
$("#" + vote_el_nm).html(parseInt(vote_cnt) + 1);
}
}
// tpl
else if (ajax_nm == 'get_p_amt') {
if (data == '' || data.DATA_4_CALLBACK_FUNC == null) {
$('#' + input_A.p01).attr("nextpg", 0);
$('div[el_nm=' + input_A.p01 + ']').remove();
}
//
if (input_A.p01 != '')
ajax_progress_indicator('02', input_A.p01);
$("#" + input_A.p01).append(data.DATA_4_CALLBACK_FUNC);
//
if (data.TOTAL_CNT < 5) $('div[el_nm=' + input_A.p01 + ']').remove();
}
else if (ajax_nm == 'srch_engine' || ajax_nm == 'get_brd') {
Helper_Print_Brd_List(ajax_nm, frm_nm, data, input_A);
}
else if (ajax_nm == 'set_recom') {
if (data.DATA_4_CALLBACK_FUNC.length > 0)
Show_Msg('°ü½É¹°°ÇÀ¸·Î µî·ÏµÇ¾ú½À´Ï´Ù.', '2');
}
else if (ajax_nm == 'set_concern') {
// ÄíÅ° ÃʱâÈ
Cjs_setCookie('concern_folder', '', 100);
Cjs_setCookie('concern_star', '', 100);
Cjs_setCookie('concern_etc_folder_nm', '', 100);
// °ü½É »óÅ ó¸®
var sw_tch_han = $("#frm_concern input[name=sw_tch_han]").val();
var Rty_Cate = $("#frm_concern input[name=Rty_Cate]").val();
var Cc = $("#frm_concern input[name=Cc]").val();
var Sn = $("#frm_concern input[name=Sn]").val();
var Rn = $("#frm_concern input[name=Rn]").val();
var Sn_1 = $("#frm_concern input[name=Sn_1]").val();
var Sn_2 = $("#frm_concern input[name=Sn_2]").val();
var Sn_3 = $("#frm_concern input[name=Sn_3]").val();
var Sn_4 = $("#frm_concern input[name=Sn_4]").val();
//
//console.log(data);
if (input_A.p01 == 'set_multi') {
//console.log(data.DATA_4_CALLBACK_FUNC);
if (data.DATA_4_CALLBACK_FUNC.length > 0) {
Show_Msg('°ü½É¹°°ÇÀ¸·Î µî·ÏµÇ¾ú½À´Ï´Ù.', '2');
}
//if( typeof data.DATA_4_CALLBACK_FUNC.length != 'undefined'
//&& data.DATA_4_CALLBACK_FUNC.length > 0
//){
// $.each(data.DATA_4_CALLBACK_FUNC, function(idx, row){
// html = '';
// $('#k_img_'+row.Cc + '_' + row.Sn + '_' + row.Rn).append(html);
// });
//}
}
else if (data == 'concern_set_ok') {
if ($("#track_frm input[name=Design_Type]").val() == 'M05')
$("[concern-tp='set']").attr('class', 'heaader__btn_heart on');
else if ($("span[concern-fwh='list'][sw_tch_han='" + sw_tch_han + "'][Rty_Cate='" + Rty_Cate + "'][Cc='" + Cc + "'][Sn='" + Sn + "'][Rn='" + Rn + "'][Sn_1='" + Sn_1 + "'][Sn_2='" + Sn_2 + "'][Sn_3='" + Sn_3 + "'][Sn_4='" + Sn_4 + "']").length > 0)
$("span[concern-fwh='list'][sw_tch_han='" + sw_tch_han + "'][Rty_Cate='" + Rty_Cate + "'][Cc='" + Cc + "'][Sn='" + Sn + "'][Rn='" + Rn + "'][Sn_1='" + Sn_1 + "'][Sn_2='" + Sn_2 + "'][Sn_3='" + Sn_3 + "'][Sn_4='" + Sn_4 + "']").attr('class', 'fas fa-heart');
else {
$("span[concern-tp='set']").attr('class', 'float_rt py-4 fas fa-heart');
$("button[concern-tp='set']").html('°ü½É
ÇØÁ¦');
}
}
else if (data == 'concern_del_ok') {
if ($("#track_frm input[name=Design_Type]").val() == 'M05')
$("[concern-tp='del']").attr('class', 'heaader__btn_heart');
else if ($("span[concern-fwh='list'][sw_tch_han='" + sw_tch_han + "'][Rty_Cate='" + Rty_Cate + "'][Cc='" + Cc + "'][Sn='" + Sn + "'][Rn='" + Rn + "'][Sn_1='" + Sn_1 + "'][Sn_2='" + Sn_2 + "'][Sn_3='" + Sn_3 + "'][Sn_4='" + Sn_4 + "']").length > 0)
$("span[concern-fwh='list'][sw_tch_han='" + sw_tch_han + "'][Rty_Cate='" + Rty_Cate + "'][Cc='" + Cc + "'][Sn='" + Sn + "'][Rn='" + Rn + "'][Sn_1='" + Sn_1 + "'][Sn_2='" + Sn_2 + "'][Sn_3='" + Sn_3 + "'][Sn_4='" + Sn_4 + "']").attr('class', 'far fa-heart');
else {
$("span[concern-tp='del']").attr('class', 'float_rt py-4 far fa-heart');
$("button[concern-tp='del']").html('°ü½É');
}
}
// °á°ú ó¸®
if (input_A.p01 == 'set') {
if ($("span[concern-fwh='list'][sw_tch_han='" + sw_tch_han + "'][Rty_Cate='" + Rty_Cate + "'][Cc='" + Cc + "'][Sn='" + Sn + "'][Rn='" + Rn + "'][Sn_1='" + Sn_1 + "'][Sn_2='" + Sn_2 + "'][Sn_3='" + Sn_3 + "'][Sn_4='" + Sn_4 + "']").length > 0) {
$("span[concern-fwh='list'][sw_tch_han='" + sw_tch_han + "'][Rty_Cate='" + Rty_Cate + "'][Cc='" + Cc + "'][Sn='" + Sn + "'][Rn='" + Rn + "'][Sn_1='" + Sn_1 + "'][Sn_2='" + Sn_2 + "'][Sn_3='" + Sn_3 + "'][Sn_4='" + Sn_4 + "']").attr("data-bs-toggle", "null");
$("span[concern-fwh='list'][sw_tch_han='" + sw_tch_han + "'][Rty_Cate='" + Rty_Cate + "'][Cc='" + Cc + "'][Sn='" + Sn + "'][Rn='" + Rn + "'][Sn_1='" + Sn_1 + "'][Sn_2='" + Sn_2 + "'][Sn_3='" + Sn_3 + "'][Sn_4='" + Sn_4 + "']").attr("concern-tp", "del");
}
else {
$("[concern-tp='set']").attr("data-bs-toggle", "null");
$("[concern-tp='set']").attr("concern-tp", "del");
}
if (location.hash)
history.go(-1);
}
else if (input_A.p01 == 'del') {
if ($("span[concern-fwh='list'][sw_tch_han='" + sw_tch_han + "'][Rty_Cate='" + Rty_Cate + "'][Cc='" + Cc + "'][Sn='" + Sn + "'][Rn='" + Rn + "'][Sn_1='" + Sn_1 + "'][Sn_2='" + Sn_2 + "'][Sn_3='" + Sn_3 + "'][Sn_4='" + Sn_4 + "']").length > 0) {
$("span[concern-fwh='list'][sw_tch_han='" + sw_tch_han + "'][Rty_Cate='" + Rty_Cate + "'][Cc='" + Cc + "'][Sn='" + Sn + "'][Rn='" + Rn + "'][Sn_1='" + Sn_1 + "'][Sn_2='" + Sn_2 + "'][Sn_3='" + Sn_3 + "'][Sn_4='" + Sn_4 + "']").attr("data-bs-toggle", "modal");
$("span[concern-fwh='list'][sw_tch_han='" + sw_tch_han + "'][Rty_Cate='" + Rty_Cate + "'][Cc='" + Cc + "'][Sn='" + Sn + "'][Rn='" + Rn + "'][Sn_1='" + Sn_1 + "'][Sn_2='" + Sn_2 + "'][Sn_3='" + Sn_3 + "'][Sn_4='" + Sn_4 + "']").attr("concern-tp", "set");
}
else {
$("[concern-tp='del']").attr("data-bs-toggle", "modal");
$("[concern-tp='del']").attr("concern-tp", "set");
}
}
}
else if (ajax_nm == 'get_dginfo_n_area') {
var area_input_html = "";
//console.log(typeof data.DATA_4_CALLBACK_FUNC);
if (data.DATA_4_CALLBACK_FUNC == null) {
area_input_html = "";
}
else {
if (data.DATA_4_CALLBACK_FUNC.a_place != '')
$("input[name=bldg_name]").val(data.DATA_4_CALLBACK_FUNC.a_place);
else
$("input[name=bldg_name]").val('');
//
if (data.DATA_4_CALLBACK_FUNC.area_A.length > 0) {
area_input_html = "";
}
else {
area_input_html = "";
}
}
$("#area_input").html(area_input_html);
}
// old
// old - rlty
else if (ajax_nm == 'del_gen_pic') {
if (data == 'done') {
alert('Á¤»óÀûÀ¸·Î »èÁ¦ µÇ¾ú½À´Ï´Ù.');
If_Exists_Then_Visibilty("gen_rlty_pic_" + input_A.p02, 'none');
location.reload();
}
else if (data == 'nothing') alert('»çÁø Á¤º¸°¡ ¾ø½À´Ï´Ù.');
else alert('¿À·ù°¡ ¹ß»ýÇÏ¿´½À´Ï´Ù.');
If_Exists_Then_Visibilty('ajax-brd-loader', 'none');
}
else if (ajax_nm == 'del_attach_file') {
Mod_File_Ext_Value(input_A.p01, input_A.p02, input_A.p04);
}
else if (ajax_nm == 'myz_alarm' || ajax_nm == 'myz_sa_log' || ajax_nm == 'kyg_neighbor_statistic') {
If_Exists_Then_Visibilty('progress_place_holder', 'none');
if (data == 'no_result' || data == '') re_msg = "´õ °¡Á®¿Ã ¸ñ·ÏÀÌ ¾ø½À´Ï´Ù.";
else if (data == 'need_login') re_msg = "·Î±×ÀÎÀÌ ÇÊ¿äÇÕ´Ï´Ù.";
if (data == 'no_result' || data == '' || data == 'need_login') {
if (ajax_nm == 'kyg_neighbor_statistic') return false;
swal({
title: "",
text: re_msg,
timer: 1000,
showConfirmButton: false,
allowOutsideClick: true
});
data = "°Ë»öµÈ ³»¿ëÀÌ ¾ø½À´Ï´Ù.";
$('#rlty_list').append(data);
}
else if (data != '') {
if (ajax_nm == 'kyg_neighbor_statistic') $('#kyg_neighbor_stat_box').append(data);
else {
$('#rlty_list').append(data);
$('#rlty_list').attr("prcs_step", 0);
}
}
}
else if (ajax_nm == 'stop_share_gen') location.reload();
else if (ajax_nm == 'del_srch_opt') {
swal.close();
$("#fvrt_li_" + input_A.p01).remove();
}
else if (ajax_nm == 'save_srch_opt') {
if (data == 'done') {
Cjs_setCookie('TEMP_MAP_FV_PARAMS', '', 1);
//$("#map_fv_frm").reset();
$("form").each(function () {
if (this.id == "map_fv_frm") this.reset();
});
if (frm_nm == 'map_fv_frm')
open_map_fvrt('save_frm', 'close');
swal({
title: "",
text: "ÀúÀåµÇ¾ú½À´Ï´Ù.",
timer: 1000,
showConfirmButton: false,
allowOutsideClick: true
});
} else if (typeof data.DATA_4_CALLBACK_FUNC != 'undefined') {
//console.log(data.DATA_4_CALLBACK_FUNC.length);
var source = $("#fvrt_list_template").html();
template = Handlebars.compile(source);
Helper_Fvrt_List('fvrt_list', data);
}
}
else if (ajax_nm == 'reg_brokerage') {
if (data == 0) { }
else if (data == 1) cjs_alert('ÀúÀåµÇ¾ú½À´Ï´Ù.');
else if (data == 2) cjs_alert('ÃÖÃÊ ¼³Á¤Çß´ø Áß°³¼ö¼ö·áÀ² º¸´Ù ³ôÀº °ªÀ» ¼³Á¤ÇÒ ¼ö ¾ø½À´Ï´Ù.');
}
else if (ajax_nm == 'change_gen_stat') {
document.getElementById("ajax-brd-loader").style.display = "none";
if (data == 'reload') {
if (input_A.p03 == 'delete' && input_A.p05 == 'gen_dview') {
alert('»èÁ¦µÇ¾ú½À´Ï´Ù.');
opener.location.reload();
self.close();
}
else
location.reload();
}
else if (input_A.p05 == 'gen_list') location.reload();
else if (data == 'cancellation_only') alert('ÇãÀ§ ¹°°ÇÀº µî·Ï ½ÂÀÎÇØÁ¦¸¸ ÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.');
else if (data == 'need_agency_info') alert('¸Å¹°À» 300°³ ÀÌ»ó ¿Ã¸®½Ã°Å³ª,\n\nÁß°³¼ö¼ö·á°¡ ¹ß»ýÇÏ´Â ¹°°ÇÀ» ¿Ã¸®½Ã·Á¸é,\n\nÁß°³»ç¹«¼Òȸ¿ø °¡ÀÔÀÌ ÇÊ¿äÇÕ´Ï´Ù.');
else if (data == 'no_right') alert('±ÇÇÑÀÌ ¾ø½À´Ï´Ù.');
else if (data == 'agree_to_reg') {
var confirm_msg_4_reg = "°³ÀÎÁ¤º¸ Á¦°ø¿¡ µ¿ÀÇÇÏÁö ¾ÊÀ¸¼Ì½À´Ï´Ù.\n°³ÀÎÁ¤º¸ Á¦°ø¿¡ µ¿ÀÇ ÇϽðڽÀ´Ï±î?";
if (confirm(confirm_msg_4_reg)) {
ex_p02 = input_A.p02.split('|_|');
rlty_key_one = ex_p02[1];
Mem_Change_Gen_Status(for_put_get, 'agree_to_reg', rlty_key_one);
}
return false;
}
}
// ied_search
else if (ajax_nm == 'ied_srch') {
//console.log('------- tmp name');
//console.log(input_A.template_nm);
var source = $("#" + input_A.template_nm).html();
template = Handlebars.compile(source);
// tmd °Ë»ö flag ÃʱâÈ
//if($("#frm_bg_log input[name=tk_pid]").val() == 'map_srch' && input_A.p01 == 'rlty_list')
// $("#detail_srch_frm input[name=SrchTmdOnce]").val('');
//
if ( //$("#frm_bg_log input[name=tk_pid]").val() == 'map_srch'
//||
$("#frm_bg_log input[name=tk_pid]").val() == 'map_srch' && input_A.p01 != 'col_rlty_list'
) {
if (bttm_rlty_list_h == 0
&& typeof data.DATA_4_CALLBACK_FUNC.length !== 'undefined'
&& data.DATA_4_CALLBACK_FUNC.length > 0
) BttmwinHeight(data.DATA_4_CALLBACK_FUNC[0].Field_Ct_Short);
$("#map_b_info").css('display', 'none');
$("#rlty_list").css('display', '');
$("#map_addr").css('display', '');
$("#map_addr").attr('onclick', '');
$("#map_addr").css('height', (bttm_rlty_list_h + 5) + 'px');
$("#close_b_info").css('display', 'block');
$("#close_b_info").css('bottom', bttm_rlty_list_h + 'px');
$("#close_b_info").attr('stats', '');
$("#open_bttm_list").css('display', 'block');
$("#open_bttm_list").css('bottom', bttm_rlty_list_h + 'px');
$("#open_bttm_list").attr('stats', '');
$("#detail_srch_frm input[name=srch_rst_tp]").val('map');
}
if (data == '' || (typeof data.DATA_4_CALLBACK_FUNC != 'undefined' && data.DATA_4_CALLBACK_FUNC.length == 0)) {
$('#' + input_A.p01).attr("nextpg", 0);
$('#' + input_A.p01).attr('empty_nxt_pg', 1);
ajax_progress_indicator('02', input_A.p01);
$('div[el_nm=' + input_A.p01 + ']').remove();
Append_Found_Nothing(input_A.p01);
return false;
}
else {
ajax_progress_indicator('02', input_A.p01);
//
if ($('#' + input_A.p01).attr("nextpg") == 2) {
$("#" + input_A.p01).append("");
}
//
Helper_Rlty_List(input_A.p01, data);
//
$('#' + input_A.p01).attr("prcs_step", 0);
//
var nCount = $("#" + frm_nm + " input[name=nCount]").val();
if (nCount == 'undefined' || nCount == '') nCount = 30;
if (typeof data.DATA_4_CALLBACK_FUNC != 'undefined' && nCount > data.DATA_4_CALLBACK_FUNC.length)
$('div[el_nm=' + input_A.p01 + ']').remove();
}
// Áöµµ Á᫐ ÁÂÇ¥ ÀÖÀ»½Ã ÇØ´ç ÁÂÇ¥ÀÇ Á¤º¸ È°¼º
if (typeof MapSrchOnLoad != 'undefined'
&& MapSrchOnLoad == true
&& $("#detail_srch_frm [name=center_lat]").val()
&& $("#detail_srch_frm [name=center_lng]").val()
) {
if (data.DATA_4_CALLBACK_FUNC.length > 0
&& typeof data.DATA_4_CALLBACK_FUNC[0].A01 != 'undefined'
) {
var ex_cb_addr = data.DATA_4_CALLBACK_FUNC[0].A01.split('!_!');
var aos = ex_cb_addr[0];
var sido = ex_cb_addr[0];
var sgg = ex_cb_addr[1];
var umd = ex_cb_addr[2];
var li = ex_cb_addr[3];
var san = ex_cb_addr[4];
var bon = ex_cb_addr[5];
var bu = ex_cb_addr[6];
var lat = data.DATA_4_CALLBACK_FUNC[0].Lat;
var lng = data.DATA_4_CALLBACK_FUNC[0].Lng;
var tmd_tp = '';
if (typeof data.DATA_4_CALLBACK_FUNC[0].A02 != 'undefined' && tmd_tp != '')
tmd_tp = data.DATA_4_CALLBACK_FUNC[0].A02;
var latlng = lat + '!_!' + lng;
//console.log('call back marker click');
MarkerClick(aos, sido, sgg, umd, li, san, bon, bu, latlng, '', tmd_tp);
}
else {
//console.log('call back get info');
ajax_client_main('get_info_not_swtch', '', $("#detail_srch_frm [name=center_lat]").val(),
$("#detail_srch_frm [name=center_lng]").val(), zoom_lv);
print_circle($("#detail_srch_frm [name=center_lat]").val(), $("#detail_srch_frm [name=center_lng]").val());
}
}
}
// common
else if (ajax_nm == 'area_combobox') {
var selbox_nm = '';
var umd_selbox_nm = '';
var input_nm = '';
//
if (input_A.p01 == 'all') input_nm = 'sgg';
else input_nm = input_A.p02;
//
if (frm_nm != '') umd_selbox_nm = "#" + frm_nm + " select[name=umd]";
else umd_selbox_nm = "select[name=umd]";
// ½Ãµµ ÄÞº¸¹Ú½º ¼±Åýà À¾¸éµ¿ select box ÃʱâÈ
if (input_A.p01 == 'sido') $(umd_selbox_nm).html('');
//
var selbox_html = '';
var opt_val = '';
var attr_html = '';
var sel_area = '';
var bf_dist_cate = '';
var selbox_nm = '';
$.each(data.DATA_4_CALLBACK_FUNC, function (idx, e_row) {
if (bf_dist_cate == '') bf_dist_cate = e_row.dist_cate;
//
selbox_nm = e_row.dist_cate;
// ÁÂÇ¥°ªÀÌ Á¸ÀçÇÒ °æ¿ì ÁÂÇ¥ attr »ý¼º
if (e_row.Lat != '') attr_html = 'lat="' + e_row.Lat + '" lng="' + e_row.Lng + '"';
else attr_html = '';
// onready ·Î ¼ÒÀçÁö ajaxÀÌ ÀÛµ¿‰çÀ» °æ¿ì ÇØ´çµÇ´Â ';
}
else
selbox_html += '';
//
bf_dist_cate = e_row.dist_cate;
});
// html Ãß°¡ÇÒ ÄÞº¸¹Ú½º selector »ý¼º
if (frm_nm != '') selbox_nm = "#" + frm_nm + " select[name=" + bf_dist_cate + "]";
else selbox_nm = "select[name=" + bf_dist_cate + "]";
// ÄÞº¸¹Ú½º option »ý¼º
$(selbox_nm).html(selbox_html);
}
else if (ajax_nm == 'send_sms') {
alert('¼º°øÀûÀ¸·Î ¹ß¼ÛµÇ¾ú½À´Ï´Ù.');
document.getElementById("strData").value = "";
document.getElementById("writer_name").value = "";
document.getElementById("strCallBack").value = "";
}
// myzone
else if (ajax_nm == 'memo') {
If_Exists_Then_Visibilty('progress_place_holder', 'none');
if (data.DATA_4_CALLBACK_FUNC.length == 0) {
if (document.getElementById("dview_memo_box"))
document.getElementById("dview_memo_box").style.display = "none";
$("#memo_btn").attr('class', 'mobile_img my_memo_off');
If_Exists_Then_Visibilty('end_of_list', 'block');
return false;
}
var source1;
source1 = $("#memo_dview_template").html();
memo_temp = Handlebars.compile(source1);
if ($("#frm_memo #TBL_IDX").val() == '') $("#dview_memo_list").html('');
if (document.getElementById("dview_memo_box"))
document.getElementById("dview_memo_box").style.display = "block";
Helper_Memo_List(data);
$('#myz_memo_list').attr("prcs_step", 0);
}
else if (ajax_nm == 'get_saved_srch_opt') {
if (data == 'need_login') {
location.href = '/wdir/¸¶ÀÌÁ¸/·Î±×ÀÎ/_?togo=' + encodeURIComponent(location.href.replace(/#(.*)/, ''));
return false;
}
else {
if (data.DATA_4_CALLBACK_FUNC.length == 0)
return false;
var source1;
source1 = $("#fvrt_list_template").html();
fvrt_list_temp = Handlebars.compile(source1);
Helper_Map_Fvrt_List(data);
}
}
else if (ajax_nm == 'get_balloon_help') {
Balloon_Help_Trigger = 1;
$("#balloon_help_div").html(data);
document.getElementById("balloon_help_div").style.display = '';
}
else if (ajax_nm == 'evalate_rlty') {
alert(input_A.p05);
if (input_A.p01 == 'appeal_bad_grlty') {
document.getElementById("bad_grlty_cate").selectedIndex = 0;
document.getElementById("bad_grlty_cont").value = "";
display_ctrl('appeal_bad_rlty_div', 'hide');
}
}
else if (ajax_nm == 'add_fvr_rlty') {
ex_p01 = input_A.p01.split('!_!');
aft_add_fvr_rlty(data, ex_p01[8], ex_p01[3], ex_p01[4], ex_p01[5]); // status, fc, cc, sn, rn
}
// member
else if (ajax_nm == 'mem_join') {
//console.log(ajax_nm+' - '+data);
if (input_A.p01 == 'other') {
if (data == 'dup_mem_id') {
If_Exists_Then_Visibilty('ajax-brd-loader', 'none');
alert('»ç¿ëÀÌ ºÒ°¡´ÉÇÑ ¾ÆÀ̵ðÀÔ´Ï´Ù.');
return false;
}
else if (data == 'mem_join_ok') {
If_Exists_Then_Visibilty('ajax-brd-loader', 'none');
location.href = '/wdir/';
}
}
else if (input_A.p01 == 'rental' && data == 'mem_join_ok') {
location.replace('/wdir/¾È³»/±âŸ/¹«·áȨÆäÀÌÁö/_');
}
else {
if (data == 'dup_mem_id') {
If_Exists_Then_Visibilty('ajax-brd-loader', 'none');
swal({
title: "",
text: "»ç¿ëÀÌ ºÒ°¡´ÉÇÑ ¾ÆÀ̵ðÀÔ´Ï´Ù.",
timer: 1000,
showConfirmButton: false,
allowOutsideClick: true
});
return false;
}
else if (data == 'mem_join_ok') {
If_Exists_Then_Visibilty('ajax-brd-loader', 'none');
var login_id = $("#mem_join_frm #MEM_ID").val();
var login_pw = $("#mem_join_frm #MEM_PASS1").val();
try { AndroidFunction.webview_to_app('log_in', login_id, login_pw, '', '', ''); }
catch (err) { }
location.href = '/wdir/';
}
}
}
else if (ajax_nm == 'member_auth_data_ctrl') {
if (input_A.p01 == 'get') {
if (input_A.p02 == 'check_last_biz_brd_date' && data) // ¿¶÷ÇÏÁö ¾ÊÀº ¾÷¹«°Ô½ÃÆÇÀÇ ±Û¸ñ·Ï ½ºÅ¸ÀÏ º¯°æ
Change_Biz_Brd_Style(data);
}
else if (input_A.p01 == 'mod') { }
}
else if (ajax_nm == 'get_app_review') {
if (document.getElementById('from_where_in_edu')) {
if (data == 'reload') location.reload();
}
}
else if (ajax_nm == 'sms_mem_auth') {
if (data == '0')
alert('ÀÔ·ÂÇϽŠÀÎÁõ¹øÈ£°¡ À߸øµÇ¾ú½À´Ï´Ù.');
else if (data == '1') {
document.getElementById("SMS_AUTH").value = "Y";
document.getElementById("confirm_phone_number_tr").style.display = "none";
document.getElementById("sms_auth_finish_tr").style.display = "";
}
else if (data == 'SMS_AUTH_STEP_2') {
document.getElementById("inst_phone_number_tr").style.display = "none";
document.getElementById("confirm_phone_number_tr").style.display = "";
document.getElementById("SMS_AUTH_STEP").value = 2;
}
else if (data == 'STOP_REQ_SMS')
alert('3ȸ ÀÌ»ó ¿¬¼ÓÀ¸·Î ÀÎÁõ¹øÈ£ ¹ß¼Û¸¦ ¿äû ÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.');
}
// MIS
else if (ajax_nm == 'get_team_brd') {
var loop_cnt = data.DATA_4_CALLBACK_FUNC.length;
var tt_cnt = 0;
var tt_pg = 0;
var pg_no = 0;
tt_cnt = data.DATA_4_CALLBACK_FUNC[0].TOTAL_CNT;
tt_pg = data.DATA_4_CALLBACK_FUNC[0].NPAGE;
pg_no = data.DATA_4_CALLBACK_FUNC[0].PG;
Insert_T_Brd_Html(input_A.p04, data.DATA_4_CALLBACK_FUNC[1], pg_no, tt_pg);
Team_Brd_Page_List('', input_A.p02, input_A.p03, input_A.p04, pg_no, tt_pg);
}
else if (ajax_nm == 'rlty_sent_to_sns') {
location.reload();
}
else if (ajax_nm == 'get_rlty_4_sns_post') {
// Empty_Rlty_Info(area_nm, rlty_i)
if (data == '°Ë»öµÇ¾îÁø ³»¿ëÀÌ ¾ø½À´Ï´Ù.') Empty_Rlty_Info(input_A.p03, input_A.p04);
else {
DrawRpGraph(data.DATA_4_CALLBACK_FUNC.REALTY_CATE, data.DATA_4_CALLBACK_FUNC.SNS_MAIN_PIC_URL, data.DATA_4_CALLBACK_FUNC.RP_CHART_PARAMS);
pic_A_start_iii = 1;
// ======================================================= sns º°(Áö¿ª ¿ëµµ) short url
var default_s_url = $("#default_url").val();
var kakao_story_s_url = $("#kakao_story_url").val();
var kakao_channel_s_url = $("#kakao_channel_url").val();
var facebook_s_url = $("#facebook_url").val();
var googleplus_s_url = $("#google_plus_url").val();
var band_s_url = $("#band_url").val();
var tw_s_url = $("#twitter_url").val();
var naver_blog_s_url = $("#naver_blog_url").val();
var naver_cafe_s_url = $("#naver_blog_url").val(); // ÃßÈÄ cafe sURL Ãß°¡
var tistory_blog_s_url = $("#tistory_blog_url").val();
document.getElementById("Short_Txt_text").value = data.DATA_4_CALLBACK_FUNC.TWITTER_HTML.replace(default_s_url, googleplus_s_url);
document.getElementById("Long_Txt_text").value = data.DATA_4_CALLBACK_FUNC.TEXT_CONT.replace(default_s_url, googleplus_s_url);
document.getElementById("Link_Txt_text").value = data.DATA_4_CALLBACK_FUNC.LINK_CONT.replace(default_s_url, googleplus_s_url);
document.getElementById("GGAD_text").value = data.DATA_4_CALLBACK_FUNC.GGAD_CONT.replace(default_s_url, googleplus_s_url);
document.getElementById("LnkGGAD_text").value = data.DATA_4_CALLBACK_FUNC.LINK_GGAD_CONT.replace(default_s_url, googleplus_s_url) + data.DATA_4_CALLBACK_FUNC.GOOGLE_AD_HTML;
document.getElementById("sns_short_title_text").value = data.DATA_4_CALLBACK_FUNC.SNS_SHORT_TITLE;
document.getElementById("Short_Txt_Tags_text").value = data.DATA_4_CALLBACK_FUNC.TWITTER_HTML.replace(default_s_url, googleplus_s_url) + "\n" + data.DATA_4_CALLBACK_FUNC.HASH_TAGS_S;
document.getElementById("Long_Txt_Tags_text").value = data.DATA_4_CALLBACK_FUNC.TEXT_CONT.replace(default_s_url, googleplus_s_url) + "\n" + data.DATA_4_CALLBACK_FUNC.HASH_TAGS_L;
document.getElementById("Link_Txt_Tags_text").value = data.DATA_4_CALLBACK_FUNC.LINK_CONT.replace(default_s_url, googleplus_s_url) + "\n" + data.DATA_4_CALLBACK_FUNC.HASH_TAGS_L;
document.getElementById("GGAD_Tags_text").value = data.DATA_4_CALLBACK_FUNC.GGAD_CONT.replace(default_s_url, googleplus_s_url) + "\n" + data.DATA_4_CALLBACK_FUNC.HASH_TAGS_L;
document.getElementById("LnkGGAD_Tags_text").value = data.DATA_4_CALLBACK_FUNC.LINK_GGAD_CONT.replace(default_s_url, googleplus_s_url) + "\n" + data.DATA_4_CALLBACK_FUNC.HASH_TAGS_L;
document.getElementById("instagram_Tags_text").value = data.DATA_4_CALLBACK_FUNC.INSTAGRAM_CONT.replace(default_s_url, googleplus_s_url) + "" + data.DATA_4_CALLBACK_FUNC.HASH_TAGS_L;
document.getElementById("sns_title").value = data.DATA_4_CALLBACK_FUNC.SNS_TITLE;
document.getElementById("tags_short").value = data.DATA_4_CALLBACK_FUNC.HASH_TAGS_S;
document.getElementById("tags_long").value = data.DATA_4_CALLBACK_FUNC.HASH_TAGS_L;
if (input_A.p02 == 'rp') {
// ½Ç°Å·¡°¡ »èÁ¦Ã³¸®ÇÒ key Á¤º¸ input »ý¼º
if (data.DATA_4_CALLBACK_FUNC.RP_DEL_LIST.length > 0) {
var rp_del_A = data.DATA_4_CALLBACK_FUNC.RP_DEL_LIST
var tmp_rp_del_data = "";
var tmp_html = "";
for (var rp_i = 0; rp_i < rp_del_A.length; rp_i++) {
tmp_rp_del_data = rp_del_A["rp_i"].Cc;
tmp_rp_del_data += "|_|" + rp_del_A["rp_i"].Sn;
tmp_rp_del_data += "|_|" + rp_del_A["rp_i"].Rn;
tmp_rp_del_data += "|_|" + rp_del_A["rp_i"].apptd_date;
tmp_rp_del_data += "|_|" + rp_del_A["rp_i"].apptd_status;
tmp_html = "";
$("#del_rp_frm").append(tmp_html);
}
}
}
// ¹°°Ç¿ëµµ, ¸Å°¢±âÀÏ, ÁøÇà»óÅÂ
document.getElementById("rlty_usage_txt").innerHTML = data.DATA_4_CALLBACK_FUNC.REALTY_CATE;
document.getElementById("apptd_date").value = data.DATA_4_CALLBACK_FUNC.APPTD_DATE;
document.getElementById("apptd_status").value = data.DATA_4_CALLBACK_FUNC.APPTD_STATUS;
// »çÁø ó¸®
var pic_html = "";
rlty_pic_A = data.DATA_4_CALLBACK_FUNC.PIC_A;
for (var pic_i = pic_A_start_iii; (pic_i < data.DATA_4_CALLBACK_FUNC.PIC_A.length && pic_i < 10); pic_i++) {
pic_html += "
";
}
$("#sns_pic").append(pic_html);
}
}
// rp
else if (ajax_nm == 'get_rp_data') {
}
else if (ajax_nm == 'draw_real_price_chart') {
$(".rpChart_container").html(data);
}
// dview
else if (ajax_nm == 'get_rp_list') {
ajax_progress_indicator('02', 'rp_list_progress');
Helper_Rp_List(data);
}
else if (ajax_nm == 'get_rp_chart_n_list') {
if (data.DATA_4_CALLBACK_FUNC.DATA == '') { }
else {
// ½Ç°Å·¡°¡ chart title
var rp_chart_data = data.DATA_4_CALLBACK_FUNC.DATA;
//
title_txt = rp_chart_data['umd'];
//
if ((rp_chart_data['bldg_tp'] == 'apt'
|| rp_chart_data['bldg_tp'] == 'otel'
|| rp_chart_data['bldg_tp'] == 'brgt'
|| rp_chart_data['bldg_tp'] == 'billa')
&& rp_chart_data['rp_type'] == 'local'
) {
if ($("#get_new_rp select[name=dg_area]").hasClass('hide')) { }
else
$("#get_new_rp select[name=dg_area]").addClass('hide');
}
else
$("#get_new_rp select[name=dg_area]").removeClass('hide');
//
if (data.DATA_4_CALLBACK_FUNC.DATA.rp_type == 'that' && rp_chart_data['a_place'].length > 0) {
title_txt += ' - ' + rp_chart_data['a_place'];
}
else if (data.DATA_4_CALLBACK_FUNC.DATA.rp_type == 'that'
&& (rp_chart_data['bon'].length > 0
|| rp_chart_data['bu'].length > 0)
) {
title_txt += rp_chart_data['bon'];
if (rp_chart_data['bu'].length > 0)
title_txt += '-' + rp_chart_data['bu'];
}
if (rp_chart_data['rtyct'].length > 0) title_txt += ', ' + rp_chart_data['rtyct'];
if ($("#rp_list_frm input[name=min_amt]").val() > 0 && $("#rp_list_frm input[name=eva_amt]").val() > 0
&& $("#get_new_rp select[name=dg_area]").val() == $("#rp_list_frm input[name=org_d_area]").val()
) {
title_txt += " ÃÖÀú";
title_txt += " °¨Á¤";
}
if (rp_chart_data['rp_type'] == 'local') title_txt += " Æò±Õ Æò´ç°¡";
$("#rp_chart_tt").html(title_txt);
}
// ½Ç°Å·¡°¡ chart svg html
$("#rp_svg_chart").html(unescape(decodeURI(data.DATA_4_CALLBACK_FUNC.RP_CHART).replace(/\+/g, ' ')));
// ½Ç°Å·¡°¡ ¸ñ·Ï
$("#rp_list_tbl").html(''); // ±âÁ¸ ½Ç°Å·¡°¡ ¸ñ·Ï Á¦°Å
$("#DF_rp_list_tbl").html(''); // ±âÁ¸ ½Ç°Å·¡°¡ ¸ñ·Ï Á¦°Å
if (data.DATA_4_CALLBACK_FUNC == null
|| data.DATA_4_CALLBACK_FUNC.DATA_2.length == 0
) {
$("#rp_list_tbl").append('ÇØ´ç ´ÜÁöÀÇ ½Ç°Å·¡°¡ Á¤º¸°¡ ¾ø½À´Ï´Ù. |
');
$("#DF_rp_list_tbl").append('ÇØ´ç ´ÜÁöÀÇ ½Ç°Å·¡°¡ Á¤º¸°¡ ¾ø½À´Ï´Ù. |
');
$("[btn-tp='nxt_rp_list']").css("display", "none");
ajax_progress_indicator('01', '');
return false;
}
else
$("[btn-tp='nxt_rp_list']").css("display", "");
var new_rp_list_DATA = { DATA_4_CALLBACK_FUNC: data.DATA_4_CALLBACK_FUNC.DATA_2 };
Helper_Rp_List(new_rp_list_DATA);
//
ajax_progress_indicator('01', '');
}
else if (ajax_nm == 'rlty_in_basic_info') {
if (data == '') {
$("#rlty_box").css("display", "none");
$("#rlty_box_bttm_line").css("display", "none");
return false;
}
var source = $("#rlty_list_template").html();
rlty_list_temp = Handlebars.compile(source);
if (data.DATA.length == 0) {
$("#rlty_box").css("display", "none");
$("#rlty_box_bttm_line").css("display", "none");
return false;
}
else {
$("#rlty_box").css("display", "block");
$("#rlty_box_bttm_line").css("display", "block");
}
Helper_RltyList(data);
}
else if (ajax_nm == 'get_facility_list') {
var DANGI_DATA = { DANGI: data.DATA_4_CALLBACK_FUNC.DANGI, DANGI_DETAIL: data.DATA_4_CALLBACK_FUNC.DANGI_DETAIL, KYG_PIC: data.DATA_4_CALLBACK_FUNC.KYG_PIC };
var dangi_src = $("#dangi_info_template").html();
dangi_temp = Handlebars.compile(dangi_src);
Helper_Facility_Info('dangi', DANGI_DATA);
var PRESCHOOL_DATA = { PRESCHOOL_1: data.DATA_4_CALLBACK_FUNC.PRESCHOOL_1, PRESCHOOL_2: data.DATA_4_CALLBACK_FUNC.PRESCHOOL_2 };
var preschool_src = $("#preschool_template").html();
preschool_temp = Handlebars.compile(preschool_src);
Helper_Facility_Info('preschool', PRESCHOOL_DATA);
var SCHOOL_DATA = { PRI_SCHOOL: data.DATA_4_CALLBACK_FUNC.PRI_SCHOOL, MID_SCHOOL: data.DATA_4_CALLBACK_FUNC.MID_SCHOOL, HIGH_SCHOOL: data.DATA_4_CALLBACK_FUNC.HIGH_SCHOOL };
var school_src = $("#school_template").html();
school_temp = Handlebars.compile(school_src);
Helper_Facility_Info('school', SCHOOL_DATA);
var HOSPITAL_DATA = { HOSPITAL: data.DATA_4_CALLBACK_FUNC.HOSPITAL };
var hospital_src = $("#hospital_template").html();
hospital_temp = Handlebars.compile(hospital_src);
Helper_Facility_Info('hospital', HOSPITAL_DATA);
var TRAFFIC_DATA = { SUBWAY: data.DATA_4_CALLBACK_FUNC.SUBWAY, BUS_STOP: data.DATA_4_CALLBACK_FUNC.BUS_STOP };
var traffic_src = $("#traffic_template").html();
traffic_temp = Handlebars.compile(traffic_src);
Helper_Facility_Info('traffic', TRAFFIC_DATA);
}
else if (ajax_nm == 'facility_detail_view') {
Helper_Facility_Detail(data, input_A);
ajax_progress_indicator('01', '');
}
else if (ajax_nm == 'get_loan_info') {
org_loan_data_A = data;
loan_data_A = data;
if (data.DATA_4_CALLBACK_FUNC.length == 0)
return false;
Helper_Loan_List(loan_data_A);
}
// map
else if (ajax_nm == 'map_srch') {
// bound ³» °Ë»öµÈ ¹°°ÇÀÌ ¾øÀ¸³ª ÁÂÇ¥¸¦ Á¦¿ÜÇÑ °Ë»öÁ¶°ÇÀ¸·Î °Ë»öµÈ ¹°°ÇÀÌ ÀÖÀ» °æ¿ì ÇØ´ç ÁÂÇ¥·Î À̵¿
if (typeof data.DATA_4_CALLBACK_FUNC != 'undefined'
&& data.DATA_4_CALLBACK_FUNC.length > 0
&& data.DATA_4_CALLBACK_FUNC[0].MoveToRltyLatlng == 1
) {
changeMapCenter(data.DATA_4_CALLBACK_FUNC[0].Lat, data.DATA_4_CALLBACK_FUNC[0].Lng, '', '', '');
return false;
}
// Áöµµ¿¡ ¸¶Ä¿ Ç¥½Ã
if (typeof setMarker !== "undefined"){
// alert("in setMarker !== undefined");
setMarker(data);
}
// Áöµµ°Ë»ö ÁÂÃø ¹°°Ç¸ñ·Ï¿¡¼ ÇöÀç Áöµµ¿µ¿ª¿¡ Á¸ÀçÇÏÁö ¾Ê´Â Ç׸ñ Á¦°Å
RemoveRtyList();
ajax_client_main('ied_srch', 'detail_srch_frm', 'col_rlty_list', 'MapRltyList');
//// Áöµµ°Ë»ö ÁÂÃø ¹°°Ç¸ñ·Ï view »ý¼º
//var source = $("#rlty_list_template").html();
// template = Handlebars.compile(source);
//col_rlty_list_A = data;
//if(col_rlty_list_A.DATA_4_CALLBACK_FUNC.length > 30)
//{
// col_rlty_list_A.TOTAL_CNT = 30;
// col_rlty_list_A.DATA_4_CALLBACK_FUNC.length = 30;
//}
//Helper_Rlty_List('col_rlty_list', col_rlty_list_A);
}
else if (ajax_nm == 'map_bttm_rlty_list') {
$("#Map_Srch_Rlty_List_Container").scrollTop(0);
document.getElementById("Map_Srch_Rlty_List_Container").innerHTML = data;
var pattern = /id=\"map_v2_bttm_rlty_cnt\" value=\"([0-9]+)\"/g;
var array_matches = pattern.exec(data);
$(".map_bttm_rlty_cnt").html(array_matches[1]);
}
// auto complete list
else if (ajax_nm == 'station_auto_complete'
|| ajax_nm == 'academy_auto_complete'
|| ajax_nm == 'school_auto_complete') { AUTO_C_LIST_DATA = AUTO_C_LIST_DATA.concat(data.DATA); }
else if (ajax_nm == 'car_auto_complete') { AUTO_C_LIST_DATA = data.DATA; }
else if (ajax_nm == 'get_auto_complete') { return data; }
// brd
else if (ajax_nm == 'brd_rating') {
if (data == 'error') alert('·Î±×ÀÎÀÌ ÇÊ¿äÇÕ´Ï´Ù.');
else {
var obj_name = document.getElementsByName("Do_Brd_Rating_Cnt[]");
var Current_Cnt = obj_name[input_A.p01].innerHTML;
obj_name[input_A.p01].innerHTML = parseInt(Current_Cnt) + 1;
obj_name[input_A.p01].style.color = "#f00";
obj_name[input_A.p01].style.fontWeight = "bold";
obj_name[input_A.p01].style.fontSize = "12px";
}
}
else if (ajax_nm == 'check_mem_brd_pass') {
if (data == 'Show_Brd') {
document.getElementById("pwd_confirm_error_msg").style.display = "none";
document.getElementById("BRD_PASS").value = input_A.p01;
document.PUB_OR_NOT_CHECK.submit();
}
else {
document.getElementById("pwd_confirm_error_msg").innerHTML = "
¾ÆÀ̵ð ¶Ç´Â ºñ¹Ð¹øÈ£°¡ À߸ø ÀԷµǾú½À´Ï´Ù.";
document.getElementById("pwd_confirm_error_msg").style.display = "";
document.getElementById("AJX_BRD_PASS").focus();
}
}
else if (ajax_nm == 'get_related_brd') {
if (data != 'error')
$("#rlty_brd_list").append(data);
}
// etc
else if (ajax_nm == 'addr_to_latlng') {
centerLatLng = new google.maps.LatLng(data.DATA_4_CALLBACK_FUNC.lat, data.DATA_4_CALLBACK_FUNC.lng);
if (input_A.p01 == 'map_srch_other' || input_A.p01 == 'map_v1_srch') {
Dt_Srch_Frm_Lat = parseFloat(data.DATA_4_CALLBACK_FUNC.lat);
Dt_Srch_Frm_Lng = parseFloat(data.DATA_4_CALLBACK_FUNC.lng);
initMap();
}
else if (input_A.p01 == 'map_search') {
map.setCenter(centerLatLng);
Map_Search_Btn_Click();
}
else if (input_A.p01 == 'gen_inst') {
map.setCenter(centerLatLng);
marker.setPosition(centerLatLng);
}
if (typeof (document.grlty_insert_form) !== 'undefined') {
if (typeof (document.grlty_insert_form.lat) !== 'undefined') document.grlty_insert_form.lat.value = data.DATA_4_CALLBACK_FUNC.lat;
if (typeof (document.grlty_insert_form.lng) !== 'undefined') document.grlty_insert_form.lng.value = data.DATA_4_CALLBACK_FUNC.lng;
}
}
else if (ajax_nm == 'cst_ad') {
var source1;
if (input_A.p01 == 'dview') {
//source1 = $("#cst_ad_dview_template").html();
source1 = $("#cst_ad_template_2").html();
}
else
source1 = $("#cst_ad_template").html();
var source2 = $("#cst_contact_template").html();
cst_ad_temp = Handlebars.compile(source1);
cst_contact_temp = Handlebars.compile(source2);
Helper_Cst_Ad(input_A.p01, data);
}
else if (ajax_nm == 'evaluate_app') {
if (data.DATA_4_CALLBACK_FUNC == ''
|| data.DATA_4_CALLBACK_FUNC == 'undefined') { }
else
Cjs_setCookie('evaluate_app', '1', 100);
}
else if (ajax_nm == 'get_a_place') {
if (data == 'get_local_graph') {
$("#dg_box").css('display', 'none');
var dview_url = "/workdir/mobile/upcate_lf/dview.php?MAIN_CATE=mobile&SUB_CATE=mobile_web&fc=pc_rp_v2&bon=&bu=&a_place=&d_area=&bldg_cate=&year=&lat=&lng=&";
dview_url += "&sido_s=" + encodeURIComponent($("#sido").val());
dview_url += "&sgg=" + encodeURIComponent($("#gugun").val());
dview_url += "&umd=" + encodeURIComponent($("#dong").val());
dview_url += "&Jun2Wol_Input=" + $("#Jun2Wol_Input").val();
dview_url += "&rp_usage=";
if ($('input[name="rlty_cate_sise"][type="radio"]:checked').val() == 'rlty_cate_sise_brgt_tp') dview_url += "2";
else if ($('input[name="rlty_cate_sise"][type="radio"]:checked').val() == 'rlty_cate_sise_sole_tp') dview_url += "3";
else if ($('input[name="rlty_cate_sise"][type="radio"]:checked').val() == 'rlty_cate_sise_land_tp') dview_url += "6";
else if ($('input[name="rlty_cate_sise"][type="radio"]:checked').val() == 'rlty_cate_sise_store_tp') dview_url += "7";
document.getElementById('rp_dview_frame').src = dview_url;
}
// that chart
else {
var html = data;
$("#dg_box").css('display', 'block');
$(".dg_list").append(html);
if (input_A.p05 == 1) {
input_A.p05 = 0;
document.getElementById('rp_dview_frame').src = '/workdir/mobile/upcate_lf/dview.php?MAIN_CATE=mobile&SUB_CATE=mobile_web&fc=pc_rp_v2&rp_usage=1&sido_s=%BC%AD%BF%EF&sgg=%B0%AD%B3%B2%B1%B8&umd=%B0%B3%C6%F7%B5%BF&bon=12&bu=2&a_place=%B0%B3%C6%F7%C0%DA%C0%CC%28%31%32%2D%32%29&d_area=&bldg_cate=&year=&lat=37.4962989648627&lng=127.076622183043&Jun2Wol_Input=0.08';
}
}
}
else if (ajax_nm == 'save_tpl_config') {
}
}
// progress indicator
function ajax_progress_indicator(type, el_nm) {
if (type == 'hide') {
$("#progress_indicator").addClass('hide');
}
else if (el_nm != '' && $("#" + el_nm + " #progress_indicator").length) {
$("#" + el_nm + " #progress_indicator").toggleClass('hide');
}
else if (type == '01' && el_nm == '' && $("#progress_indicator").length) {
$("body").children("#progress_indicator").toggleClass('d-none');
}
else {
var indicator_pos_tp = '';
if ($("#track_frm input[name=pg_nm]").val() == 'map_srch')
indicator_pos_tp = 'absolute';
else
indicator_pos_tp = 'fixed';
// Àüüȸé indicator
if (type == '01')
$("").appendTo("body");
// ƯÁ¤ div ³» indicator
else if (type == '02')
$("").appendTo("#" + el_nm);
}
}
// ´õ ÀÌ»ó °Ë»öÇÒ ³»¿ëÀÌ ¾øÀ»½Ã ¸ñ·Ï ÇÏ´Ü¿¡ Ç¥½Ã
function Append_Found_Nothing(el_nm, vtp, col_sp) {
if ($("#" + el_nm + " .no_more_data").length) { }
else {
if (vtp == 'tbl')
$("#" + el_nm).append("´õ ÀÌ»ó °Ë»öµÈ ³»¿ëÀÌ ¾ø½À´Ï´Ù. |
");
else
$("#" + el_nm).append("´õ ÀÌ»ó °Ë»öµÈ ³»¿ëÀÌ ¾ø½À´Ï´Ù.
");
}
}
function bttm_info_win(h_v, addr, b_info, onclick_url, rlty_li) {
// map_addr
}