Showing 2 of 2 total issues
Function activeAdminSortableTable
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.activeAdminSortableTable = function() {
this.sortable({
handle: ".handle",
update: function(event, ui) {
var item = ui.item.find('[data-sort-url]');
Function update
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
update: function(event, ui) {
var item = ui.item.find('[data-sort-url]');
var url = item.data('sort-url');
var customParams = {};
if (typeof item.data('sort-custom-params') === 'object') {