Skip to content

Commit

Permalink
* Fixed bugs for plunkr
Browse files Browse the repository at this point in the history
* Added plunkr
  • Loading branch information
souly1 committed Jun 10, 2016
1 parent 3f8e2e2 commit 2632319
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ A responsive AngularJS directive for selecting multiple weekdays following iOS n

# Demo:

[TBD Plunkr](https://plnkr.co)
[See Demo Here](http://plnkr.co/edit/M9wFoj3WC4gyjHo2WJqe?p=preview)

Demo can be seen in app:

Expand Down
16 changes: 8 additions & 8 deletions ngWeekdaySelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ angular.module('ng-weekday-selector', [])
}];

var template = "<div class='days-container'>" +
"<div ng-disabled='{{ngDisabled}}' class='day-circle day-0' ng-class='{\"is-selected\": ngModel[(0 + weekStartsIndex)%7].isSelected}' ng-click='ngDisabled || onDayClicked(({{0 + weekStartsIndex}})%7)'>{{ngModel[(0 + weekStartsIndex)%7].name}}</div>" +
"<div ng-disabled='{{ngDisabled}}' class='day-circle day-1' ng-class='{\"is-selected\": ngModel[(1 + weekStartsIndex)%7].isSelected}' ng-click='ngDisabled || onDayClicked(({{1 + weekStartsIndex}})%7)'>{{ngModel[(1 + weekStartsIndex)%7].name}}</div>" +
"<div ng-disabled='{{ngDisabled}}' class='day-circle day-2' ng-class='{\"is-selected\": ngModel[(2 + weekStartsIndex)%7].isSelected}' ng-click='ngDisabled || onDayClicked(({{2 + weekStartsIndex}})%7)'>{{ngModel[(2 + weekStartsIndex)%7].name}}</div>" +
"<div ng-disabled='{{ngDisabled}}' class='day-circle day-3' ng-class='{\"is-selected\": ngModel[(3 + weekStartsIndex)%7].isSelected}' ng-click='ngDisabled || onDayClicked(({{3 + weekStartsIndex}})%7)'>{{ngModel[(3 + weekStartsIndex)%7].name}}</div>" +
"<div ng-disabled='{{ngDisabled}}' class='day-circle day-4' ng-class='{\"is-selected\": ngModel[(4 + weekStartsIndex)%7].isSelected}' ng-click='ngDisabled || onDayClicked(({{4 + weekStartsIndex}})%7)'>{{ngModel[(4 + weekStartsIndex)%7].name}}</div>" +
"<div ng-disabled='{{ngDisabled}}' class='day-circle day-5' ng-class='{\"is-selected\": ngModel[(5 + weekStartsIndex)%7].isSelected}' ng-click='ngDisabled || onDayClicked(({{5 + weekStartsIndex}})%7)'>{{ngModel[(5 + weekStartsIndex)%7].name}}</div>" +
"<div ng-disabled='{{ngDisabled}}' class='day-circle day-6' ng-class='{\"is-selected\": ngModel[(6 + weekStartsIndex)%7].isSelected}' ng-click='ngDisabled || onDayClicked(({{6 + weekStartsIndex}})%7)'>{{ngModel[(6 + weekStartsIndex)%7].name}}</div>" +
"<div ng-disabled='{{ngDisabled}}' class='day-circle day-0' ng-class='{\"is-selected\": ngModel[(0 + weekStartsIndex)%7].isSelected}' ng-click='ngDisabled || onDayClicked((0 + weekStartsIndex)%7)'>{{ngModel[(0 + weekStartsIndex)%7].name}}</div>" +
"<div ng-disabled='{{ngDisabled}}' class='day-circle day-1' ng-class='{\"is-selected\": ngModel[(1 + weekStartsIndex)%7].isSelected}' ng-click='ngDisabled || onDayClicked((1 + weekStartsIndex)%7)'>{{ngModel[(1 + weekStartsIndex)%7].name}}</div>" +
"<div ng-disabled='{{ngDisabled}}' class='day-circle day-2' ng-class='{\"is-selected\": ngModel[(2 + weekStartsIndex)%7].isSelected}' ng-click='ngDisabled || onDayClicked((2 + weekStartsIndex)%7)'>{{ngModel[(2 + weekStartsIndex)%7].name}}</div>" +
"<div ng-disabled='{{ngDisabled}}' class='day-circle day-3' ng-class='{\"is-selected\": ngModel[(3 + weekStartsIndex)%7].isSelected}' ng-click='ngDisabled || onDayClicked((3 + weekStartsIndex)%7)'>{{ngModel[(3 + weekStartsIndex)%7].name}}</div>" +
"<div ng-disabled='{{ngDisabled}}' class='day-circle day-4' ng-class='{\"is-selected\": ngModel[(4 + weekStartsIndex)%7].isSelected}' ng-click='ngDisabled || onDayClicked((4 + weekStartsIndex)%7)'>{{ngModel[(4 + weekStartsIndex)%7].name}}</div>" +
"<div ng-disabled='{{ngDisabled}}' class='day-circle day-5' ng-class='{\"is-selected\": ngModel[(5 + weekStartsIndex)%7].isSelected}' ng-click='ngDisabled || onDayClicked((5 + weekStartsIndex)%7)'>{{ngModel[(5 + weekStartsIndex)%7].name}}</div>" +
"<div ng-disabled='{{ngDisabled}}' class='day-circle day-6' ng-class='{\"is-selected\": ngModel[(6 + weekStartsIndex)%7].isSelected}' ng-click='ngDisabled || onDayClicked((6 + weekStartsIndex)%7)'>{{ngModel[(6 + weekStartsIndex)%7].name}}</div>" +
"</div>";

var link = function(scope) {
Expand Down Expand Up @@ -85,7 +85,7 @@ angular.module('ng-weekday-selector', [])
scope: {
ngModel: '=?',
ngChange: '&',
weekStartsIndex: '@?',
weekStartsIndex: '=?',
ngDisabled: '=?',
control: '=?'
},
Expand Down

0 comments on commit 2632319

Please sign in to comment.