Skip to content

Commit

Permalink
fix timepicker onSelect value is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Siavash Kavousi authored Mar 13, 2018
1 parent 9b3246c commit 6113fee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/es6/navigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class Navigator {
$(document).on('click', '#' + that.model.view.id + ' .up-btn', function () {
let timekey = $(this).data('time-key');
that.timeUp(timekey);
that.model.options.onSelect(that.model.state.selected.unix);
that.model.options.onSelect(that.model.state.selected.unixDate);
});

/**
Expand All @@ -177,7 +177,7 @@ class Navigator {
$(document).on('click', '#' + that.model.view.id + ' .down-btn', function () {
let timekey = $(this).data('time-key');
that.timeDown(timekey);
that.model.options.onSelect(that.model.state.selected.unix);
that.model.options.onSelect(that.model.state.selected.unixDate);
});

}
Expand Down

0 comments on commit 6113fee

Please sign in to comment.