mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Use <button> instead of <a> for non-link links in Quick Edit.
Props afercia. Fixes #32213. git-svn-id: https://develop.svn.wordpress.org/trunk@32869 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1529,11 +1529,11 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||
}
|
||||
?>
|
||||
<p class="submit inline-edit-save">
|
||||
<a href="#inline-edit" class="button-secondary cancel alignleft"><?php _e( 'Cancel' ); ?></a>
|
||||
<button type="button" class="button-secondary cancel alignleft"><?php _e( 'Cancel' ); ?></button>
|
||||
<?php if ( ! $bulk ) {
|
||||
wp_nonce_field( 'inlineeditnonce', '_inline_edit', false );
|
||||
?>
|
||||
<a href="#inline-edit" class="button-primary save alignright"><?php _e( 'Update' ); ?></a>
|
||||
<button type="button" class="button-primary save alignright"><?php _e( 'Update' ); ?></button>
|
||||
<span class="spinner"></span>
|
||||
<?php } else {
|
||||
submit_button( __( 'Update' ), 'button-primary alignright', 'bulk_edit', false );
|
||||
|
||||
@@ -22,10 +22,10 @@ inlineEditPost = {
|
||||
}
|
||||
});
|
||||
|
||||
$('a.cancel', qeRow).click(function(){
|
||||
$( '.cancel', qeRow ).click( function() {
|
||||
return inlineEditPost.revert();
|
||||
});
|
||||
$('a.save', qeRow).click(function(){
|
||||
$( '.save', qeRow ).click( function() {
|
||||
return inlineEditPost.save(this);
|
||||
});
|
||||
$('td', qeRow).keydown(function(e){
|
||||
@@ -34,7 +34,7 @@ inlineEditPost = {
|
||||
}
|
||||
});
|
||||
|
||||
$('a.cancel', bulkRow).click(function(){
|
||||
$( '.cancel', bulkRow ).click( function() {
|
||||
return inlineEditPost.revert();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user