Files
nairobi/app/assets/javascripts/check_all_none.js
Javi Martín d93a029ce5 Convert CofeeScript to JavaScript
Compiled using `coffee -c` with CoffeeScript 1.12.6.
2019-09-11 14:03:24 +02:00

20 lines
573 B
JavaScript

// Generated by CoffeeScript 1.12.6
(function() {
"use strict";
App.CheckAllNone = {
initialize: function() {
$("[data-check-all]").on("click", function() {
var target_name;
target_name = $(this).data("check-all");
return $("[name='" + target_name + "']").prop("checked", true);
});
return $("[data-check-none]").on("click", function() {
var target_name;
target_name = $(this).data("check-none");
return $("[name='" + target_name + "']").prop("checked", false);
});
}
};
}).call(this);