diff --git a/app/views/finalists/index.html.erb b/app/views/finalists/index.html.erb
index 0941f138..681a5153 100644
--- a/app/views/finalists/index.html.erb
+++ b/app/views/finalists/index.html.erb
@@ -56,7 +56,7 @@
<% content_for :javascript do %>
<% javascript_tag do %>
$(window).load(function(){
- $('#filter_start').datepicker({dateFormat: 'yy-mm-dd', onClose: function(){ $('#filter_start').blur() }});
+ $('#filter_start').datepicker({dateFormat: 'yy-mm-dd', onClose: function(dateText){ $('#filter_start').blur(); $('#filter_end').datepicker('option', 'defaultDate', dateText); $('#filter_end').blur() }});
$('#filter_end').datepicker({dateFormat: 'yy-mm-dd', onClose: function(){ $('#filter_end').blur() }});
});
<% end %>
diff --git a/app/views/projects/index.html.erb b/app/views/projects/index.html.erb
index 8ecf0906..969f274e 100644
--- a/app/views/projects/index.html.erb
+++ b/app/views/projects/index.html.erb
@@ -58,7 +58,7 @@
<% content_for :javascript do %>
<% javascript_tag do %>
$(window).load(function(){
- $('#filter_start').datepicker({dateFormat: 'yy-mm-dd', onClose: function(){ $('#filter_start').blur() }});
+ $('#filter_start').datepicker({dateFormat: 'yy-mm-dd', onClose: function(dateText){ $('#filter_start').blur(); $('#filter_end').datepicker('option', 'defaultDate', dateText); $('#filter_end').blur() }});
$('#filter_end').datepicker({dateFormat: 'yy-mm-dd', onClose: function(){ $('#filter_end').blur() }});
});
<% end %>