forked from lukevella/rallly
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes hasVote and toggleVote in poll.directive and updates function c…
…alls in the poll entries div.
- Loading branch information
Showing
2 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,12 +48,12 @@ | |
<div class="time-group" ng-repeat="date in event.dates track by date._id"> | ||
<div class="cell vote-cell" ng-repeat="time in date.possible_times"> | ||
<img src="/images/[email protected]" width="16" ng-hide="editMode" | ||
ng-if="pollCtrl.hasVote(date, participant)"/> | ||
ng-if="pollCtrl.hasVote(time, participant)"/> | ||
<img src="/images/[email protected]" width="8" ng-hide="editMode" | ||
ng-if="!pollCtrl.hasVote(date, participant)"/> | ||
<input ng-checked="pollCtrl.hasVote(date, participant)" ng-show="editMode" type="checkbox"/> | ||
ng-if="!pollCtrl.hasVote(time, participant)"/> | ||
<input ng-checked="pollCtrl.hasVote(time, participant)" ng-show="editMode" type="checkbox"/> | ||
|
||
<div class="overlay" ng-show="editMode" ng-click="pollCtrl.toggleVote(date, participant)"></div> | ||
<div class="overlay" ng-show="editMode" ng-click="pollCtrl.toggleVote(time, participant)"></div> | ||
</div> | ||
</div> | ||
<div class="cell action-cell" ng-hide="event.isClosed"> | ||
|