The whole title box should be clickable to expand or contract. Fixes #6217. Hat tip: azaozz.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7290 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b1fd49fc2c
commit
f85b8d6eb8
|
@ -1,6 +1,6 @@
|
||||||
function add_postbox_toggles(page) {
|
function add_postbox_toggles(page) {
|
||||||
jQuery('.postbox h3').prepend('<a class="togbox">+</a> ');
|
jQuery('.postbox h3').prepend('<a class="togbox">+</a> ');
|
||||||
jQuery('.togbox').click( function() { jQuery(jQuery(this).parent().parent().get(0)).toggleClass('closed'); save_postboxes_state(page); } );
|
jQuery('.postbox h3').click( function() { jQuery(jQuery(this).parent().get(0)).toggleClass('closed'); save_postboxes_state(page); } );
|
||||||
}
|
}
|
||||||
|
|
||||||
function save_postboxes_state(page) {
|
function save_postboxes_state(page) {
|
||||||
|
|
Loading…
Reference in New Issue