Bug Tracker

Custom Query (13852 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (61 - 63 of 13852)

Ticket Resolution Summary Owner Reporter
#67 fixed the center() function doesn't work when the parent object is body [email protected]
Description

Here is the fixed function I use:

$.fn.center = function(f) {

return this.each(function(){

if ( !f && this.nodeName == 'IMG' &&

!this.offsetWidth && !this.offsetHeight ) {

var self = this; setTimeout(function(){

$(self).center(true);

}, 13);

} else {

var s = this.style; var p = this.parentNode; var b = document.body; var t = 0; if ( $.css(p,"position") == 'static' )

p.style.position = 'relative';

s.position = 'absolute'; if ( ! isNaN(parseInt($.css(p,"width"))) ) {

t = parseInt(($.css(p,"width") - $.css(this,"width"))/2); if ( t > 0 )

s.left = t + "px";

} else if ( ! isNaN( b.clientWidth ) ) {

t = parseInt((b.clientWidth - $.css(this,"width"))/2); if ( t > 0 )

s.left = t + "px";

}

if ( ! isNaN(parseInt($.css(p,"height"))) ) {

t = parseInt(($.css(p,"height") - $.css(this,"height"))/2); if ( t > 0 )

s.top = t + "px";

} else if ( ! isNaN( b.clientHeight ) ) {

t = parseInt((b.clientHeight - $.css(this,"height"))/2); if ( t > 0 )

s.top = t + "px";

}

}

});

};

#68 invalid $('table tr tbody td:first') gives first td of last row found [email protected]
Description

$('table tr tbody td:first') gives me the first TD, of the last row found but that's not what i want.. I want the first TD of each row found. It it is a feature, it should return the first TD of the first row ;)

#69 fixed Replacement :input, :radio, etc. john
Description

There should be a feature to replace the removed "input" hack, something like: :input (input, select, textarea) :button :radio :checkbox :submit :text :password etc.

Note: See TracQuery for help on using queries.