crmis/weddings

View on GitHub

Showing 135 of 334 total issues

Function resizableDayEvent has 79 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        function resizableDayEvent(event, element, segment) {
            var isRTL = opt('isRTL');
            var direction = isRTL ? 'w' : 'e';
            var handle = element.find('.ui-resizable-' + direction); // TODO: stop using this class because we aren't using jqui for this
            var isResizing = false;
Severity: Major
Found in app/assets/javascripts/viewable_fullcalendar.js - About 3 hrs to fix

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

            drag: function (event, ui) {
    
                var ts, bs, ls, rs, l, r, t, b, i, first,
                    inst = $(this).data("ui-draggable"),
                    o = inst.options,
    Severity: Major
    Found in app/assets/javascripts/viewable_calendar-editable.js - About 3 hrs to fix

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

              _mouseStart: function (event, overrideHandle, noActivation) {
      
                  var i, body,
                      o = this.options;
      
      
      Severity: Major
      Found in app/assets/javascripts/viewable_calendar-editable.js - About 3 hrs to fix

        Function formatDates has 74 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function formatDates(date1, date2, format, options) {
                options = options || defaults;
                var date = date1,
                    otherDate = date2,
                    i, len = format.length, c,
        Severity: Major
        Found in app/assets/javascripts/viewable_fullcalendar.js - About 2 hrs to fix

          Function _fetchEventSource has 74 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  function _fetchEventSource(source, callback) {
                      var i;
                      var fetchers = fc.sourceFetchers;
                      var res;
                      for (i = 0; i < fetchers.length; i++) {
          Severity: Major
          Found in app/assets/javascripts/viewable_fullcalendar.js - About 2 hrs to fix

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

                    _mouseDrag: function (event) {
                        var i, item, itemElement, intersection,
                            o = this.options,
                            scrolled = false;
            
            
            Severity: Major
            Found in app/assets/javascripts/viewable_calendar-editable.js - About 2 hrs to fix

              Function buildSkeleton has 72 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      function buildSkeleton() {
                          var headerClass = tm + "-widget-header";
                          var contentClass = tm + "-widget-content";
                          var s;
                          var d;
              Severity: Major
              Found in app/assets/javascripts/viewable_fullcalendar.js - About 2 hrs to fix

                Function widget has 72 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    $.widget = function (name, base, prototype) {
                        var fullName, existingConstructor, constructor, basePrototype,
                        // proxiedPrototype allows the provided prototype to remain unmodified
                        // so that it can be used as a mixin for multiple widgets (#8876)
                            proxiedPrototype = {},
                Severity: Major
                Found in app/assets/javascripts/viewable_calendar-editable.js - About 2 hrs to fix

                  Function _contactContainers has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          _contactContainers: function (event) {
                              var i, j, dist, itemWithLeastDistance, posProperty, sizeProperty, base, cur, nearBottom, floating,
                                  innermostContainer = null,
                                  innermostIndex = null;
                  
                  
                  Severity: Major
                  Found in app/assets/javascripts/viewable_calendar-editable.js - About 2 hrs to fix

                    Function SelectionManager has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function SelectionManager() {
                            var t = this;
                    
                    
                            // exports
                    Severity: Major
                    Found in app/assets/javascripts/viewable_fullcalendar.js - About 2 hrs to fix

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

                              drag: function (event, ui) {
                      
                                  var inst = $(this).data("ui-draggable"), that = this;
                      
                                  $.each(inst.sortables, function () {
                      Severity: Major
                      Found in app/assets/javascripts/viewable_calendar-editable.js - About 2 hrs to fix

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

                                _generatePosition: function (event) {
                        
                                    var containment, co, top, left,
                                        o = this.options,
                                        scroll = this.cssPosition === "absolute" && !( this.scrollParent[0] !== document && $.contains(this.scrollParent[0], this.offsetParent[0]) ) ? this.offsetParent : this.scrollParent,
                        Severity: Major
                        Found in app/assets/javascripts/viewable_calendar-editable.js - About 2 hrs to fix

                          Function createWrapper has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                      createWrapper: function (element) {
                          
                                          // if the element is already wrapped, return it
                                          if (element.parent().is(".ui-effects-wrapper")) {
                                              return element.parent();
                          Severity: Major
                          Found in app/assets/javascripts/viewable_calendar-editable.js - About 2 hrs to fix

                            Function buildHTMLForSegment has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    function buildHTMLForSegment(segment) {
                                        var html = '';
                                        var isRTL = opt('isRTL');
                                        var event = segment.event;
                                        var url = event.url;
                            Severity: Major
                            Found in app/assets/javascripts/viewable_fullcalendar.js - About 2 hrs to fix

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

                                      _mouseStart: function (event) {
                                          var that = this,
                                              options = this.options;
                              
                                          this.opos = [event.pageX, event.pageY];
                              Severity: Major
                              Found in app/assets/javascripts/viewable_calendar-editable.js - About 2 hrs to fix

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

                                            parse: function (red, green, blue, alpha) {
                                                if (red === undefined) {
                                                    this._rgba = [null, null, null, null];
                                                    return this;
                                                }
                                Severity: Major
                                Found in app/assets/javascripts/viewable_calendar-editable.js - About 2 hrs to fix

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

                                          $.effects.animateClass = function (value, duration, easing, callback) {
                                              var o = $.speed(duration, easing, callback);
                                  
                                              return this.queue(function () {
                                                  var animated = $(this),
                                  Severity: Minor
                                  Found in app/assets/javascripts/viewable_calendar-editable.js - About 2 hrs to fix

                                    Function buildDayTableBodyHTML has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            function buildDayTableBodyHTML() {
                                                var headerClass = tm + "-widget-header"; // TODO: make these when updateOptions() called
                                                var contentClass = tm + "-widget-content";
                                                var date;
                                                var today = clearTime(new Date());
                                    Severity: Minor
                                    Found in app/assets/javascripts/viewable_fullcalendar.js - About 1 hr to fix

                                      Function parseISO8601 has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          function parseISO8601(s, ignoreTimezone) { // ignoreTimezone defaults to false
                                              // derived from http://delete.me.uk/2005/03/iso8601.html
                                              // TODO: for a know glitch/feature, read tests/issue_206_parseDate_dst.html
                                              var m = s.match(/^([0-9]{4})(-([0-9]{2})(-([0-9]{2})([T ]([0-9]{2}):([0-9]{2})(:([0-9]{2})(\.([0-9]+))?)?(Z|(([-+])([0-9]{2})(:?([0-9]{2}))?))?)?)?)?$/);
                                              if (!m) {
                                      Severity: Minor
                                      Found in app/assets/javascripts/viewable_fullcalendar.js - About 1 hr to fix

                                        Function slotSegHtml has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                function slotSegHtml(event, seg) {
                                                    var html = "<";
                                                    var url = event.url;
                                                    var skinCss = getSkinCss(event, opt);
                                                    var classes = ['fc-event', 'fc-event-vert'];
                                        Severity: Minor
                                        Found in app/assets/javascripts/viewable_fullcalendar.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language