[#36] Fix spatial query widget for CKAN 2.1

This commit is contained in:
amercader 2013-08-30 16:26:02 +01:00
parent 0c99fbb294
commit d1bed67c36
1 changed files with 5 additions and 0 deletions

View File

@ -71,6 +71,11 @@ this.ckan.module('spatial-query', function ($, _) {
var is_exanded = false;
var should_zoom = true;
var form = $("#dataset-search");
// CKAN 2.1
if (!form.length) {
form = $(".search-form");
}
var buttons;
// Add necessary fields to the search form if not already created