Skip to content

Commit

Permalink
v0.6.7
Browse files Browse the repository at this point in the history
  • Loading branch information
indrimuska committed Oct 20, 2016
1 parent 09a5149 commit 5c7fdf1
Show file tree
Hide file tree
Showing 6 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": "angular-moment-picker",
"version": "0.6.6",
"version": "0.6.7",
"authors": [
"Indri Muska <indrimuska@gmail.com>"
],
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-moment-picker.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Angular Moment Picker - v0.6.6 - https://github.com/indrimuska/angular-moment-picker - (c) 2015 Indri Muska - MIT */
/*! Angular Moment Picker - v0.6.7 - https://github.com/indrimuska/angular-moment-picker - (c) 2015 Indri Muska - MIT */
.moment-picker { position: relative; display: block; }
.moment-picker .moment-picker-contents { cursor: pointer; }
.moment-picker .moment-picker-container { color: #404040; min-width: 15em; background: #fff; padding: 4px; border: 1px solid #f0f3f4; border-radius: 4px; position: absolute;
Expand Down
6 changes: 3 additions & 3 deletions dist/angular-moment-picker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Angular Moment Picker - v0.6.6 - https://github.com/indrimuska/angular-moment-picker - (c) 2015 Indri Muska - MIT */
/*! Angular Moment Picker - v0.6.7 - https://github.com/indrimuska/angular-moment-picker - (c) 2015 Indri Muska - MIT */
(function (angular) {
'use strict';

Expand Down Expand Up @@ -175,7 +175,7 @@
isSelectable: function (value, precision) {
var selectable = true;
try {
if (angular.isFunction($scope.selectable)) selectable = $scope.selectable({ date: value, type: precision });
if ($attrs.selectable && angular.isFunction($scope.selectable)) selectable = $scope.selectable({ date: value, type: precision });
} catch (e) {
$log.error(e);
}
Expand Down Expand Up @@ -641,7 +641,7 @@
$timeout(function () {
$scope.view.update($scope.view.moment = $scope.valueMoment.clone());
$scope.model = newValue;
if (angular.isFunction($scope.change))
if ($attrs.change && angular.isFunction($scope.change))
$timeout(function () {
$scope.change({ newValue: newValue, oldValue: oldValue });
}, 0, false);
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-moment-picker.min.css

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

Loading

0 comments on commit 5c7fdf1

Please sign in to comment.