Showing 135 of 334 total issues
Function resizableDayEvent
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;
Function drag
has 78 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
drag: function (event, ui) {
var ts, bs, ls, rs, l, r, t, b, i, first,
inst = $(this).data("ui-draggable"),
o = inst.options,
Function _mouseStart
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_mouseStart: function (event, overrideHandle, noActivation) {
var i, body,
o = this.options;
Function _fetchEventSource
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _fetchEventSource(source, callback) {
var i;
var fetchers = fc.sourceFetchers;
var res;
for (i = 0; i < fetchers.length; i++) {
Function formatDates
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function formatDates(date1, date2, format, options) {
options = options || defaults;
var date = date1,
otherDate = date2,
i, len = format.length, c,
Function _mouseDrag
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_mouseDrag: function (event) {
var i, item, itemElement, intersection,
o = this.options,
scrolled = false;
Function widget
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
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 = {},
Function buildSkeleton
has 72 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildSkeleton() {
var headerClass = tm + "-widget-header";
var contentClass = tm + "-widget-content";
var s;
var d;
Function _contactContainers
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_contactContainers: function (event) {
var i, j, dist, itemWithLeastDistance, posProperty, sizeProperty, base, cur, nearBottom, floating,
innermostContainer = null,
innermostIndex = null;
Function SelectionManager
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function SelectionManager() {
var t = this;
// exports
Function drag
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
drag: function (event, ui) {
var inst = $(this).data("ui-draggable"), that = this;
$.each(inst.sortables, function () {
Function _generatePosition
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
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,
Function createWrapper
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
createWrapper: function (element) {
// if the element is already wrapped, return it
if (element.parent().is(".ui-effects-wrapper")) {
return element.parent();
Function buildHTMLForSegment
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildHTMLForSegment(segment) {
var html = '';
var isRTL = opt('isRTL');
var event = segment.event;
var url = event.url;
Function _mouseStart
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_mouseStart: function (event) {
var that = this,
options = this.options;
this.opos = [event.pageX, event.pageY];
Function parse
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
parse: function (red, green, blue, alpha) {
if (red === undefined) {
this._rgba = [null, null, null, null];
return this;
}
Function animateClass
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.effects.animateClass = function (value, duration, easing, callback) {
var o = $.speed(duration, easing, callback);
return this.queue(function () {
var animated = $(this),
Function buildDayTableBodyHTML
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
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());
Function parseISO8601
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
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) {
Function slotSegHtml
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function slotSegHtml(event, seg) {
var html = "<";
var url = event.url;
var skinCss = getSkinCss(event, opt);
var classes = ['fc-event', 'fc-event-vert'];