Showing 175 of 609 total issues
Function _mouseStart
has 78 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_mouseStart: function(e, overrideHandle, noActivation) {
var o = this.options;
this.currentContainer = this;
Function _mouseDrag
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_mouseDrag: function(event) {
var self = this;
this.dragged = true;
if (this.options.disabled)
Function formatDate
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
formatDate: function (format, date, settings) {
if (!date)
return '';
var dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort;
var dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames;
Function _init
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_init: function() {
var options = this.options;
if ( options.navigation ) {
var current = this.element.find("a").filter(options.navigationFilter);
Function _generateMonthYearHeader
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_generateMonthYearHeader: function(inst, drawMonth, drawYear, minDate, maxDate,
selectedDate, secondary, showStatus, initStatus, monthNames) {
minDate = (inst.rangeStart && minDate && selectedDate < minDate ? selectedDate : minDate);
var changeMonth = this._get(inst, 'changeMonth');
var changeYear = this._get(inst, 'changeYear');
Function _doKeyDown
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_doKeyDown: function(event) {
var inst = $.datepicker._getInst(event.target);
var handled = true;
inst._keyEvent = true;
if ($.datepicker._datepickerShowing)
Function toggle
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function toggle(toShow, toHide, data, clickedActive, down) {
var options = $.data(this, "accordion").options;
options.toShow = toShow;
options.toHide = toHide;
options.data = data;
Consider simplifying this complex logical expression. Open
Open
if( typeof newStyle[n] != "function" && newStyle[n] /* No functions and null properties */
&& n.indexOf("Moz") == -1 && n.indexOf("length") == -1 /* No mozilla spezific render properties. */
&& newStyle[n] != oldStyle[n] /* Only values that have changed are used for the animation */
&& (n.match(/color/i) || (!n.match(/color/i) && !isNaN(parseInt(newStyle[n],10)))) /* Only things that can be parsed to integers or colors */
&& (oldStyle.position != "static" || (oldStyle.position == "static" && !n.match(/left|top|bottom|right/))) /* No need for positions when dealing with static positions */
Function _showDatepicker
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_showDatepicker: function(input) {
input = input.target || input;
if (input.nodeName.toLowerCase() != 'input') // find from button/image trigger
input = $('input', input.parentNode)[0];
if ($.datepicker._isDisabledDatepicker(input) || $.datepicker._lastInput == input) // already here
Function moveTo
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
moveTo: function(value, handle, noPropagation) {
var o = this.options;
// Prepare the outer size
Function _mouseStart
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_mouseStart: function(e) {
var o = this.options;
//Create and append the visible helper
Function _init
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_init: function() {
var self = this;
this.element.addClass("ui-slider ui-widget ui-widget-content ui-corner-all");
this._initBoundaries();
Function bounce
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.effects.bounce = function(o) {
return this.queue(function() {
// Create element
Function clickHandler
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function clickHandler(event) {
var options = $.data(this, "accordion").options;
if (options.disabled) {
return false;
}
Function widget
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.widget = function(name, prototype) {
var namespace = name.split(".")[0];
name = name.split(".")[1];
// create plugin method
Function _mouseStart
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_mouseStart: function(event, overrideHandle, noActivation) {
var o = this.options;
this.currentContainer = this;
Function explode
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.effects.explode = function(o) {
return this.queue(function() {
var rows = o.options.pieces ? Math.round(Math.sqrt(o.options.pieces)) : 3;
Function load
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
load: function(index, callback) { // callback is for internal usage only
var self = this, o = this.options, $a = this.$tabs.eq(index), a = $a[0],
bypassCache = callback == undefined || callback === false, url = $a.data('load.tabs');
Function widget
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.widget = function(name, prototype) {
var namespace = name.split(".")[0];
name = name.split(".")[1];
// create plugin method
Function _position
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_position: function(pos) {
var wnd = $(window), doc = $(document),
pTop = doc.scrollTop(), pLeft = doc.scrollLeft(),
minTop = pTop;