Skip to content

Commit

Permalink
=== not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Gillardo committed Mar 13, 2015
1 parent 3f097bf commit 08481d7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 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.8",
"version": "1.0.9",
"homepage": "https://github.com/Gillardo/bootstrap-ui-datetime-picker",
"authors": [
"Gillardo <[email protected]>"
Expand Down
4 changes: 2 additions & 2 deletions datetime-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
scope.showButtonBar = angular.isDefined(attrs.showButtonBar) ? scope.$parent.$eval(attrs.showButtonBar) : datepickerPopupConfig.showButtonBar;

// determine which pickers should be available. Defaults to date and time
scope.enableDate = scope.enableDate === false;
scope.enableTime = scope.enableTime === false;
scope.enableDate = !(scope.enableDate == false);
scope.enableTime = !(scope.enableTime == false);

// default picker view
scope.showPicker = scope.enableDate ? 'date' : 'time';
Expand Down
6 changes: 3 additions & 3 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.8
// Version: 1.0.9
// Released: 2015-03-13
angular.module('ui.bootstrap.datetimepicker', ['ui.bootstrap.dateparser', 'ui.bootstrap.position'])
.directive('datetimePicker', ['$compile', '$parse', '$document', '$position', 'dateFilter', 'dateParser', 'datepickerPopupConfig',
Expand Down Expand Up @@ -27,8 +27,8 @@ angular.module('ui.bootstrap.datetimepicker', ['ui.bootstrap.dateparser', 'ui.bo
scope.showButtonBar = angular.isDefined(attrs.showButtonBar) ? scope.$parent.$eval(attrs.showButtonBar) : datepickerPopupConfig.showButtonBar;

// determine which pickers should be available. Defaults to date and time
scope.enableDate = scope.enableDate === false;
scope.enableTime = scope.enableTime === false;
scope.enableDate = !(scope.enableDate == false);
scope.enableTime = !(scope.enableTime == false);

// default picker view
scope.showPicker = scope.enableDate ? 'date' : 'time';
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.8",
"version": "1.0.9",
"devDependencies": {
"grunt": "^0.4.5",
"grunt-angular-templates": "^0.5.7",
Expand Down

0 comments on commit 08481d7

Please sign in to comment.