Skip to content

Commit

Permalink
Issue #9
Browse files Browse the repository at this point in the history
bug fix
  • Loading branch information
Gillardo committed Mar 23, 2015
1 parent 668c753 commit 0fc8304
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bootstrap-ui-datetime-picker",
"version": "1.0.11",
"version": "1.0.12",
"homepage": "https://github.com/Gillardo/bootstrap-ui-datetime-picker",
"authors": [
"Gillardo <[email protected]>"
Expand Down
7 changes: 4 additions & 3 deletions datetime-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,13 @@
}
}

// store currentDate
currentDate = scope.date;

if (angular.isDefined(dt)) {
scope.date = dt;
}

// store currentDate
currentDate = scope.date;

ngModel.$setViewValue(scope.date);
ngModel.$render();

Expand Down
9 changes: 5 additions & 4 deletions dist/datetime-picker.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// https://github.com/Gillardo/bootstrap-ui-datetime-picker
// Version: 1.0.11
// Version: 1.0.12
// Released: 2015-03-23
angular.module('ui.bootstrap.datetimepicker', ['ui.bootstrap.dateparser', 'ui.bootstrap.position'])
.directive('datetimePicker', ['$compile', '$parse', '$document', '$timeout', '$position', 'dateFilter', 'dateParser', 'datepickerPopupConfig',
Expand Down Expand Up @@ -168,12 +168,13 @@ angular.module('ui.bootstrap.datetimepicker', ['ui.bootstrap.dateparser', 'ui.bo
}
}

// store currentDate
currentDate = scope.date;

if (angular.isDefined(dt)) {
scope.date = dt;
}

// store currentDate
currentDate = scope.date;

ngModel.$setViewValue(scope.date);
ngModel.$render();

Expand Down
4 changes: 2 additions & 2 deletions dist/datetime-picker.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bootstrap-ui-datetime-picker",
"url": "https://github.com/Gillardo/bootstrap-ui-datetime-picker",
"version": "1.0.11",
"version": "1.0.12",
"devDependencies": {
"grunt": "^0.4.5",
"grunt-angular-templates": "^0.5.7",
Expand Down

0 comments on commit 0fc8304

Please sign in to comment.