[Callsign Lookup] Return Callsign in json request and match to input when looking a callsign up
这个提交包含在:
		
							父节点
							
								
									072d6fb6e7
								
							
						
					
					
						当前提交
						cbc6224ad3
					
				
					共有  2 个文件被更改,包括 4 次插入 和 2 次删除
				
			
		| 
						 | 
				
			
			@ -124,6 +124,7 @@ class Logbook extends CI_Controller {
 | 
			
		|||
		$this->load->model('logbook_model');
 | 
			
		||||
 | 
			
		||||
		$return = [
 | 
			
		||||
			"callsign" => strtoupper($callsign),
 | 
			
		||||
			"dxcc" => false,
 | 
			
		||||
			"callsign_name" => "",
 | 
			
		||||
			"callsign_qra"  => "",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -360,8 +360,9 @@ $("#callsign").focusout(function() {
 | 
			
		|||
		// Replace / in a callsign with - to stop urls breaking
 | 
			
		||||
		$.getJSON('logbook/json/' + find_callsign.replace(/\//g, "-") + '/' + sat_type + '/' + json_band + '/' + json_mode + '/' + $('#stationProfile').val(), function(result)
 | 
			
		||||
		{
 | 
			
		||||
			// Make sure the typed callsign and temp callsign match
 | 
			
		||||
			if($('#callsign').val = temp_callsign){
 | 
			
		||||
 | 
			
		||||
			// Make sure the typed callsign and json result match
 | 
			
		||||
			if($('#callsign').val = result.callsign) {
 | 
			
		||||
 | 
			
		||||
				if(result.dxcc.entity != undefined) {
 | 
			
		||||
					$('#country').val(convert_case(result.dxcc.entity));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		正在加载…
	
		在新工单中引用