Taxonomy postbox: fix toggling with "Choose from the most used tags" when several postboxes are shown, props SergeyBiryukov, fixes #23112 for trunk

git-svn-id: http://core.svn.wordpress.org/trunk@23278 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2013-01-04 20:54:11 +00:00
parent 381b7246f9
commit cc834e52bf
1 changed files with 5 additions and 3 deletions

View File

@ -165,11 +165,13 @@ tagBox = {
// tag cloud
$('a.tagcloud-link').click(function(){
if ( ! $('.the-tagcloud').length )
tagBox.get( $(this).attr('id') );
$(this).unbind().click(function(){
$(this).siblings('.the-tagcloud').toggle();
return false;
});
return false;
});
}
};