rails/app/assets/javascripts/jquery.paging.js
Function setPage
has 165 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
"setPage": function(page) {
if (Paging.opts["lock"]) {
Paging.opts["onSelect"](0, self);
return Paging;
Function setOptions
has 105 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
"setOptions": function(opts) {
var parseFormat = function(format) {
var gndx = 0, group = 0, num = 1, res = {
File jquery.paging.js
has 289 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* @license jQuery paging plugin v1.2.0 23/06/2014
* http://www.xarg.org/2011/09/jquery-pagination-revised/
*
* Copyright (c) 2011, Robert Eisele (robert@xarg.org)
Function parseFormat
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var parseFormat = function(format) {
var gndx = 0, group = 0, num = 1, res = {
fstack: [], // format stack
asterisk: 0, // asterisk?
Avoid deeply nested control flow statements. Open
Open
if (!(res.current = 1 + tok.indexOf("c"))) {
res.current = (1 + res.blockwide) >> 1;
}