Remove unnecessary return statements
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.
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
// Generated by CoffeeScript 1.12.6
|
||||
(function() {
|
||||
"use strict";
|
||||
App.BudgetEditAssociations = {
|
||||
set_text: function(response) {
|
||||
$(".js-budget-show-administrators-list").text(response["administrators"]);
|
||||
$(".js-budget-show-valuators-list").text(response["valuators"]);
|
||||
return $(".js-budget-show-trackers-list").text(response["trackers"]);
|
||||
$(".js-budget-show-trackers-list").text(response["trackers"]);
|
||||
},
|
||||
initialize: function() {
|
||||
$(".js-budget-list-checkbox-user").on({
|
||||
@@ -21,18 +20,18 @@
|
||||
valuators: valuator_count,
|
||||
trackers: tracker_count
|
||||
};
|
||||
return $.get(url, params, function(response) {
|
||||
return App.BudgetEditAssociations.set_text(response, "json");
|
||||
$.get(url, params, function(response) {
|
||||
App.BudgetEditAssociations.set_text(response, "json");
|
||||
});
|
||||
}
|
||||
});
|
||||
return $(".js-budget-show-users-list").on({
|
||||
$(".js-budget-show-users-list").on({
|
||||
click: function() {
|
||||
var div_id;
|
||||
div_id = $(this).data().toggle;
|
||||
return $(".js-budget-users-list").each(function() {
|
||||
$(".js-budget-users-list").each(function() {
|
||||
if (this.id !== div_id && !$(this).hasClass("is-hidden")) {
|
||||
return $(this).addClass("is-hidden");
|
||||
$(this).addClass("is-hidden");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user