diff --git a/application/default/views/scripts/data/view.phtml b/application/default/views/scripts/data/view.phtml index 8ed46347..e93d005f 100755 --- a/application/default/views/scripts/data/view.phtml +++ b/application/default/views/scripts/data/view.phtml @@ -533,6 +533,8 @@ function bingSearch(keyword){ success:function(html){ var items = []; var obj = jQuery.parseJSON(html); + if(obj.SearchResponse.Web.Total==0) + {$('#searchlist').html("No results!");return false;} $.each(obj.SearchResponse.Web.Results, function(key, val) { var html = '
' +val['DisplayUrl'].replace(/%(.*)/i,"") +'
' diff --git a/application/default/views/scripts/heihe/view.phtml b/application/default/views/scripts/heihe/view.phtml index 237d5682..5452f9c2 100755 --- a/application/default/views/scripts/heihe/view.phtml +++ b/application/default/views/scripts/heihe/view.phtml @@ -499,6 +499,8 @@ function bingSearch(keyword){ success:function(html){ var items = []; var obj = jQuery.parseJSON(html); + if(obj.SearchResponse.Web.Total==0) + {$('#searchlist').html("No results!");return false;} $.each(obj.SearchResponse.Web.Results, function(key, val) { var html = '
' +val['DisplayUrl'].replace(/%(.*)/i,"") +'
' @@ -564,7 +566,7 @@ zoomlevel--; new GLatLng(= $md->south; ?>,= $md->east; ?>), new GLatLng(= $md->south; ?>,= $md->west; ?>), new GLatLng(= $md->north; ?>,= $md->west; ?>) - ],"#f33f00",5,1,"#ff0000",0.2); + ],"#e4e4e4",5,1,"#FFFFFF",0.0); map.addOverlay(polygon); } diff --git a/application/default/views/scripts/water/view.phtml b/application/default/views/scripts/water/view.phtml index b4b08eb1..6f1abb55 100755 --- a/application/default/views/scripts/water/view.phtml +++ b/application/default/views/scripts/water/view.phtml @@ -489,6 +489,8 @@ function bingSearch(keyword){ success:function(html){ var items = []; var obj = jQuery.parseJSON(html); + if(obj.SearchResponse.Web.Total==0) + {$('#searchlist').html("No results!");return false;} $.each(obj.SearchResponse.Web.Results, function(key, val) { var html = '
' +val['DisplayUrl'].replace(/%(.*)/i,"") +'
'