Fix AJAX handler context
This commit is contained in:
		
							parent
							
								
									4ec326aa57
								
							
						
					
					
						commit
						ca87f72b7f
					
				| 
						 | 
					@ -455,8 +455,6 @@ var gCore = {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function Contact()
 | 
					function Contact()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	var t = this;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	this.email = $('#feedback__email');
 | 
						this.email = $('#feedback__email');
 | 
				
			||||||
	this.msg = $('#feedback__msg');
 | 
						this.msg = $('#feedback__msg');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -473,6 +471,7 @@ function Contact()
 | 
				
			||||||
	};
 | 
						};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	this.onSubmit = function(evt) {
 | 
						this.onSubmit = function(evt) {
 | 
				
			||||||
 | 
							var t = this;
 | 
				
			||||||
		$.ajax({
 | 
							$.ajax({
 | 
				
			||||||
			url: '/hook/feedback/',
 | 
								url: '/hook/feedback/',
 | 
				
			||||||
			handler: function(httpStatus, content) {t.onLoad(httpStatus, content)},
 | 
								handler: function(httpStatus, content) {t.onLoad(httpStatus, content)},
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue