crmis/weddings

View on GitHub

Showing 135 of 334 total issues

Function drag has 37 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/viewable_calendar-editable.js - About 1 hr to fix

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

            function draggableDayEvent(event, eventElement) {
                var hoverListener = getHoverListener();
                var dayDelta;
                eventElement.draggable({
                    delay: 50,
    Severity: Minor
    Found in app/assets/javascripts/viewable_fullcalendar.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

        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 resizableSlotEvent has 36 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  function resizableSlotEvent(event, eventElement, timeElement) {
                      var snapDelta, prevSnapDelta;
                      var snapHeight = getSnapHeight();
                      var snapMinutes = getSnapMinutes();
                      eventElement.resizable({
          Severity: Minor
          Found in app/assets/javascripts/viewable_fullcalendar.js - About 1 hr to fix

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

                function MonthView(element, calendar) {
                    var t = this;
            
            
                    // exports
            Severity: Minor
            Found in app/assets/javascripts/viewable_fullcalendar.js - About 1 hr to fix

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

                      start: function () {
                          var element, p, co, ch, cw, width, height,
                              that = $(this).data("ui-resizable"),
                              o = that.options,
                              el = that.element,
              Severity: Minor
              Found in app/assets/javascripts/viewable_calendar-editable.js - About 1 hr to fix

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

                        _mouseStart: function (event) {
                
                            var curleft, curtop, cursor,
                                o = this.options,
                                iniPos = this.element.position(),
                Severity: Minor
                Found in app/assets/javascripts/viewable_calendar-editable.js - About 1 hr to fix

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

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

                    Function cancel has 35 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/viewable_calendar-editable.js - About 1 hr to fix

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

                              _mouseCapture: function (event, overrideHandle) {
                                  var currentItem = null,
                                      validHandle = false,
                                      that = this;
                      
                      
                      Severity: Minor
                      Found in app/assets/javascripts/viewable_calendar-editable.js - About 1 hr to fix

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

                            function CoordinateGrid(buildFunc) {
                        
                                var t = this;
                                var rows;
                                var cols;
                        Severity: Minor
                        Found in app/assets/javascripts/viewable_fullcalendar.js - About 1 hr to fix

                          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/viewable_calendar-editable.js - About 1 hr to fix

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

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

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

                                          effect: function (/* effect, options, speed, callback */) {
                                              var args = _normalizeArguments.apply(this, arguments),
                                                  mode = args.mode,
                                                  queue = args.queue,
                                                  effectMethod = $.effects.effect[args.effect];
                              Severity: Minor
                              Found in app/assets/javascripts/viewable_calendar-editable.js - About 1 hr to fix

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

                                        function sliceSegs(events, visEventEnds, start, end) {
                                            var segs = [],
                                                i, len = events.length, event,
                                                eventStart, eventEnd,
                                                segStart, segEnd,
                                Severity: Minor
                                Found in app/assets/javascripts/viewable_fullcalendar.js - About 1 hr to fix

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

                                          function updateEvent(event) { // update an existing event
                                              var i, len = cache.length, e,
                                                  defaultEventEnd = getView().defaultEventEnd, // getView???
                                                  startDelta = event.start - event._start,
                                                  endDelta = event.end ?
                                  Severity: Minor
                                  Found in app/assets/javascripts/viewable_fullcalendar.js - About 1 hr to fix

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

                                        $.ui.intersect = function (draggable, droppable, toleranceMode) {
                                    
                                            if (!droppable.offset) {
                                                return false;
                                            }
                                    Severity: Minor
                                    Found in app/assets/javascripts/viewable_calendar-editable.js - About 1 hr to fix

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

                                          function getSkinCss(event, opt) {
                                              var source = event.source || {};
                                              var eventColor = event.color;
                                              var sourceColor = source.color;
                                              var optionColor = opt('eventColor');
                                      Severity: Minor
                                      Found in app/assets/javascripts/viewable_fullcalendar.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/viewable_calendar-editable.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language