batiste/django-page-cms

View on GitHub
pages/static/pages/javascript/pages_list.js

Summary

Maintainability
B
6 hrs
Test Coverage

Function bind_sortable has 96 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function bind_sortable() {
        // Initialise the table for drag and drop
        var down = false;
        var move_y = 0;
        var start_y = 0;
Severity: Major
Found in pages/static/pages/javascript/pages_list.js - About 3 hrs to fix

    File pages_list.js has 284 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /* Initialization of the change_list page - this script is run once everything is ready. */
    $(function($) {
        "use strict";
    
        if(!$("body").hasClass("change-list-pages")) {
    Severity: Minor
    Found in pages/static/pages/javascript/pages_list.js - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status