BadrIT/translation_center

View on GitHub

Showing 161 of 426 total issues

Function slide has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

$.effects.effect.slide = function( o, done ) {

    // Create element
    var el = $( this ),
        props = [ "position", "top", "bottom", "left", "right", "width", "height" ],
Severity: Minor
Found in app/assets/javascripts/translation_center/jquery-ui.js - About 1 hr to fix

    Function _resetButton has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        _resetButton: function() {
            if ( this.type === "input" ) {
                if ( this.options.label ) {
                    this.element.val( this.options.label );
                }
    Severity: Minor
    Found in app/assets/javascripts/translation_center/jquery-ui.js - About 1 hr to fix

      Function _toggle has 35 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          _toggle: function( data ) {
              var toShow = data.newPanel,
                  toHide = this.prevShow.length ? this.prevShow : data.oldPanel;
      
              // handle activating a panel during the animation for another activation
      Severity: Minor
      Found in app/assets/javascripts/translation_center/jquery-ui.js - About 1 hr to fix

        Function pulsate has 35 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        $.effects.effect.pulsate = function( o, done ) {
            var elem = $( this ),
                mode = $.effects.setMode( elem, o.mode || "show" ),
                show = mode === "show",
                hide = mode === "hide",
        Severity: Minor
        Found in app/assets/javascripts/translation_center/jquery-ui.js - About 1 hr to fix

          Function _slide has 34 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              _slide: function( event, index, newVal ) {
                  var otherVal,
                      newValues,
                      allowed;
          
          
          Severity: Minor
          Found in app/assets/javascripts/translation_center/jquery-ui.js - About 1 hr to fix

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

                close: function( event ) {
                    var that = this,
                        maxZ, thisZ;
            
                    if ( !this._isOpen ) {
            Severity: Minor
            Found in app/assets/javascripts/translation_center/jquery-ui.js - About 1 hr to fix

              Function _eventHandler has 34 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  _eventHandler: function( event ) {
                      var options = this.options,
                          active = this.active,
                          anchor = $( event.currentTarget ),
                          tab = anchor.closest( "li" ),
              Severity: Minor
              Found in app/assets/javascripts/translation_center/jquery-ui.js - About 1 hr to fix

                Function _toggle has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        _toggle: function( event, eventData ) {
                            var that = this,
                                toShow = eventData.newPanel,
                                toHide = eventData.oldPanel,
                                fx = this._getFx();
                Severity: Minor
                Found in app/assets/javascripts/translation_center/jquery-ui.js - About 1 hr to fix

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

                      _keydown: function( event ) {
                          if ( event.altKey || event.ctrlKey ) {
                              return;
                          }
                  
                  
                  Severity: Minor
                  Found in app/assets/javascripts/translation_center/jquery-ui.js - About 1 hr to fix

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

                        _position: function( position ) {
                            var myAt = [],
                                offset = [ 0, 0 ],
                                isVisible;
                    
                    
                    Severity: Minor
                    Found in app/assets/javascripts/translation_center/jquery-ui.js - About 1 hr to fix

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

                            callback : function(data, settings) {
                              data = $.parseJSON(data);
                              $(this).text(data.value);
                              if(Filter.key() == 'untranslated')
                              {
                      Severity: Minor
                      Found in app/assets/javascripts/translation_center/translations.js - About 1 hr to fix

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

                            _dialogDatepicker: function(input, date, onSelect, settings, pos) {
                                var inst = this._dialogInst; // internal instance
                                if (!inst) {
                                    this.uuid += 1;
                                    var id = 'dp' + this.uuid;
                        Severity: Minor
                        Found in app/assets/javascripts/translation_center/jquery-ui.js - About 1 hr to fix

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

                              _setupHeightStyle: function( heightStyle ) {
                                  var maxHeight, overflow,
                                      parent = this.element.parent();
                          
                                  if ( heightStyle === "fill" ) {
                          Severity: Minor
                          Found in app/assets/javascripts/translation_center/jquery-ui.js - About 1 hr to fix

                            Function top has 33 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 app/assets/javascripts/translation_center/jquery-ui.js - About 1 hr to fix

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

                                      left: function( position, data ) {
                                          var within = data.within,
                                              withinOffset = within.offset.left + within.scrollLeft,
                                              outerWidth = within.width,
                                              offsetLeft = within.isWindow ? within.scrollLeft : within.offset.left,
                              Severity: Minor
                              Found in app/assets/javascripts/translation_center/jquery-ui.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)
                                        var borders = $.datepicker._getBorders(inst.dpDiv);
                                        instActive = inst; // for delegate hover events
                                        inst.dpDiv.empty().append(this._generateHTML(inst));
                                Severity: Minor
                                Found in app/assets/javascripts/translation_center/jquery-ui.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 app/assets/javascripts/translation_center/jquery-ui.js - About 1 hr to fix

                                    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 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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language