devworkstecnology/webadmin

View on GitHub

Showing 59 of 202 total issues

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

        data: function (options, callback) {
            var url = 'js/data/datagrid.json';
            var self = this;

            setTimeout(function () {
Severity: Major
Found in vendor/assets/javascripts/app.data.js - About 2 hrs to fix

    Function setValue has 52 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            setValue: function(value) {
                if(!value) {
                    return;
                }
                
    Severity: Major
    Found in vendor/assets/javascripts/combodate/combodate.js - About 2 hrs to fix

      Function show has 50 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        Tooltip.prototype.show = function () {
          var e = $.Event('show.bs.' + this.type)
      
          if (this.hasContent() && this.enabled) {
            this.$element.trigger(e)
      Severity: Minor
      Found in vendor/assets/javascripts/bootstrap.js - About 2 hrs to fix

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

          Carousel.prototype.slide = function (type, next) {
            var $active   = this.$element.find('.item.active')
            var $next     = next || $active[type]()
            var isCycling = this.interval
            var direction = type == 'next' ? 'left' : 'right'
        Severity: Minor
        Found in vendor/assets/javascripts/bootstrap.js - About 1 hr to fix

          Function Datagrid has 43 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              var Datagrid = function (element, options) {
                  this.$element = $(element);
                  this.$thead = this.$element.find('thead');
                  this.$tfoot = this.$element.find('tfoot');
                  this.$footer = this.$element.find('tfoot th');
          Severity: Minor
          Found in vendor/assets/javascripts/fuelux/fuelux.js - About 1 hr to fix

            Function applyPlacement has 39 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              Tooltip.prototype.applyPlacement = function (offset, placement) {
                var replace
                var $tip   = this.tip()
                var width  = $tip[0].offsetWidth
                var height = $tip[0].offsetHeight
            Severity: Minor
            Found in vendor/assets/javascripts/bootstrap.js - About 1 hr to fix

              Function mousedown has 36 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      mousedown: function(ev) {
              
                          // Touch: Get the original event:
                          if (this.touchCapable && ev.type === 'touchstart') {
                              ev = ev.originalEvent;
              Severity: Minor
              Found in vendor/assets/javascripts/slider/bootstrap-slider.js - About 1 hr to fix

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

                        parseDate: function(date, format) {
                            var parts = date.split(format.separator),
                                date = new Date(),
                                val;
                            date.setHours(0);
                Severity: Minor
                Found in vendor/assets/javascripts/datepicker/bootstrap-datepicker.js - About 1 hr to fix

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

                          getValue: function(format) {
                              var dt, values = {}, 
                                  that = this,
                                  notSelected = false;
                                  
                  Severity: Minor
                  Found in vendor/assets/javascripts/combodate/combodate.js - About 1 hr to fix

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

                      Modal.prototype.show = function (_relatedTarget) {
                        var that = this
                        var e    = $.Event('show.bs.modal', { relatedTarget: _relatedTarget })
                    
                        this.$element.trigger(e)
                    Severity: Minor
                    Found in vendor/assets/javascripts/bootstrap.js - About 1 hr to fix

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

                        Collapse.prototype.show = function () {
                          if (this.transitioning || this.$element.hasClass('in')) return
                      
                          var startEvent = $.Event('show.bs.collapse')
                          this.$element.trigger(startEvent)
                      Severity: Minor
                      Found in vendor/assets/javascripts/bootstrap.js - About 1 hr to fix

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

                                                line_time = function line_time(h, m) {
                                                    var now = _xdsoft_datetime.now(), optionDateTime, current_time;
                                                    now.setHours(h);
                                                    h = parseInt(now.getHours(), 10);
                                                    now.setMinutes(m);
                        Severity: Minor
                        Found in vendor/assets/javascripts/jquery.datetimepicker.js - About 1 hr to fix

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

                            Modal.prototype.backdrop = function (callback) {
                              var animate = this.$element.hasClass('fade') ? 'fade' : ''
                          
                              if (this.isShown && this.options.backdrop) {
                                var doAnimate = $.support.transition && animate
                          Severity: Minor
                          Found in vendor/assets/javascripts/bootstrap.js - About 1 hr to fix

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

                              Affix.prototype.checkPosition = function () {
                                if (!this.$element.is(':visible')) return
                            
                                var scrollHeight = $(document).height()
                                var scrollTop    = this.$window.scrollTop()
                            Severity: Minor
                            Found in vendor/assets/javascripts/bootstrap.js - About 1 hr to fix

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

                                  this.init = function() {
                                    var percent, scaleBy;
                                    _this.options = $.extend({}, $.easyPieChart.defaultOptions, options);
                                    percent = parseInt(_this.$el.data('percent'), 10);
                                    _this.percentage = 0;

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

                                    var Spinner = function (element, options) {
                                        this.$element = $(element);
                                        this.options = $.extend({}, $.fn.spinner.defaults, options);
                                        this.$input = this.$element.find('.spinner-input');
                                        this.$element.on('keyup', this.$input, $.proxy(this.change, this));
                                Severity: Minor
                                Found in vendor/assets/javascripts/fuelux/fuelux.js - About 1 hr to fix

                                  Function selectItem has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          selectItem: function (el) {
                                              var $el = $(el);
                                              var $all = this.$element.find('.tree-selected');
                                              var data = [];
                                  
                                  Severity: Minor
                                  Found in vendor/assets/javascripts/fuelux/fuelux.js - About 1 hr to fix

                                    Function setState has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            setState: function () {
                                                var canMovePrev = (this.currentStep > 1);
                                                var firstStep = (this.currentStep === 1);
                                                var lastStep = (this.currentStep === this.numSteps);
                                    
                                    Severity: Minor
                                    Found in vendor/assets/javascripts/fuelux/fuelux.js - About 1 hr to fix

                                      Function renderData has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              renderData: function () {
                                                  var self = this;
                                      
                                                  this.$tbody.html(this.placeholderRowHTML(this.options.loadingHTML));
                                      
                                      Severity: Minor
                                      Found in vendor/assets/javascripts/fuelux/fuelux.js - About 1 hr to fix

                                        Function activate has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          Tab.prototype.activate = function (element, container, callback) {
                                            var $active    = container.find('> .active')
                                            var transition = callback
                                              && $.support.transition
                                              && $active.hasClass('fade')
                                        Severity: Minor
                                        Found in vendor/assets/javascripts/bootstrap.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language