Skip to content

Commit

Permalink
Set default mode to 'quick'
Browse files Browse the repository at this point in the history
  • Loading branch information
Rashid Khan committed Apr 17, 2014
1 parent 2a4129b commit af458b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kibana/directives/timepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ define(function (require) {

$scope.format = 'MMMM Do YYYY, HH:mm:ss.SSS';
$scope.modes = ['quick', 'relative', 'absolute'];
if (_.isUndefined($scope.mode)) $scope.mode = 'quick';


$scope.relative = {
count: 1,
Expand Down Expand Up @@ -58,8 +60,6 @@ define(function (require) {
{text: 'Years ago', value: 'y'},
];

if (_.isUndefined($scope.mode)) $scope.mode = 'absolute';

$scope.$watch('absolute.from', function (date) {
if (_.isDate(date)) $scope.absolute.from = moment(date);
});
Expand Down

0 comments on commit af458b2

Please sign in to comment.