Skip to content

Commit

Permalink
Putting the custom input styling back onto the checkboxes, with Histo…
Browse files Browse the repository at this point in the history
…ry fixes in place
  • Loading branch information
SherriAlexander committed Oct 2, 2014
1 parent d0b64f3 commit 74fac40
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 14 deletions.
4 changes: 2 additions & 2 deletions _site/ui/js/scripts-concat.min.js

Large diffs are not rendered by default.

8 changes: 3 additions & 5 deletions _source/ui/js/scripts-concat.js
Original file line number Diff line number Diff line change
Expand Up @@ -24863,7 +24863,7 @@ Artbot.historyList = {
});
},
bindAttendanceCheckboxes: function() {
//Artbot.customCheckboxes.init("#history-form");
Artbot.customCheckboxes.init("#history-form");

// Set up click event for History Attendance checkboxes
$("#history-form").find("input[type=checkbox]").click(function() {
Expand All @@ -24872,7 +24872,7 @@ Artbot.historyList = {
},
unbindAttendanceCheckboxes: function() {

//Artbot.customCheckboxes.destroy("#history-form");
Artbot.customCheckboxes.destroy("#history-form");

// Remove click event for History Attendance checkboxes
$("#history-form").find("input[type=checkbox]").unbind("click");
Expand Down Expand Up @@ -24951,8 +24951,7 @@ Artbot.historyList = {
var $thisCheckbox = $("#history-form").find("input[data-user-favorite-id=" + userFavoriteID + "]");

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

/* Make the actual Ajax request to handle the interest
TODO: add success/fail/error handling, etc.
No Load More functionality, possibly a future enhancement. */
$.mobile.loading('show');

Expand Down
4 changes: 2 additions & 2 deletions _source/ui/js/scripts-concat.min.js

Large diffs are not rendered by default.

8 changes: 3 additions & 5 deletions _source/ui/js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -1875,7 +1875,7 @@ Artbot.historyList = {
});
},
bindAttendanceCheckboxes: function() {
//Artbot.customCheckboxes.init("#history-form");
Artbot.customCheckboxes.init("#history-form");

// Set up click event for History Attendance checkboxes
$("#history-form").find("input[type=checkbox]").click(function() {
Expand All @@ -1884,7 +1884,7 @@ Artbot.historyList = {
},
unbindAttendanceCheckboxes: function() {

//Artbot.customCheckboxes.destroy("#history-form");
Artbot.customCheckboxes.destroy("#history-form");

// Remove click event for History Attendance checkboxes
$("#history-form").find("input[type=checkbox]").unbind("click");
Expand Down Expand Up @@ -1963,8 +1963,7 @@ Artbot.historyList = {
var $thisCheckbox = $("#history-form").find("input[data-user-favorite-id=" + userFavoriteID + "]");

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

/* Make the actual Ajax request to handle the interest
TODO: add success/fail/error handling, etc.
No Load More functionality, possibly a future enhancement. */
$.mobile.loading('show');

Expand Down

0 comments on commit 74fac40

Please sign in to comment.