Skip to content

Commit

Permalink
Disable future dates in selector
Browse files Browse the repository at this point in the history
  • Loading branch information
setaou committed Jan 4, 2016
1 parent a65b8d3 commit 0edc3de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions js/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ monetaControllers.controller('AuditLogCtrl', ['$scope', '$http', '$modal', 'conf

$scope.eventsperpage = 50;
$scope.currentpage = 0;
$scope.today = moment().toDate();
$scope.from = moment().subtract(1, 'days').toDate();
$scope.until = moment().toDate();

Expand Down
2 changes: 1 addition & 1 deletion templates/auditlog.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<label>From <date-picker ng-model="from" not-after="until" autohide="true" format="yyyy-MM-dd"></date-picker></label>
</div>
<div class="columns small-6">
<label>Until <date-picker ng-model="until" not-before="from" autohide="true" format="yyyy-MM-dd"></date-picker></label>
<label>Until <date-picker ng-model="until" not-before="from" not-after="today" autohide="true" format="yyyy-MM-dd"></date-picker></label>
</div>
</div>

Expand Down

0 comments on commit 0edc3de

Please sign in to comment.