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:
parent
9d9ae68788
commit
7bf6cea053
|
@ -42,7 +42,7 @@ this.ckan.module('daterangepicker-module', function ($, _) {
|
||||||
minViewMode: 2,
|
minViewMode: 2,
|
||||||
keyboardNavigation: false,
|
keyboardNavigation: false,
|
||||||
autoclose: true
|
autoclose: true
|
||||||
}).on('hide', function (ev) {
|
}).on('changeDate', function (ev) {
|
||||||
// Bootstrap-daterangepicker calls this function after the user picks a start and end date.
|
// 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.
|
// 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">.
|
// Submit the <form id="dataset-search">.
|
||||||
//$("#dataset-search").submit();
|
form.submit();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue