1function ihcDeleteFileViaAjax(id, u_id, parent, name, hidden_id){ 2 var r = confirm("Are you sure you want to delete?"); 3 if (r) { 4 var s = jQuery(parent).attr('data-h'); 5 jQuery.ajax({ 6 type : "post", 7 url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php', 8 data : { 9 action: "ihc_delete_attachment_ajax_action", 10 attachemnt_id: id, 11 user_id: u_id, 12 field_name: name, 13 h: s 14 }, 15 success: function (data) { 16 jQuery(hidden_id).val(''); 17 jQuery(parent + ' .ajax-file-upload-filename').remove(); 18 jQuery(parent + ' .ihc-delete-attachment-bttn').remove(); 19 if (jQuery(parent + ' .ihc-member-photo').length){ 20 jQuery(parent + ' .ihc-member-photo').remove(); 21 if (name=='ihc_avatar'){ 22 jQuery(parent).prepend("<div class='ihc-no-avatar ihc-member-photo'></div>"); 23 jQuery(parent + " .ihc-file-upload").css("display", 'block'); 24 } 25 } 26 27 if (jQuery(parent + " .ihc-file-name-uploaded").length){ 28 jQuery(parent + " .ihc-file-name-uploaded").remove(); 29 } 30 31 if (jQuery(parent + ' .ajax-file-upload-progress').length){ 32 jQuery(parent + ' .ajax-file-upload-progress').remove(); 33 } 34 if (jQuery(parent + ' .ihc-icon-file-type').length){ 35 jQuery(parent + ' .ihc-icon-file-type').remove(); 36 } 37 } 38 }); 39 } 40} 41 42function ihcSetFormI(i_id, f_id, l_id, confirm){ 43 /* 44 * i_id = input hidden id 45 * f_id = form id 46 * l_id = level id 47 */ 48 if (confirm){ 49 var ihc_labels = JSON.parse(window.ihc_translated_labels) 50 var c = window.confirm( ihc_labels.delete_level ); 51 if (!c){ 52 return; 53 } 54 } 55 if (jQuery("#ihc_coupon").val()){ 56 jQuery(f_id).append("<input type=hidden value=" + jQuery("#ihc_coupon").val() + " name=ihc_coupon />"); 57 } 58 jQuery(i_id).val(l_id); 59 jQuery(f_id).submit(); 60} 61 62 63 64function ihcDhSelector(id, display){ 65 if (display){ 66 jQuery(id).css('visibility', 'visible'); 67 } else { 68 jQuery(id).css('visibility', 'hidden'); 69 } 70} 71 72function ihcSetLevelAp(l){ 73 jQuery('#ihc_renew_level').val(l); 74 jQuery('#ihc_form_ap_subscription_page').submit(); 75} 76 77function ihcRunSocialReg(s){ 78 var form = jQuery("form#createuser"); 79 jQuery("form#createuser input, form#createuser textarea").each(function(){ 80 ihcAppendInput(this.name, this.value, "#ihc_social_login_form"); 81 }); 82 ihcAppendInput('sm_type', s, "#ihc_social_login_form"); 83 jQuery("#ihc_social_login_form").submit(); 84} 85 86function ihcAppendInput(n,v,w){ 87 jQuery(w).append("<input type=hidden value="+v+" name="+n+" />"); 88} 89 90function ihcBuyNewLevel(href){ 91 if (jQuery("#ihc_coupon").val()){ 92 //we have a coupon 93 var url = href + "&ihc_coupon=" + jQuery("#ihc_coupon").val(); 94 window.location.href = url; 95 } else { 96 window.location.href = href; 97 } 98} 99 100jQuery(document).ready(function(){ 101 jQuery('.ihc-mobile-bttn').on('click', function(){ 102 jQuery('.ihc-ap-menu').toggle(); 103 }); 104}); 105 106function ihcRegisterCheckViaAjax(the_type){ 107 var target_id = '#' + jQuery('.ihc-form-create-edit [name='+the_type+']').parent().attr('id'); 108 var val1 = jQuery('.ihc-form-create-edit [name='+the_type+']').val(); 109 var val2 = ''; 110 111 if (the_type=='pass2'){ 112 val2 = jQuery('.ihc-form-create-edit [name=pass1]').val(); 113 } else if (the_type=='confirm_email'){ 114 val2 = jQuery('.ihc-form-create-edit [name=user_email]').val(); 115 } 116 117 jQuery.ajax({ 118 type : "post", 119 url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php', 120 data : { 121 action: "ihc_check_reg_field_ajax", 122 type: the_type, 123 value: val1, 124 second_value: val2 125 }, 126 success: function (data) { 127 //remove prev notice, if its case 128 jQuery(target_id + ' .ihc-register-notice').remove(); 129 jQuery('.ihc-form-create-edit [name='+the_type+']').removeClass('ihc-input-notice'); 130 if (data==1){ 131 // it's all good 132 } else { 133 jQuery(target_id).append('<div class="ihc-register-notice">'+data+'</div>'); 134 jQuery('.ihc-form-create-edit [name='+the_type+']').addClass('ihc-input-notice'); 135 } 136 } 137 }); 138} 139 140function ihcCheckLoginField(t, e){ 141 var n = jQuery('#notice_' + t); 142 n.fadeOut(500, function(){ 143 n.remove(); 144 });
145 var target = jQuery('#ihc_login_form [name='+t+']').parent(); 146 var v = jQuery('#ihc_login_form [name='+t+']').val(); 147 if (v==''){ 148 jQuery(target).append('<div class="ihc-login-notice" id="notice_' + t + '">' + e + '</div>'); 149 } 150} 151 152function ihcGetCheckboxRadioValue(type, selector){ 153 if (type=='radio'){ 154 var r = jQuery('[name='+selector+']:checked').val(); 155 if (typeof r!='undefined'){ 156 return r; 157 } 158 } else { 159 var arr = []; 160 jQuery('[name=\''+selector+'[]\']:checked').each(function(){ 161 arr.push(this.value); 162 }); 163 if (arr.length>0){ 164 return arr.join(','); 165 } 166 } 167 return ''; 168} 169 170function ihcRegisterCheckViaAjaxRec(types_arr){ 171 jQuery('.ihc-register-notice').remove(); 172 var fields_to_send = []; 173 174 //EXCEPTIONS 175 var exceptions = jQuery("#ihc_exceptionsfields").val(); 176 if (exceptions){ 177 var exceptions_arr = exceptions.split(','); 178 } 179 180 for (var i=0; i<types_arr.length; i++){ 181 //CHECK IF FIELD is in exceptions 182 if (exceptions_arr && exceptions_arr.indexOf(types_arr[i])>-1){ 183 continue; 184 } 185 var is_unique_field = false; 186 187 jQuery('.ihc-form-create-edit [name='+types_arr[i]+']').removeClass('ihc-input-notice'); 188 189 var field_type = jQuery('.ihc-form-create-edit [name=' + types_arr[i] + ']').attr('type'); 190 if (typeof field_type=='undefined'){ 191 var field_type = jQuery('.ihc-form-create-edit [name=\'' + types_arr[i] + '[]\']').attr('type'); 192 } 193 if (typeof field_type=='undefined'){ 194 var field_type = jQuery('.ihc-form-create-edit [name=\'' + types_arr[i] + '\']').prop('nodeName'); 195 } 196 if (typeof field_type=='undefined'){ 197 var field_type = jQuery('.ihc-form-create-edit [name=\'' + types_arr[i] + '[]\']').prop('nodeName'); 198 if (field_type=='SELECT'){ 199 field_type = 'multiselect'; 200 } 201 } 202 203 if (field_type=='checkbox' || field_type=='radio'){ 204 var val1 = ihcGetCheckboxRadioValue(field_type, types_arr[i]); 205 } else if ( field_type=='multiselect' ){ 206 val1 = jQuery('.ihc-form-create-edit [name=\'' + types_arr[i] + '[]\']').val(); 207 if (typeof val1=='object' && val1!=null){ 208 val1 = val1.join(','); 209 } 210 } else { 211 var val1 = jQuery('.ihc-form-create-edit [name='+types_arr[i]+']').val(); 212 if (jQuery('.ihc-form-create-edit [name='+types_arr[i]+']').attr('data-search-unique')){ 213 var is_unique_field = true; 214 } 215 } 216 217 var val2 = ''; 218 if (types_arr[i]=='pass2'){ 219 val2 = jQuery('.ihc-form-create-edit [name=pass1]').val(); 220 } else if (types_arr[i]=='confirm_email'){ 221 val2 = jQuery('.ihc-form-create-edit [name=user_email]').val(); 222 } else if (types_arr[i]=='tos') { 223 if (jQuery('.ihc-form-create-edit [name=tos]').is(':checked')){ 224 val1 = 1; 225 } else { 226 val1 = 0; 227 } 228 } 229 var params_to_send = {type: types_arr[i], value: val1, second_value: val2}; 230 if (is_unique_field){ 231 params_to_send.is_unique_field = true; 232 } 233 fields_to_send.push(params_to_send); 234 } 235 jQuery.ajax({ 236 type : "post", 237 url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php', 238 data : { 239 action: "ihc_check_reg_field_ajax", 240 fields_obj: fields_to_send 241 }, 242 success: function (data) { 243 var obj = JSON.parse(data); 244 var must_submit = 1; 245 246 for (var j=0; j<obj.length; j++){ 247 var field_type = jQuery('.ihc-form-create-edit [name=' + obj[j].type + ']').attr('type'); 248 if (typeof field_type=='undefined'){ 249 var field_type = jQuery('.ihc-form-create-edit [name=\'' + obj[j].type + '[]\']').attr('type'); 250 } 251 if (typeof field_type=='undefined'){ 252 var field_type = jQuery('.ihc-form-create-edit [name=\'' + obj[j].type + '\']').prop('nodeName'); 253 } 254 if (typeof field_type=='undefined'){ 255 var field_type = jQuery('.ihc-form-create-edit [name=\'' + obj[j].type + '[]\']').prop('nodeName'); 256 if (field_type=='SELECT'){ 257 field_type = 'multiselect'; 258 } 259 } 260 261 if (field_type=='radio'){ 262 var target_id = jQuery('.ihc-form-create-edit [name='+obj[j].type+']').parent().parent().attr('id'); 263 } else if (field_type=='checkbox' && obj[j].type!='tos'){ 264 var target_id = jQuery('.ihc-form-create-edit [name=\''+obj[j].type+'[]\']').parent().parent().attr('id'); 265 } else if ( field_type=='multiselect'){ 266 var target_id = jQuery('.ihc-form-create-edit [name=\''+obj[j].type+'[]\']').parent().attr('id'); 267 } else { 268 var target_id = jQuery('.ihc-form-create-edit [name='+obj[j].type+']').parent().attr('id'); 269 } 270 271 if (obj[j].value==1){ 272 // it's all good 273 } else { 274 //errors 275 if (typeof target_id=='undefined'){ 276 //no target id...insert msg after input 277 jQuery('.ihc-form-create-edit [name='+obj[j].type+']').after('<div class="ihc-register-notice">'+obj[j].value+'</div>'); 278 must_submit = 0; 279 } else { 280 jQuery('#'+target_id).append('<div class="ihc-register-notice">'+obj[j].value+'</div>'); 281 jQuery('.ihc-form-create-edit [name=' + obj[j].type + ']').addClass('ihc-input-notice'); 282 must_submit = 0; 283 } 284 } 285 } 286 if (must_submit==1){ 287 window.must_submit = 1; 288 jQuery(".ihc-form-create-edit").submit(); 289 } else { 290 return false;
291 } 292 } 293 }); 294 295} 296 297function ihcPaymentGatewayUpdate(v, is_r){ 298 //remove authorize block 299 //remove stripe stuff 300 jQuery('[name=ihc_payment_gateway]').val(v); 301 jQuery('#ihc_submit_bttn').unbind('click'); 302 jQuery('#ihc_authorize_r_fields').fadeOut(200); 303 jQuery('#ihc_braintree_r_fields').fadeOut(200); 304 switch (v){ 305 case 'stripe': 306 jQuery('#ihc_submit_bttn').bind('click', function(e){ 307 e.preventDefault(); 308 var p = jQuery("#iumpfinalglobalp").val(); 309 if ((jQuery("#stripeToken").val() && jQuery("#stripeEmail").val()) || p==0){ 310 jQuery(".ihc-form-create-edit").submit(); 311 return true; 312 } 313 p = p * 100; 314 if (p<50){ 315 p = 50; 316 } 317 iump_stripe.open({ 318 name: jQuery('#iump_site_name').val(), 319 description: jQuery('#iumpfinalglobal_ll').val(), 320 amount: p, 321 currency: jQuery('#iumpfinalglobalc').val(), 322 }); 323 }); 324 break; 325 case 'authorize': 326 if (is_r==1){ 327 jQuery('#ihc_authorize_r_fields').fadeIn(200); 328 } 329 break; 330 case 'braintree': 331 jQuery('#ihc_braintree_r_fields').fadeIn(200); 332 break; 333 } 334} 335 336function iumpStripePrice(){ 337 var p = jQuery("#iumpfinalglobalp").val(); 338 p = p * 100; 339 if (p<50){ 340 p = 50; 341 } 342 return p; 343} 344 345function ihcBuyNewLevelFromAp(l_name, l_amount, lid, url){ 346 var v = jQuery('[name=ihc_payment_gateway]').val(); 347 if (v=='stripe'){ 348 jQuery.ajax({ 349 type : "post", 350 url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php', 351 data : { 352 action: "ihc_check_lid_price", 353 level_id: lid 354 }, 355 success: function (data){ 356 if (data==1){ 357 //it's free 358 ihcBuyNewLevel(url+'&ihc_payment_gateway='+v); 359 } else { 360 // make payment with stripe 361 ihc_stripe_payment(l_name, l_amount, lid); 362 } 363 } 364 }); 365 // 366 } else { 367 var c = jQuery('#ihc_coupon').val(); 368 if (typeof v!='undefined'){ 369 url = url +'&ihc_payment_gateway='+v; 370 } 371 ihcBuyNewLevel(url); 372 } 373} 374 375function ihcRenewFunction(i_id, f_id, l_id, l_name, l_amount){ 376 /* 377 * i_id = input hidden id 378 * f_id = form id 379 * l_id = level id 380 * l_name = level name 381 * l_amount = level amount 382 */ 383 var v = jQuery('[name=ihc_payment_gateway]').val(); 384 if (v=='stripe'){ 385 if (typeof ihc_stripe_renew_payment == 'function') { 386 ihc_stripe_renew_payment(l_name, l_amount, l_id); 387 return false; 388 } 389 } else { 390 ihcSetFormI(i_id, f_id, l_id); 391 } 392} 393 394function ihcPaymentSelectIcon(t){ 395 jQuery('.ihc-payment-icon').removeClass('ihc-payment-select-img-selected'); 396 jQuery('#ihc_payment_icon_'+t).addClass('ihc-payment-select-img-selected'); 397} 398 399//////////////logic condition 400 401function ihcAjaxCheckFieldConditionOnblurOnclick(check_name, field_id, field_name, show){ 402 var check_value = jQuery(".ihc-form-create-edit [name="+check_name+"]").val(); 403 ihcAjaxCheckFieldCondition(check_value, field_id, field_name, show); 404} 405 406function ihcAjaxCheckOnClickFieldCondition(check_name, field_id, field_name, type, show){ 407 if (type=='checkbox'){ 408 var vals = []; 409 jQuery(".ihc-form-create-edit [name='"+check_name+"[]']:checked").each(function() { 410 vals.push(jQuery(this).val()); 411 }); 412 var check_value = vals.join(','); 413 } else { 414 var check_value = jQuery(".ihc-form-create-edit [name="+check_name+"]:checked").val(); 415 } 416 417 ihcAjaxCheckFieldCondition(check_value, field_id, field_name, show); 418} 419 420function ihcAjaxCheckOnChangeMultiselectFieldCondition(check_name, field_id, field_name, show){ 421 var obj = jQuery(".ihc-form-create-edit [name='"+check_name+"[]']").val(); 422 if (obj!=null){ 423 var check_value = obj.join(','); 424 ihcAjaxCheckFieldCondition(check_value, field_id, field_name, show); 425 } 426} 427 428function ihcAjaxCheckFieldCondition(check_value, field_id, field_name, show){ 429 jQuery.ajax({ 430 type : "post", 431 url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php', 432 data : { 433 action: "ihc_check_logic_condition_value", 434 val: check_value, 435 field: field_name 436 }, 437 success: function (data){ 438 var str = jQuery("#ihc_exceptionsfields").val(); 439 if (str){ 440 var arr = str.split(','); 441 var index = arr.indexOf(field_name); 442 } else { 443 var arr = []; 444 } 445 446 if (data=='1'){ 447 if (show==1){ 448 jQuery(field_id).fadeIn(200); 449 if (arr.indexOf(field_name)!=-1){ 450 arr.splice(index, 1); 451 } 452 } else { 453 jQuery(field_id).fadeOut(200); 454 if (arr.indexOf(field_name)==-1){ 455 arr.push(field_name); 456 } 457 458 } 459 } else { 460 if (show==1){ 461 jQuery(field_id).fadeOut(200); 462 if (arr.indexOf(field_name)==-1){ 463 arr.push(field_name); 464 } 465 } else { 466 jQuery(field_id).fadeIn(200); 467 if (arr.indexOf(field_name)!=-1){ 468 arr.splice(index, 1); 469 } 470 } 471 } 472 if (arr){ 473 var str = arr.join(','); 474 jQuery("#ihc_exceptionsfields").val(str); 475 } 476 } 477 }); 478} 479 480function ihcCheckUniqueValueField(the_type){ 481 var target_id = '#' + jQuery('.ihc-form-create-edit [name='+the_type+']').parent().attr('id'); 482 var v = jQuery('.ihc-form-create-edit [name='+the_type+']').val(); 483 if (v){ 484 jQuery.ajax({ 485 type : "post", 486 url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php', 487 data : { 488 action: "ihcCheckUniqueValueField_register", 489 meta_key: the_type, 490 meta_value: v 491 }, 492 success: function (data) { 493 //remove prev notice, if its case 494 jQuery(target_id + ' .ihc-register-notice').remove(); 495 jQuery('.ihc-form-create-edit [name='+the_type+']').removeClass('ihc-input-notice'); 496 if (data==1){ 497 // it's all good 498 499 } else { 500 jQuery(target_id).append('<div class="ihc-register-notice">'+data+'</div>'); 501 jQuery('.ihc-form-create-edit [name='+the_type+']').addClass('ihc-input-notice'); 502 window.must_submit = 0; 503 } 504 } 505 }); 506 } 507} 508 509function ihcCheckInvitationCode(){ 510 var target_id = '#' + jQuery('.ihc-form-create-edit #ihc_invitation_code_field').parent().attr('id'); 511 var v = jQuery('#ihc_invitation_code_field').val(); 512 if (v){ 513 jQuery.ajax({ 514 type : "post", 515 url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php', 516 data : { 517 action: "ihc_check_invitation_code_via_ajax", 518 c: v, 519 }, 520 success: function (data) { 521 //remove prev notice, if its case 522 jQuery(target_id + ' .ihc-register-notice').remove(); 523 jQuery('.ihc-form-create-edit #ihc_invitation_code_field').removeClass('ihc-input-notice'); 524 525 if (data==1){ 526 // it's all good 527 } else { 528 jQuery(target_id).append('<div class="ihc-register-notice">'+data+'</div>'); 529 jQuery('.ihc-form-create-edit #ihc_invitation_code_field').addClass('ihc-input-notice'); 530 window.must_submit = 0; 531 } 532 } 533 }); 534 } 535} 536 537function ihcUpdateCart(){ 538 var lid_val = jQuery('.ihc-form-create-edit [name=lid]').val(); 539 var coupon_val = jQuery('.ihc-form-create-edit [name=ihc_coupon]').val(); 540 var country_val = jQuery('.ihc-form-create-edit #ihc_country_field').val(); 541 var state_val = jQuery('.ihc-form-create-edit [name=ihc_state]').val();
542 if (jQuery('#ihc_dynamic_price').length){ 543 var d_a = jQuery('#ihc_dynamic_price').val(); 544 } else { 545 var d_a = -1; 546 } 547 var payment_gateway = jQuery('[name=ihc_payment_gateway]').val() 548 549 jQuery.ajax({ 550 type : "post", 551 url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php', 552 data : { 553 action: "ihc_get_cart_via_ajax", 554 country: country_val, 555 lid: lid_val, 556 coupon: coupon_val, 557 state: state_val, 558 a: d_a, 559 payment_type: payment_gateway, 560 }, 561 success: function (response){ 562 jQuery('#ihc_cart_wrapper').remove(); 563 jQuery('.ihc-form-create-edit').after(response); 564 } 565 }); 566} 567 568function ihcShowPrint(i){ 569 jQuery(i).css('display', 'block'); 570} 571 572function ihcHidePrint(i){ 573 jQuery(i).css('display', 'none'); 574} 575 576function ihcDoPrint(i){ 577 var file = jQuery(i).files[0]; 578 var reader = new FileReader(); 579 reader.onload = function(event) { 580 var html = "<html><head>" + 581 "</head>" + 582 "<body style ='-webkit-print-color-adjust:exact;'>"+ 583 "<img src=\"" + event.target.result + "\" onload=\"javascript:window.print();\"/>" + 584 "</body>"; 585 var win = window.open("about:blank","_blank"); 586 win.document.write(html); 587 588 }; 589 reader.readAsDataURL(file); 590} 591 592jQuery(document).ready(function(){ 593 var e = jQuery('.ihc-form-create-edit [name=ihc_coupon]'); 594 e.on('blur', function(){ 595 ihcUpdateCart(); 596 var p = '#' + e.parent().attr('id'); 597 jQuery(p+' #ihc_coupon_code_check_div_msg').remove(); 598 if (e.val()){ 599 jQuery.ajax({ 600 type : "post", 601 url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php', 602 data : { 603 action: "ihc_check_coupon_status_via_ajax", 604 c: e.val(), 605 l: jQuery('.ihc-form-create-edit [name=lid]').val(), 606 }, 607 success: function (r) { 608 var obj = JSON.parse(r); 609 if (obj.is_active){ 610 jQuery(p).append('<div class="ihc-coupon-valid" id="ihc_coupon_code_check_div_msg">' + obj.success_msg + '</div>'); 611 } else { 612 jQuery(p).append('<div class="ihc-coupon-not-valid" id="ihc_coupon_code_check_div_msg">' + obj.err_msg + '</div>'); 613 } 614 setTimeout(function(){jQuery('#ihc_coupon_code_check_div_msg').fadeOut(500, function(){this.remove();});},5000); 615 } 616 }); 617 } 618 }); 619}); 620 621function ihcUpdateStateField( updateCart ){ 622 var s = jQuery('.ihc-form-create-edit [name=ihc_state]').length>0; 623 if (s){ 624 var e = jQuery('.ihc-form-create-edit [name=ihc_country]'); 625 jQuery.ajax({ 626 type : "post", 627 url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php', 628 data : { 629 action: "ihc_get_ihc_state_field", 630 country: e.val(), 631 }, 632 success: function (r) { 633 var f = jQuery('.ihc-form-create-edit [name=ihc_state]'); 634 var p = f.parent(); 635 f.remove(); 636 p.append(r); 637 if (updateCart){ 638 ihcUpdateCart(); 639 } 640 } 641 }); 642 } 643} 644 645function ihcRemoveSocial(t){ 646 jQuery.ajax({ 647 type : "post", 648 url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php', 649 data : { 650 action: "ihc_remove_sm_from_user", 651 type: t, 652 }, 653 success: function (r) { 654 location.reload(); 655 } 656 }); 657} 658 659function iumpGenerateInvoice(i){ 660 jQuery.ajax({ 661 type : "post", 662 url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php', 663 data : { 664 action: "ihc_generate_invoice", 665 order_id: i 666 }, 667 success: function (r) { 668 if (r){ 669 jQuery('body').append(r); 670 } 671 } 672 }); 673} 674 675function ihcClosePopup(){ 676 jQuery('#popup_box').fadeOut(300, function(){ 677 jQuery(this).remove(); 678 }); 679} 680 681function ihcDeselectAll(n, c){ 682 if (jQuery(c).is(':checked')){ 683 jQuery('[name="'+n+'[]"]').each(function(){ 684 if (jQuery(this).val()!=''){ 685 jQuery(this).attr('checked', false); 686 } 687 }); 688 } 689} 690 691function ihcDynamicPriceUpdateGlobal(){ 692 var p = jQuery('#ihc_dynamic_price').val(); 693 jQuery('#iumpfinalglobalp').val(p); 694 ihcUpdateCart(); 695} 696 697function ihcDoUsersiteModuleDelete(i){ 698 var c = confirm(window.ihc_current_question); 699 if (c){ 700 jQuery.ajax({ 701 type : "post", 702 url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php', 703 data : { 704 action: "ihc_do_user_delete_blog", 705 lid: i 706 }, 707 success: function (r){ 708 window.location.href = window.ihc_current_url; 709 } 710 }); 711 } 712}
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.