From: Klaus Hartl Date: Sun, 6 Jul 2008 14:53:40 +0000 (+0000) Subject: UI Tabs: fixed usage of only an image as tab label X-Git-Tag: 1.5.2~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f89359515ddcb74b82e1fa81749a5030b68cf992;p=jquery-ui.git UI Tabs: fixed usage of only an image as tab label --- diff --git a/ui/ui.tabs.js b/ui/ui.tabs.js index e6381578d..53dc90c19 100644 --- a/ui/ui.tabs.js +++ b/ui/ui.tabs.js @@ -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)