PageSourceSearch

http://alltex-expo.com.ua/wp-content/themes/javo-directory/assets/js/jquery.javo.mail.js?ver=0.1

js alltex-expo.com.ua collected 2026-10-03 23:58:17 UTC 2,094 bytes, 76 lines download raw bytes

1;(function($){
2	jQuery.javo_mail = function(d, a, b){
3		d = $.extend( true, {}, {
4			url:null
5			, subejct: null
6			, to: null
7			, from: null
8			, content: null
9			, to_null_msg: "Please, to email adress."
10			, from_null_msg: "Please, from email adress."
11			, subject_null_msg: "Please, insert Subject(or name)"
12			, content_null_msg: "Please, insert content"
13			, successMsg: "Successfully !"
14			, failMsg: "Sorry mail send failed"
15			, confirmMsg: "Send this email ?"
16			, hide:null
17			, callback:null
18			, item_name:null
19			}, d);
20
21		var options = {};
22		options.url = d.url;
23		options.type = "post";
24		options.data = {
25			subject: d.subject.val()
26			, to: d.to
27			, from: d.from.val()
28			, content: "From : "+d.from.val()+"<br><br>Name : "+d.subject.val()+"<br><br>Item Name: "+d.item_name+"<br><br>Content : "+d.content.val()
29			, action: "send_mail"
30		};
31		options.dataType = "json";
32		options.error = function(e){
33			$.javo_msg({ content: 'Error : ' + e.state() });
34			console.log( e.responseText );
35		};
36		options.success = function(data){
37			if(data.result){
38				$.javo_msg({ content:d.successMsg });
39				if( typeof d.callback == "function" ) d.callback();
40			}else{
41				$.javo_msg({ content:d.failMsg });
42			};
43			if( typeof a == 'function' && typeof b == 'function' ){
44				b();
45			}else if( typeof a == 'function' && (typeof b == 'undefined' || b == null)){
46				a();
47			};
48
49
50
51		};
52		function is_rm_null(str, msg){
53			if( typeof(str) != null && str.val() != "") return;
54			str
55				.css({
56					"border":"solid 1px #f00"
57					, "background":"#fee"
58				})
59				.focus();
60			$.javo_msg({ content:msg });
61			return false;
62		};
63
64		if( is_rm_null(d.subject, d.subject_null_msg ) == false ) return false;
65		if( is_rm_null(d.from, d.from_null_msg ) == false ) return false;
66		if( is_rm_null(d.content, d.content_null_msg ) == false ) return false;
67		if(!confirm(d.confirmMsg)) return false;
68
69		// Before Callback
70		if( typeof a == 'function' && typeof b == 'function' ){
71			a();
72		};
73
74		$.ajax(options);
75	};
76})(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.