themes/default/js/sq_rank.js
File sq_rank.js
has 268 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function() {
var SQ = this;
if (typeof this.sq_dashurl == 'undefined')
if (typeof sq_dashurl !== 'undefined')
Function getRanks
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getRanks: function(posts) {
jQuery.getJSON(
sqQuery.ajaxurl,
{
action: 'sq_posts_rank',
Function loadBrief
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
loadBrief: function(post_id) {
if (jQuery('#sq_post-' + post_id).length == 0) {
jQuery('#post-' + post_id).after('<tr id="sq_post-' + post_id + '" style="display:none"><td colspan="' + (jQuery('#post-' + post_id + ' td').length + 1) + '" class="sq_post_rank_row"><div class="sq_post_rank_title">' + __sq_article_rank + '</div><div class="sq_post_rank_content sq_loading"></div><div class="sq_post_arrow_details"></div><div class="sq_post_rank_close">x</div><div class="sq_post_rank_refresh">' + __sq_refresh + '</div></td></tr>');
} else {
Function arrowClick
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
arrowClick: function(post_id, _this, scroll) {
//Load the brief information
SQ.sq_eventsrank.loadBrief(post_id);
if (jQuery('#sq_post-' + post_id).is(":visible")) {