Skip to content
Permalink
Browse files

reinstated toggle link to show/hide class names

  • Loading branch information
Maggie Costello Wachs
Maggie Costello Wachs committed Dec 10, 2008
1 parent e528e28 commit 644698dea0cb6b8f1dbd8e49ae6de2cf7bd2ea28
Showing with 5 additions and 4 deletions.
  1. +5 −4 tests/static/icons.html
@@ -26,17 +26,18 @@
function(){ $(this).removeClass('ui-state-hover'); }
);
$('.ui-state-default').click(function(){ $(this).toggleClass('ui-state-active'); });

$('.icons').append(' <a href="#">Toggle text</a>').find('a').click(function(){ $('.icon-collection li span.text').toggle(); });

$('.icons').append(' <a href="#">Toggle text</a>').find('a').click(function(){ $('.icon-collection li span.text').toggle(); }).trigger('click');
$.preloadCssImages();
});
</script>
</head>
<body>

<p class="icons"></p>

<ul class="ui-widget icon-collection">

<ul class="ui-widget icon-collection"><li class="ui-state-default ui-corner-all" title=".ui-icon-carat-1-n"><span class="ui-icon ui-icon-carat-1-n"></span><span class="text">.ui-icon-carat-1-n</span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-carat-1-n"><span class="ui-icon ui-icon-carat-1-n"></span><span class="text">.ui-icon-carat-1-n</span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-carat-1-ne"><span class="ui-icon ui-icon-carat-1-ne"></span><span class="text">.ui-icon-carat-1-ne</span></li>
<li class="ui-state-default ui-corner-all" title=".ui-icon-carat-1-e"><span class="ui-icon ui-icon-carat-1-e"></span><span class="text">.ui-icon-carat-1-e</span></li>

0 comments on commit 644698d

Please sign in to comment.
You can’t perform that action at this time.