HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //proc/self/root/proc/self/cwd/pm/plugins/Purchase/assets/js/vendors/contact_modal_js.php
<script>
(function($) {
  "use strict";    

$('input[name="email"]').on('change', function(){
	var data = {};
	data.email = $(this).val();
	data.contact_id = $('input[name="contactid"]').val();
	if(data.email != ''){
		$.post("<?php echo get_uri('purchase/contact_email_exists'); ?>", data).done(function(reponse){
			reponse = JSON.parse(reponse);
			if(reponse == false || reponse == 'false'){
				$('input[name="email"]').val('').change();
				appAlert.warning('<?php echo _l('contact_email_exists'); ?>');
			}

		});
	}
});


})(jQuery);  
</script>