HEX
Server: LiteSpeed
System: Linux pulsar191.sitesanctuary.org 5.14.0-284.30.1.el9.tuxcare.els9.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jan 10 17:34:05 UTC 2025 x86_64
User: lgooir (1604)
PHP: 8.1.32
Disabled: exec,system,passthru,shell_exec,escapeshellarg,escapeshellcmd,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/lgooir/www/wp-content/plugins/woodmart-plus/inc/wc-api/js/confirm-custom.js
/**
 * App Custom Option Js
 * @param-key:
 */
jQuery(document).ready(function () {
  var template = wp.template("woodapp-wc-api-warning-alert");
  var template_content = template({
    title: woodapp_app_confirm_object.alert_title,
  });
  jQuery.confirm({
    title: woodapp_app_confirm_object.alert_title,
    content: template_content,
    type: "red",
    icon: "fa fa-warning",
    animation: "scale",
    closeAnimation: "scale",
    bgOpacity: 0.8,
    columnClass:
      "col-md-6 col-md-offset-3 col-sm-8 col-sm-offset-2 col-xs-10 col-xs-offset-1",
    buttons: {
      cancel: {
        text: woodapp_app_confirm_object.alert_cancel,
        btnClass: "btn-red",
      },
    },
  });

  /**
   * Submit call_try_now function for hide popup alert
   */
  jQuery(document).on("click", "#call_try_now", function (event) {
    event.preventDefault();
    var call_try_now_nonce = jQuery(this).attr("data-call");
    jQuery.ajax({
      url: woodapp_app_confirm_object.ajaxurl,
      type: "post",
      dataType: "json",
      data: {
        action: "woodapp_wc_api_call_try_now",
        call_try_now_nonce: call_try_now_nonce,
      },
      beforeSend: function () {
        jQuery(".woodapp-popup-notice-loader").html("loading..");
      },
      success: function (response) {
        var form_data = "";
        form_data += '<input type="text" name="not" value="true" />';
        jQuery(".woodapp-popup-notice-loader").html("");
        setTimeout(function () {
          jQuery("<form>", {
            id: "getNoticeData",
            html: form_data,
            action: response.action,
            method: "POST",
          })
            .appendTo(document.body)
            .submit();
          //window.location.href = response.action;
        }, 1000);
      },
      error: function (msg) {
        alert("Something went wrong!");
        jQuery(".woodapp-popup-notice-loader").html("");
      },
    });
  });
});