From 7bf6cea053bf359bdc91e14e9fdada07e2efe50d Mon Sep 17 00:00:00 2001 From: Mikael Karlsson Date: Tue, 11 Mar 2014 14:38:15 +0000 Subject: [PATCH] Automatically submit search form on date selection git-svn-id: https://svn.eudat.eu/EUDAT/Services/MetaData/ckanext-datesearch@2723 68e52488-0a15-44bc-a314-416658652264 --- ckanext/datesearch/fanstatic/daterangepicker-module.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ckanext/datesearch/fanstatic/daterangepicker-module.js b/ckanext/datesearch/fanstatic/daterangepicker-module.js index ea48a37..c89f530 100644 --- a/ckanext/datesearch/fanstatic/daterangepicker-module.js +++ b/ckanext/datesearch/fanstatic/daterangepicker-module.js @@ -42,7 +42,7 @@ this.ckan.module('daterangepicker-module', function ($, _) { minViewMode: 2, keyboardNavigation: false, autoclose: true - }).on('hide', function (ev) { + }).on('changeDate', function (ev) { // Bootstrap-daterangepicker calls this function after the user picks a start and end date. // Format the start and end dates into strings in a date format that Solr understands. @@ -69,7 +69,7 @@ this.ckan.module('daterangepicker-module', function ($, _) { } // Submit the