]> source.dussan.org Git - jquery-ui.git/commitdiff
UI Tabs: fixed usage of only an image as tab label
authorKlaus Hartl <klaus.hartl@googlemail.com>
Sun, 6 Jul 2008 14:53:40 +0000 (14:53 +0000)
committerKlaus Hartl <klaus.hartl@googlemail.com>
Sun, 6 Jul 2008 14:53:40 +0000 (14:53 +0000)
ui/ui.tabs.js

index e6381578dc4df702b8008b56954798ba252265f1..53dc90c19d704199154b5f32ebe46fbb02701487 100644 (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)