Wordpress/wp-admin/js/page.js

17 lines
416 B
JavaScript
Raw Normal View History

addLoadEvent( function() {
add_postbox_toggles('page');
make_slugedit_clickable();
// hide advanced slug field
jQuery('#pageslugdiv').hide();
jQuery('#timestampdiv').css('display', 'none');
jQuery('.edit-timestamp').click(function () {
if (jQuery('#timestampdiv').is(":hidden")) {
jQuery('#timestampdiv').slideDown("normal");
} else {
jQuery('#timestampdiv').hide();
}
return false;
});
});