We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5d4397 commit d74a512Copy full SHA for d74a512
1 file changed
src/datetime-range.js
@@ -53,7 +53,13 @@ angular.module('g1b.datetime-range', []).
53
if ( (scope.selected.clone().startOf('week').month() !== scope.calendar.month() && scope.selected.clone().endOf('week').month() !== scope.calendar.month()) || calendar_update ) {
54
scope.calendar = scope.selected.clone();
55
}
56
- scope.callback();
+ if ( scope.selected === scope.start ) {
57
+ scope.callbackStart();
58
+ }
59
+ if ( scope.selected === scope.end ) {
60
+ scope.callbackEnd();
61
62
+ scope.callbackAll();
63
} else {
64
scope.warning = ( scope.selected === scope.start ) ? 'end' : 'start';
65
$timeout(function () {
0 commit comments