HEX
Server: Apache
System: Linux webm020.cluster127.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: bohousj (181416)
PHP: 8.4.22
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/b/o/h/bohousj/www/wp-content/plugins/woocommerce-stock-manager/admin/assets/js/subscribe.js
// For Klawoo subscribe
jQuery(function () {
	jQuery("form[name=wsm_klawoo_subscribe]").on( 'submit', function (e) {
		e.preventDefault();
		var formData = {};
		jQuery.each(jQuery('form[name=wsm_klawoo_subscribe]').serializeArray(), function() {
			formData[this.name] = this.value;
		});

		var data = {
			action : 'wsm_klawoo_subscribe',
			params : formData,
		};

		jQuery.post( ajaxurl, data, function( response ) {
			var result = jQuery(response);
			if ( result.find("h2").text() == "You\'re subscribed!" ) {
				jQuery("td[id=wsm_promo_msg_content]").html("<div class='wsm_success'>Thank you for subscribing!!!</div>");
			}

		});
	});
});