Skip to content

Commit

Permalink
Merge pull request #2 from MarijaKnezevic/datesearch_and_spatial
Browse files Browse the repository at this point in the history
Datesearch and spatial
  • Loading branch information
MarijaKnezevic authored Apr 28, 2023
2 parents b267e94 + 38ada2f commit d5af9d4
Show file tree
Hide file tree
Showing 12 changed files with 1,074 additions and 880 deletions.
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
recursive-include ckanext/datesearch/templates *
recursive-include ckanext/datesearch/assets *.html *.json *.js *.less *.css *.mo *.yml
857 changes: 0 additions & 857 deletions ckanext/datesearch/asset/daterangepicker.js

This file was deleted.

13 changes: 0 additions & 13 deletions ckanext/datesearch/asset/webassets.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ this.ckan.module('daterangepicker-module', function($, _) {

// Add hidden <input> tags #ext_startdate and #ext_enddate,
// if they don't already exist.
var form = $("#dataset-search");
var form = $("#dataset-search-form");
if ($("#ext_startdate").length === 0) {
$('<input type="hidden" id="ext_startdate" name="ext_startdate" />').appendTo(form);
}
Expand Down Expand Up @@ -46,7 +46,7 @@ this.ckan.module('daterangepicker-module', function($, _) {
$('#ext_enddate').val(end);

// Submit the <form id="dataset-search">.
$("#dataset-search").submit();
$("#dataset-search-form").submit();
});
}
}
Expand Down
Loading

0 comments on commit d5af9d4

Please sign in to comment.