Showing 759 of 1,838 total issues
Function drag
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
drag: function( event, ui, i ) {
var o = i.options,
scrolled = false,
scrollParent = i.scrollParentNotHidden[ 0 ],
Function _toggle
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_toggle: function( data ) {
var toShow = data.newPanel,
toHide = this.prevShow.length ? this.prevShow : data.oldPanel;
// handle activating a panel during the animation for another activation
Function each
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
each: function( obj, callback, args ) {
var value,
i = 0,
length = obj.length,
isArray = isArraylike( obj );
Function _drawButton
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_drawButton: function() {
var that = this;
// Associate existing label with the new button
this.label = $( "label[for='" + this.ids.element + "']" ).attr( "for", this.ids.button );
Function _size
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_size: function () {
/* If the user has resized the dialog, the .ui-dialog and .ui-dialog-content
* divs will both have width and height set, so we need to reset them
*/
var options = this.options,
Function animateClass
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.effects.animateClass = function (value, duration, easing, callback) {
if ($.isFunction(easing)) {
callback = easing;
easing = null;
}
Function drag
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
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 );
Function _possibleChars
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_possibleChars: function (format) {
var iFormat,
chars = "",
literal = false,
// Check whether a format character is doubled
Function destroy
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
destroy: function () {
$.Widget.prototype.destroy.call(this);
this.element.unbind('.tagit');
this.tagList.unbind('.tagit');
Function drop
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var effectDrop = $.effects.effect.drop = function( o, done ) {
var el = $( this ),
props = [ "position", "top", "bottom", "left", "right", "opacity", "height", "width" ],
mode = $.effects.setMode( el, o.mode || "hide" ),
Function ajaxHandleResponses
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ajaxHandleResponses( s, jqXHR, responses ) {
var firstDataType, ct, finalDataType, type,
contents = s.contents,
dataTypes = s.dataTypes;
Function intersect
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.ui.intersect = function (draggable, droppable, toleranceMode) {
if (!droppable.offset) return false;
var x1 = (draggable.positionAbs || draggable.position.absolute).left, x2 = x1 + draggable.helperProportions.width,
Function drag
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
drag: function (event, ui) {
var inst = $(this).data("draggable"), o = inst.options;
var d = o.snapTolerance;
Function _mouseStart
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_mouseStart: function (event) {
var o = this.options;
//Create and append the visible helper
Function add
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
add: function (url, label, index) {
if (index === undefined) {
index = this.anchors.length;
}
Function offsetString
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var offsetString = function (offset) {
try {
return $.datepicker.parseDate($.datepicker._get(inst, 'dateFormat'),
offset, $.datepicker._getFormatConfig(inst));
}
Method handle_file_upload
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function handle_file_upload($uploaded_file, $name, $size, $type, $error)
{
$file = new \stdClass();
$swDB = new SwDatabase();
$userid = ($GLOBALS['xoopsUser'] && ($GLOBALS['xoopsUser'] instanceof \XoopsUser)) ? $GLOBALS['xoopsUser']->uid() : 0;
Method rotateImage
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function rotateImage()
{
// check file extension
switch ($this->imageMimetype) {
case 'image/png':
Function rebuildThumbs
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
rebuildThumbs: function () {
var needsPagination = this.data.length > this.numThumbs;
// Rebuild top pager
if (this.enableTopPager) {
Function clip
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var effectClip = $.effects.effect.clip = function( o, done ) {
// Create element
var el = $( this ),
props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
mode = $.effects.setMode( el, o.mode || "hide" ),