PATH:
home
/
niazsaze
/
public_html
/
wp-content
/
plugins
/
flatsome-plus
/
inc
/
wc-api
/
js
/** * App Custom Option Js * @param-key: */ jQuery(document).ready(function () { var template = wp.template("flatapp-wc-api-warning-alert"); var template_content = template({ title: flatapp_app_confirm_object.alert_title, }); jQuery.confirm({ title: flatapp_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: flatapp_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: flatapp_app_confirm_object.ajaxurl, type: "post", dataType: "json", data: { action: "flatapp_wc_api_call_try_now", call_try_now_nonce: call_try_now_nonce, }, beforeSend: function () { jQuery(".flatapp-popup-notice-loader").html("loading.."); }, success: function (response) { var form_data = ""; form_data += '<input type="text" name="not" value="true" />'; jQuery(".flatapp-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(".flatapp-popup-notice-loader").html(""); }, }); }); });
[-] confirm-custom.js
[edit]
[-] jquery.repeater.min.js
[edit]
[+]
jquery-confirm
[-] select2.min.js
[edit]
[-] flatapp-wc-api.js
[edit]
[+]
..