BadrIT/translation_center

View on GitHub

Showing 161 of 426 total issues

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

    _attachments: function(input, inst) {
        var appendText = this._get(inst, 'appendText');
        var isRTL = this._get(inst, 'isRTL');
        if (inst.append)
            inst.append.remove();
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 _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 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 _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 _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 _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 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 _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 _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 _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 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 _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 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 _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 _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 _attachHandlers has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            _attachHandlers: function(inst) {
                                                var stepMonths = this._get(inst, 'stepMonths');
                                                var id = '#' + inst.id.replace( /\\\\/g, "\\" );
                                                inst.dpDiv.find('[data-handler]').map(function () {
                                                    var handler = {
                                        Severity: Minor
                                        Found in app/assets/javascripts/translation_center/jquery-ui.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language