mirror of
https://github.com/mumuy/data_location.git
synced 2026-11-20 06:33:36 +08:00
Merge branch 'master' of https://github.com/mumuy/data_location
This commit is contained in:
commit
4af6189729
@ -279,6 +279,9 @@
|
||||
onCallback:function(){
|
||||
var location = $location.val();
|
||||
if(location){
|
||||
location = location.replace(/[&<>"']/g,function(c){
|
||||
return {'&':'&','<':'<','>':'>','"':'"',"'":'''}[c];
|
||||
});
|
||||
result = searchItem.query(location);
|
||||
if(result.length>10){
|
||||
result = 10;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user