Skip to content

Commit

Permalink
Merge pull request #336 from lukecarbis/issue-334
Browse files Browse the repository at this point in the history
Issue #334: Fix for future dates in Start date field
  • Loading branch information
frankiejarrett committed Mar 13, 2014
2 parents d58b474 + 044ec6c commit 64f501f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ui/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,12 +424,11 @@ jQuery(function($){

if ('' !== from.val()) {
from_remove.show();
to.datepicker('option', 'minDate', from.val());
} else {
from_remove.hide();
}

to.datepicker('option', 'minDate', from.val());

if (arguments[arguments.length-1] === true) {
return false;
}
Expand All @@ -442,12 +441,11 @@ jQuery(function($){
'change': function () {
if ('' !== to.val()) {
to_remove.show();
from.datepicker('option', 'maxDate', to.val());
} else {
to_remove.hide();
}

from.datepicker('option', 'maxDate', to.val());

if (arguments[arguments.length-1] === true) {
return false;
}
Expand Down

0 comments on commit 64f501f

Please sign in to comment.