aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKlaus Hartl <klaus.hartl@googlemail.com>2008-07-06 14:53:40 +0000
committerKlaus Hartl <klaus.hartl@googlemail.com>2008-07-06 14:53:40 +0000
commitf89359515ddcb74b82e1fa81749a5030b68cf992 (patch)
treed05be9a6f3398ba1027a637c814746ef34121409
parentc350d7b9f8fe43f04c903ab5741fd89d0a546212 (diff)
downloadjquery-ui-f89359515ddcb74b82e1fa81749a5030b68cf992.tar.gz
jquery-ui-f89359515ddcb74b82e1fa81749a5030b68cf992.zip
UI Tabs: fixed usage of only an image as tab label
-rw-r--r--ui/ui.tabs.js2
1 files changed, 1 insertions, 1 deletions
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)