bolshakov/activeadmin_sortable_table

View on GitHub
app/assets/javascripts/activeadmin_sortable_table.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function activeAdminSortableTable has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  $.fn.activeAdminSortableTable = function() {
    this.sortable({
      handle: ".handle",
      update: function(event, ui) {
        var item = ui.item.find('[data-sort-url]');
Severity: Minor
Found in app/assets/javascripts/activeadmin_sortable_table.js - About 1 hr to fix

    Function update has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    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') {
    Severity: Minor
    Found in app/assets/javascripts/activeadmin_sortable_table.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status