mozilla/webmaker.org

View on GitHub
public/js/base/ui.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function pagination has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  UI.pagination = function (page, total, limit, callback) {
    var $pagination = $('.pagination'),
      $ul = $pagination.find('ul'),
      $li = $('<li></li>'),
      $pageBtn,
Severity: Minor
Found in public/js/base/ui.js - About 1 hr to fix

    Function select has 44 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      UI.select = function (select, fn) {
        $('.filter').removeClass('hide');
    
        var $el = $('.ui-select', $fragments).clone(true),
          $toggleBtn = $el.find('.icon'),
    Severity: Minor
    Found in public/js/base/ui.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status