mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Hide URL editing UI for page and category menu items. TODO: eliminate all usage of guid. Use custom field instead. see #11817
git-svn-id: https://develop.svn.wordpress.org/trunk@13390 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -33,21 +33,26 @@ function removeitem(o)
|
||||
function edititem(o)
|
||||
{
|
||||
|
||||
itemTitle = jQuery('#title' + o).attr('value');
|
||||
itemURL = jQuery('#linkurl' + o).attr('value');
|
||||
itemAnchorTitle = jQuery('#anchortitle' + o).attr('value');
|
||||
itemNewWindow = jQuery('#newwindow' + o).attr('value');
|
||||
itemDesc = jQuery('#description' + o).attr('value');
|
||||
itemTitle = jQuery('#title' + o).val();
|
||||
itemURL = jQuery('#linkurl' + o).val();
|
||||
itemAnchorTitle = jQuery('#anchortitle' + o).val();
|
||||
itemNewWindow = jQuery('#newwindow' + o).val();
|
||||
itemDesc = jQuery('#description' + o).val();
|
||||
|
||||
jQuery('#dialog-confirm').dialog( 'option' , 'itemID' , o )
|
||||
|
||||
jQuery('#dialog-confirm').dialog('open');
|
||||
|
||||
jQuery('#edittitle').attr('value', itemTitle);
|
||||
jQuery('#editlink').attr('value', itemURL);
|
||||
jQuery('#editanchortitle').attr('value', itemAnchorTitle);
|
||||
jQuery('#edittitle').val( itemTitle );
|
||||
if ( 'custom' == jQuery( '#linktype' + o ).val() ) {
|
||||
jQuery( '#editlink-wrap' ).css( 'display', 'inline' );
|
||||
} else {
|
||||
jQuery( '#editlink-wrap' ).css( 'display', 'none' );
|
||||
}
|
||||
jQuery('#editlink').val( itemURL );
|
||||
jQuery('#editanchortitle').val( itemAnchorTitle );
|
||||
jQuery("#editnewwindow option[value='" + itemNewWindow + "']").attr('selected', 'selected');
|
||||
jQuery('#editdescription').attr('value', itemDesc);
|
||||
jQuery('#editdescription').val( itemDesc );
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user