Skip to content

Commit

Permalink
Prevent selection of greyed out dates.
Browse files Browse the repository at this point in the history
  • Loading branch information
backnol committed Oct 13, 2015
1 parent 47d859f commit 03fef6e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion angularjs-datetime-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@

scope.setDate = function (evt) {
var target = angular.element(evt.target)[0];
if (target.className.indexOf('selectable')) {
if (target.className.indexOf('selectable') !== -1) {
scope.updateNgModel(parseInt(target.innerHTML));
if (scope.closeOnSelect !== false) {
ctrl.closeDatetimePicker();
Expand Down
2 changes: 1 addition & 1 deletion angularjs-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 bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "angularjs-datetime-picker",
"main": "angularjs-datetime-picker.js",
"version": "0.1.16",
"version": "0.1.17",
"homepage": "https://github.com/kineticsocial/angularjs-datetime-picker",
"authors": [
"Allen Kim <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angularjs-datetime-picker",
"version": "0.1.16",
"version": "0.1.17",
"description": "Very Lightweight AngularJS DateTime Picker Without Using jQuery, bootStrap, or moment",
"main": "angularjs-datetime-picker.js",
"scripts": {
Expand Down

0 comments on commit 03fef6e

Please sign in to comment.