Skip to content

Commit

Permalink
Changing Attendance sync event from a checkbox click to setting the p…
Browse files Browse the repository at this point in the history
…roperty "checked" to true
  • Loading branch information
SherriAlexander committed Oct 2, 2014
1 parent 299024c commit d0b64f3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions _site/ui/js/scripts-concat.min.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions _source/ui/js/scripts-concat.js
Original file line number Diff line number Diff line change
Expand Up @@ -24950,8 +24950,9 @@ Artbot.historyList = {
// Toggle the checkbox with the appropriate data attribute
var $thisCheckbox = $("#history-form").find("input[data-user-favorite-id=" + userFavoriteID + "]");

if (!$thisCheckbox.prop("checked")) {
$thisCheckbox.trigger("click");
if ($thisCheckbox.prop("checked") !== true) {
//$thisCheckbox.trigger("click");
$thisCheckbox.prop("checked", true);
console.log("Double-checking: is the checkbox checked as expected after the click event? " + $thisCheckbox.prop("checked"));
}
}
Expand Down
4 changes: 2 additions & 2 deletions _source/ui/js/scripts-concat.min.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions _source/ui/js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -1962,8 +1962,9 @@ Artbot.historyList = {
// Toggle the checkbox with the appropriate data attribute
var $thisCheckbox = $("#history-form").find("input[data-user-favorite-id=" + userFavoriteID + "]");

if (!$thisCheckbox.prop("checked")) {
$thisCheckbox.trigger("click");
if ($thisCheckbox.prop("checked") !== true) {
//$thisCheckbox.trigger("click");
$thisCheckbox.prop("checked", true);
console.log("Double-checking: is the checkbox checked as expected after the click event? " + $thisCheckbox.prop("checked"));
}
}
Expand Down

0 comments on commit d0b64f3

Please sign in to comment.