BadrIT/translation_center

View on GitHub

Showing 161 of 426 total issues

Function _hideDatepicker has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _hideDatepicker: function(input) {
        var inst = this._curInst;
        if (!inst || (input && inst != $.data(input, PROP_NAME)))
            return;
        if (this._datepickerShowing) {
Severity: Minor
Found in app/assets/javascripts/translation_center/jquery-ui.js - About 1 hr to fix

    Function _makeDraggable has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        _makeDraggable: function() {
            var that = this,
                options = this.options;
    
            function filteredUi( ui ) {
    Severity: Minor
    Found in app/assets/javascripts/translation_center/jquery-ui.js - About 1 hr to fix

      Function _createButtons has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          _createButtons: function( buttons ) {
              var that = this,
                  hasButtons = false;
      
              // if we already have a button pane, remove it
      Severity: Minor
      Found in app/assets/javascripts/translation_center/jquery-ui.js - About 1 hr to fix

        Function _possibleChars has 31 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            _possibleChars: function (format) {
                var chars = '';
                var literal = false;
                // Check whether a format character is doubled
                var lookAhead = function(match) {
        Severity: Minor
        Found in app/assets/javascripts/translation_center/jquery-ui.js - About 1 hr to fix

          Function create has 31 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              create: function( dialog ) {
                  if ( this.instances.length === 0 ) {
                      // prevent use of anchors and inputs
                      // we use a setTimeout in case the overlay is created from an
                      // event that we're going to be cancelling (see #2804)
          Severity: Minor
          Found in app/assets/javascripts/translation_center/jquery-ui.js - About 1 hr to fix

            Function offsetString has 31 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    var offsetString = function(offset) {
                        try {
                            return $.datepicker.parseDate($.datepicker._get(inst, 'dateFormat'),
                                offset, $.datepicker._getFormatConfig(inst));
                        }
            Severity: Minor
            Found in app/assets/javascripts/translation_center/jquery-ui.js - About 1 hr to fix

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

                  _refreshItems: function(event) {
              
                      this.items = [];
                      this.containers = [this];
                      var items = this.items;
              Severity: Minor
              Found in app/assets/javascripts/translation_center/jquery-ui.js - About 1 hr to fix

                Function drag has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    drag: function(event, ui) {
                
                        var i = $(this).data("draggable"), o = i.options, scrolled = false;
                
                        if(i.scrollParent[0] != document && i.scrollParent[0].tagName != 'HTML') {
                Severity: Minor
                Found in app/assets/javascripts/translation_center/jquery-ui.js - About 1 hr to fix

                  Function drag has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      drag: function(draggable, event) {
                  
                          //If you have a highly dynamic page, you might try this option. It renders positions every time you move the mouse.
                          if(draggable.options.refreshPositions) $.ui.ddmanager.prepareOffsets(draggable, event);
                  
                  
                  Severity: Minor
                  Found in app/assets/javascripts/translation_center/jquery-ui.js - About 1 hr to fix

                    Function cancel has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        cancel: function() {
                    
                            if(this.dragging) {
                    
                                this._mouseUp({ target: null });
                    Severity: Minor
                    Found in app/assets/javascripts/translation_center/jquery-ui.js - About 1 hr to fix

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

                          _determineButtonType: function() {
                              var ancestor, labelSelector, checked;
                      
                              if ( this.element.is("[type=checkbox]") ) {
                                  this.type = "checkbox";
                      Severity: Minor
                      Found in app/assets/javascripts/translation_center/jquery-ui.js - About 1 hr to fix

                        Function open has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            open: function( event ) {
                                var that = this,
                                    target = $( event ? event.target : this.element )
                                        // we need closest here due to mouseover bubbling,
                                        // but always pointing at the same event target
                        Severity: Minor
                        Found in app/assets/javascripts/translation_center/jquery-ui.js - About 1 hr to fix

                          Function to has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          spaces.hsla.to = function ( rgba ) {
                              if ( rgba[ 0 ] == null || rgba[ 1 ] == null || rgba[ 2 ] == null ) {
                                  return [ null, null, null, rgba[ 3 ] ];
                              }
                              var r = rgba[ 0 ] / 255,
                          Severity: Minor
                          Found in app/assets/javascripts/translation_center/jquery-ui.js - About 1 hr to fix

                            Function _destroy has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                _destroy: function() {
                                    // Destroy (sub)menus
                                    this.element
                                        .removeAttr( "aria-activedescendant" )
                                        .find( ".ui-menu" ).andSelf()
                            Severity: Minor
                            Found in app/assets/javascripts/translation_center/jquery-ui.js - About 1 hr to fix

                              Function _refresh has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  _refresh: function() {
                                      this._setupDisabled( this.options.disabled );
                                      this._setupEvents( this.options.event );
                                      this._setupHeightStyle( this.options.heightStyle );
                              
                              
                              Severity: Minor
                              Found in app/assets/javascripts/translation_center/jquery-ui.js - About 1 hr to fix

                                Function resize has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    resize: function(event, ui) {
                                        var that = $(this).data("resizable"), o = that.options,
                                                ps = that.containerSize, co = that.containerOffset, cs = that.size, cp = that.position,
                                                pRatio = that._aspectRatio || event.shiftKey, cop = { top:0, left:0 }, ce = that.containerElement;
                                
                                
                                Severity: Minor
                                Found in app/assets/javascripts/translation_center/jquery-ui.js - About 1 hr to fix

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

                                      close: function( event ) {
                                          var that = this,
                                              target = $( event ? event.currentTarget : this.element ),
                                              tooltip = this._find( target );
                                  
                                  
                                  Severity: Minor
                                  Found in app/assets/javascripts/translation_center/jquery-ui.js - About 1 hr to fix

                                    Function _createWidget has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        _createWidget: function( options, element ) {
                                            element = $( element || this.defaultElement || this )[ 0 ];
                                            this.element = $( element );
                                            this.uuid = uuid++;
                                            this.eventNamespace = "." + this.widgetName + this.uuid;
                                    Severity: Minor
                                    Found in app/assets/javascripts/translation_center/jquery-ui.js - About 1 hr to fix

                                      Function complete has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              complete: function() {
                                                  if ( el.to.opacity === 0 ) {
                                                      el.css( "opacity", el.from.opacity );
                                                  }
                                                  if( mode === "hide" ) {
                                      Severity: Minor
                                      Found in app/assets/javascripts/translation_center/jquery-ui.js - About 1 hr to fix

                                        Function transition has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            transition: function( other, distance ) {
                                                var end = color( other ),
                                                    spaceName = end._space(),
                                                    space = spaces[ spaceName ],
                                                    startColor = this.alpha() === 0 ? color( "transparent" ) : this,
                                        Severity: Minor
                                        Found in app/assets/javascripts/translation_center/jquery-ui.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language