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,4 +1,3 @@
|
||||
// Generated by CoffeeScript 1.12.6
|
||||
(function() {
|
||||
"use strict";
|
||||
App.Sortable = {
|
||||
@@ -9,7 +8,7 @@
|
||||
new_order = $(this).sortable("toArray", {
|
||||
attribute: "data-answer-id"
|
||||
});
|
||||
return $.ajax({
|
||||
$.ajax({
|
||||
url: $(".sortable").data("js-url"),
|
||||
data: {
|
||||
ordered_list: new_order
|
||||
@@ -18,13 +17,13 @@
|
||||
});
|
||||
}
|
||||
});
|
||||
return $(".sortable-priotirized-votation").sortable({
|
||||
$(".sortable-priotirized-votation").sortable({
|
||||
update: function() {
|
||||
var new_order;
|
||||
new_order = $(this).sortable("toArray", {
|
||||
attribute: "data-answer-id"
|
||||
});
|
||||
return $.ajax({
|
||||
$.ajax({
|
||||
url: $(this).data("js-url"),
|
||||
data: {
|
||||
ordered_list: new_order
|
||||
|
||||
Reference in New Issue
Block a user