crmis/weddings

View on GitHub

Showing 135 of 334 total issues

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

        resize: function () {
            var that = $(this).data("ui-resizable"),
                o = that.options,
                cs = that.size,
                os = that.originalSize,
Severity: Minor
Found in app/assets/javascripts/viewable_calendar-editable.js - About 1 hr to fix

    Function scale has 47 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        $.effects.effect.scale = function (o, done) {
    
            // Create element
            var el = $(this),
                options = $.extend(true, {}, o),
    Severity: Minor
    Found in app/assets/javascripts/viewable_calendar-editable.js - About 1 hr to fix

      Function renderSlotSelection has 47 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              function renderSlotSelection(startDate, endDate) {
                  var helperOption = opt('selectHelper');
                  coordinateGrid.build();
                  if (helperOption) {
                      var col = dateToCell(startDate).col;
      Severity: Minor
      Found in app/assets/javascripts/viewable_fullcalendar.js - About 1 hr to fix

        Function _generatePosition has 46 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                _generatePosition: function (event) {
        
                    var top, left,
                        o = this.options,
                        pageX = event.pageX,
        Severity: Minor
        Found in app/assets/javascripts/viewable_calendar-editable.js - About 1 hr to fix

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

                  _setContainment: function () {
          
                      var over, c, ce,
                          o = this.options;
          
          
          Severity: Minor
          Found in app/assets/javascripts/viewable_calendar-editable.js - About 1 hr to fix

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

                    _mouseStart: function (event) {
            
                        var o = this.options;
            
                        //Create and append the visible helper
            Severity: Minor
            Found in app/assets/javascripts/viewable_calendar-editable.js - About 1 hr to fix

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

                      resize: function (event) {
                          var woset, hoset, isParent, isOffsetRelative,
                              that = $(this).data("ui-resizable"),
                              o = that.options,
                              co = that.containerOffset, cp = that.position,
              Severity: Minor
              Found in app/assets/javascripts/viewable_calendar-editable.js - About 1 hr to fix

                Function _mouseDrag has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        _mouseDrag: function (event) {
                
                            //Increase performance, avoid regex
                            var data,
                                el = this.helper, props = {},
                Severity: Minor
                Found in app/assets/javascripts/viewable_calendar-editable.js - About 1 hr to fix

                  Consider simplifying this complex logical expression.
                  Open

                              if (this.floating && horizontalDirection) {
                                  return ((horizontalDirection === "right" && isOverRightHalf) || (horizontalDirection === "left" && !isOverRightHalf));
                              } else {
                                  return verticalDirection && ((verticalDirection === "down" && isOverBottomHalf) || (verticalDirection === "up" && !isOverBottomHalf));
                              }
                  Severity: Critical
                  Found in app/assets/javascripts/viewable_calendar-editable.js - About 1 hr to fix

                    Consider simplifying this complex logical expression.
                    Open

                                if (!(/^(document|window|parent)$/).test(o.containment)) {
                                    ce = $(o.containment)[0];
                                    co = $(o.containment).offset();
                                    over = ($(ce).css("overflow") !== "hidden");
                    
                    
                    Severity: Critical
                    Found in app/assets/javascripts/viewable_calendar-editable.js - About 1 hr to fix

                      Function _createPlaceholder has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              _createPlaceholder: function (that) {
                                  that = that || this;
                                  var className,
                                      o = that.options;
                      
                      
                      Severity: Minor
                      Found in app/assets/javascripts/viewable_calendar-editable.js - About 1 hr to fix

                        Function start has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                        start: function (ev, ui) {
                                            trigger('eventDragStart', eventElement, event, ev, ui);
                                            hideEvents(event, eventElement);
                                            origWidth = eventElement.width();
                                            hoverListener.start(function (cell, origCell) {
                        Severity: Minor
                        Found in app/assets/javascripts/viewable_fullcalendar.js - About 1 hr to fix

                          Function hook has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  color.hook = function (hook) {
                                      var hooks = hook.split(" ");
                                      each(hooks, function (i, hook) {
                                          jQuery.cssHooks[hook] = {
                                              set: function (elem, value) {
                          Severity: Minor
                          Found in app/assets/javascripts/viewable_calendar-editable.js - About 1 hr to fix

                            Function buildCellHTML has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    function buildCellHTML(date) {
                                        var contentClass = tm + "-widget-content";
                                        var month = t.start.getMonth();
                                        var today = clearTime(new Date());
                                        var html = '';
                            Severity: Minor
                            Found in app/assets/javascripts/viewable_fullcalendar.js - About 1 hr to fix

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

                                  $.fn.fullCalendar = function (options) {
                              
                              
                                      // method calling
                                      if (typeof options == 'string') {
                              Severity: Minor
                              Found in app/assets/javascripts/viewable_fullcalendar.js - About 1 hr to fix

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

                                        _mouseDown: function (event) {
                                            // don't let more than one widget handle mouseStart
                                            if (mouseHandled) {
                                                return;
                                            }
                                Severity: Minor
                                Found in app/assets/javascripts/viewable_calendar-editable.js - About 1 hr to fix

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

                                      $.widget.bridge = function (name, object) {
                                          var fullName = object.prototype.widgetFullName || name;
                                          $.fn[name] = function (options) {
                                              var isMethodCall = typeof options === "string",
                                                  args = slice.call(arguments, 1),
                                  Severity: Minor
                                  Found in app/assets/javascripts/viewable_calendar-editable.js - About 1 hr to fix

                                    Function _on has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            _on: function (suppressDisabledCheck, element, handlers) {
                                                var delegateElement,
                                                    instance = this;
                                    
                                                // no suppressDisabledCheck flag, shuffle arguments
                                    Severity: Minor
                                    Found in app/assets/javascripts/viewable_calendar-editable.js - About 1 hr to fix

                                      Function _respectSize has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              _respectSize: function (data) {
                                      
                                                  var o = this._vBoundaries,
                                                      a = this.axis,
                                                      ismaxw = isNumber(data.width) && o.maxWidth && (o.maxWidth < data.width), ismaxh = isNumber(data.height) && o.maxHeight && (o.maxHeight < data.height),
                                      Severity: Minor
                                      Found in app/assets/javascripts/viewable_calendar-editable.js - About 1 hr to fix

                                        Function buildDayTableHeadHTML has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                function buildDayTableHeadHTML() {
                                                    var headerClass = tm + "-widget-header";
                                                    var date;
                                                    var html = '';
                                                    var weekText;
                                        Severity: Minor
                                        Found in app/assets/javascripts/viewable_fullcalendar.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language