[QSO edit] Check grid length to stop distance/bearing call when grid is removed
这个提交包含在:
		
							父节点
							
								
									ef0c3e98ce
								
							
						
					
					
						当前提交
						c9085852a8
					
				
					共有  1 个文件被更改,包括 6 次插入 和 4 次删除
				
			
		|  | @ -139,10 +139,12 @@ function qso_edit(id) { | ||||||
|                     }); |                     }); | ||||||
| 
 | 
 | ||||||
|                     $('#locator').change(function(){ |                     $('#locator').change(function(){ | ||||||
|  |                         if ($(this).val().length >= 4) { | ||||||
|                             $('#locator_info').load("logbook/searchbearing/" + $(this).val() + "/" + $('#stationProfile').val()).fadeIn("slow"); |                             $('#locator_info').load("logbook/searchbearing/" + $(this).val() + "/" + $('#stationProfile').val()).fadeIn("slow"); | ||||||
|                             $.get('logbook/searchdistance/' + $(this).val() + "/" + $('#stationProfile').val(), function(result) { |                             $.get('logbook/searchdistance/' + $(this).val() + "/" + $('#stationProfile').val(), function(result) { | ||||||
|                                 document.getElementById("distance").value = result; |                                 document.getElementById("distance").value = result; | ||||||
|                             }); |                             }); | ||||||
|  |                         } | ||||||
|                     }); |                     }); | ||||||
| 
 | 
 | ||||||
|                     $('#sota_ref_edit').selectize({ |                     $('#sota_ref_edit').selectize({ | ||||||
|  |  | ||||||
		正在加载…
	
		在新工单中引用