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
This commit is contained in:
Mikael Karlsson 2014-03-11 14:38:15 +00:00
parent 9d9ae68788
commit 7bf6cea053
1 changed files with 2 additions and 2 deletions

View File

@ -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 <form id="dataset-search">.
//$("#dataset-search").submit();
form.submit();
});
}
}