[wms] Fix small bug

This commit is contained in:
amercader 2012-08-14 12:48:39 +01:00
parent d841bb2c17
commit efa2307ee5
1 changed files with 2 additions and 1 deletions

View File

@ -18,10 +18,11 @@ CKAN.WMSPreview = function($){
var cleanUrl = function(server){
var qs;
if (server.indexOf("?") !== -1)
if (server.indexOf("?") !== -1){
parts = server.split("?");
server = parts[0];
qs = parts[1];
}
var mapParam = getParameterByName("map", "?" + qs);
if (mapParam)