Heray-Was-Here
Server : Apache
System : Linux vps37394.inmotionhosting.com 3.10.0-1160.119.1.vz7.224.4 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
User : jasonp18 ( 1000)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/jasonp18/www/wp-content/plugins/strong-testimonials/assets/src/js/modules/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/jasonp18/www/wp-content/plugins/strong-testimonials/assets/src/js/modules/notice.js
export default class Notice {

	constructor($element){
		this.$element = $element;
		this.key = $element.data('key');
		this.nonce = $element.data('nonce');

		this.$element.on( 'click', '.notice-dismiss', () => this.onDismissClick() );
	}

	onDismissClick() {

		this.$element.remove();

		jQuery.ajax({
			type: "POST",
			data : { action: "wpmtst_dismiss_notice", nonce: this.nonce, key: this.key },
			url : ajaxurl
		});
	}

}



Hry