These statements were automatically added by CoffeeScript. I'm only removing the obvious cases; there might be more cases where the `return` statement isn't necessary.
19 lines
516 B
JavaScript
19 lines
516 B
JavaScript
(function() {
|
|
"use strict";
|
|
App.CheckAllNone = {
|
|
initialize: function() {
|
|
$("[data-check-all]").on("click", function() {
|
|
var target_name;
|
|
target_name = $(this).data("check-all");
|
|
$("[name='" + target_name + "']").prop("checked", true);
|
|
});
|
|
$("[data-check-none]").on("click", function() {
|
|
var target_name;
|
|
target_name = $(this).data("check-none");
|
|
$("[name='" + target_name + "']").prop("checked", false);
|
|
});
|
|
}
|
|
};
|
|
|
|
}).call(this);
|