XoopsModules25x/smallworld

View on GitHub

Showing 759 of 1,838 total issues

Function _determineButtonType has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        _determineButtonType: function () {

            if (this.element.is(":checkbox")) {
                this.type = "checkbox";
            } else {
Severity: Minor
Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix

    Function bridge has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        $.widget.bridge = function (name, object) {
            $.fn[name] = function (options) {
                var isMethodCall = typeof options === "string",
                    args = Array.prototype.slice.call(arguments, 1),
                    returnValue = this;
    Severity: Minor
    Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix

      Method Updates has 33 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function Updates($last, $uid, $followers)
          {
              $uid       = (int)$uid;
              $query     = '';
              $hm        = \XoopsModules\Smallworld\Helper::getInstance()->getConfig('msgtoshow');
      Severity: Minor
      Found in class/WallUpdates.php - About 1 hr to fix

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

                    save: function (data, options) {
                        // Do nothing if no processing has happened:
                        if (!data.canvas) {
                            return data;
                        }
        Severity: Minor
        Found in assets/js/jquery.fileupload-fp.js - About 1 hr to fix

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

              _updateDatepicker: function(inst) {
                  this.maxRows = 4; //Reset the max number of rows being displayed (see #7043)
                  datepicker_instActive = inst; // for delegate hover events
                  inst.dpDiv.empty().append(this._generateHTML(inst));
                  this._attachHandlers(inst);
          Severity: Minor
          Found in assets/js/jqueryui.min.js - About 1 hr to fix

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

                _mouseStop: function(event) {
            
                    this.resizing = false;
                    var pr, ista, soffseth, soffsetw, s, left, top,
                        o = this.options, that = this;
            Severity: Minor
            Found in assets/js/jqueryui.min.js - About 1 hr to fix

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

                  $.fn.formToArray = function (semantic) {
                      var a = [];
                      if (this.length == 0) return a;
              
                      var form = this[0];
              Severity: Minor
              Found in assets/js/jquery.form.js - About 1 hr to fix

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

                        top: function( position, data ) {
                            var within = data.within,
                                withinOffset = within.offset.top + within.scrollTop,
                                outerHeight = within.height,
                                offsetTop = within.isWindow ? within.scrollTop : within.offset.top,
                Severity: Minor
                Found in assets/js/jqueryui.min.js - About 1 hr to fix

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

                      _refreshItems: function(event) {
                  
                          this.items = [];
                          this.containers = [this];
                  
                  
                  Severity: Minor
                  Found in assets/js/jqueryui.min.js - About 1 hr to fix

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

                    function fixCloneNodeIssues( src, dest ) {
                        var nodeName, e, data;
                    
                        // We do not need to do anything for non-Elements
                        if ( dest.nodeType !== 1 ) {
                    Severity: Minor
                    Found in assets/js/jquery.min.js - About 1 hr to fix

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

                          _size: function() {
                              // If the user has resized the dialog, the .ui-dialog and .ui-dialog-content
                              // divs will both have width and height set, so we need to reset them
                              var nonContentHeight, minContentHeight, maxContentHeight,
                                  options = this.options;
                      Severity: Minor
                      Found in assets/js/jqueryui.min.js - About 1 hr to fix

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

                            data: function( key, value ) {
                                var i, name, data,
                                    elem = this[0],
                                    attrs = elem && elem.attributes;
                        
                        
                        Severity: Minor
                        Found in assets/js/jquery.min.js - About 1 hr to fix

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

                              _createRange: function() {
                                  var options = this.options,
                                      classes = "";
                          
                                  if ( options.range ) {
                          Severity: Minor
                          Found in assets/js/jqueryui.min.js - About 1 hr to fix

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

                                _addOneSite: function(settings, list, display, icon, url, onclick, hint) {
                                    var hintFormat = settings.hint || '{s}';
                                    var html = '<li><a href="' + url + '"' +
                                        (settings.target ? ' target="' + settings.target + '"' : '') + '>';
                                    if (icon !== null) {
                            Severity: Minor
                            Found in assets/js/jquery.bookmark.js - About 1 hr to fix

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

                              function _normalizeArguments( effect, options, speed, callback ) {
                              
                                  // allow passing all options as the first parameter
                                  if ( $.isPlainObject( effect ) ) {
                                      options = effect;
                              Severity: Minor
                              Found in assets/js/jqueryui.min.js - About 1 hr to fix

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

                                    removeClass: function( value ) {
                                        var classes, elem, cur, clazz, j, finalValue,
                                            i = 0,
                                            len = this.length,
                                            proceed = arguments.length === 0 || typeof value === "string" && value;
                                Severity: Minor
                                Found in assets/js/jquery.min.js - About 1 hr to fix

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

                                  jQuery.fn.load = function( url, params, callback ) {
                                      if ( typeof url !== "string" && _load ) {
                                          return _load.apply( this, arguments );
                                      }
                                  
                                  
                                  Severity: Minor
                                  Found in assets/js/jquery.min.js - About 1 hr to fix

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

                                        addClass: function( value ) {
                                            var classes, elem, cur, clazz, j, finalValue,
                                                i = 0,
                                                len = this.length,
                                                proceed = typeof value === "string" && value;
                                    Severity: Minor
                                    Found in assets/js/jquery.min.js - About 1 hr to fix

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

                                          historyLoad: function (hash) {
                                              var newhash;
                                              hash = decodeURIComponent(hash.replace(/\?.*$/, ''));
                                      
                                              if (xoops_smallworld.browser.safari) {
                                      Severity: Minor
                                      Found in assets/js/jquery.history.js - About 1 hr to fix

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

                                                close: function (event) {
                                                    var self = this,
                                                        maxZ, thisZ;
                                        
                                                    if (false === self._trigger('beforeClose', event)) {
                                        Severity: Minor
                                        Found in assets/js/jquery-ui-1.8.11.custom.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language