Convert CofeeScript to JavaScript

Compiled using `coffee -c` with CoffeeScript 1.12.6.
This commit is contained in:
Javi Martín
2019-07-03 00:11:16 +02:00
parent 2ff2100ebb
commit d93a029ce5
121 changed files with 2428 additions and 1924 deletions

View File

@@ -0,0 +1,18 @@
// Generated by CoffeeScript 1.12.6
(function() {
"use strict";
App.CheckboxToggle = {
initialize: function() {
return $("[data-checkbox-toggle]").on("change", function() {
var $target;
$target = $($(this).data("checkbox-toggle"));
if ($(this).is(":checked")) {
return $target.show();
} else {
return $target.hide();
}
});
}
};
}).call(this);