UI Tabs: fixed usage of only an image as tab label

This commit is contained in:
Klaus Hartl 2008-07-06 14:53:40 +00:00
parent c350d7b9f8
commit f89359515d

View File

@ -433,7 +433,7 @@ $.widget("ui.tabs", {
var inner = function(parent) {
var $parent = $(parent), $inner = $parent.find('*:last');
return $inner.length && $inner || $parent;
return $inner.length && $inner.is(':not(img)') && $inner || $parent;
};
var cleanup = function() {
self.$tabs.filter('.' + o.loadingClass).removeClass(o.loadingClass)