Don't add # to URL when clicking 'OK' without changing the permalink.
props avryl. fixes #27594. git-svn-id: https://develop.svn.wordpress.org/trunk@28771 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
550d0f0aea
commit
9561db4dee
@ -892,7 +892,8 @@ jQuery(document).ready( function($) {
|
|||||||
b.children('.save').click(function() {
|
b.children('.save').click(function() {
|
||||||
var new_slug = e.children('input').val();
|
var new_slug = e.children('input').val();
|
||||||
if ( new_slug == $('#editable-post-name-full').text() ) {
|
if ( new_slug == $('#editable-post-name-full').text() ) {
|
||||||
return $('#edit-slug-buttons .cancel').click();
|
b.children('.cancel').click();
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
$.post(ajaxurl, {
|
$.post(ajaxurl, {
|
||||||
action: 'sample-permalink',
|
action: 'sample-permalink',
|
||||||
@ -915,7 +916,7 @@ jQuery(document).ready( function($) {
|
|||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#edit-slug-buttons .cancel').click(function() {
|
b.children('.cancel').click(function() {
|
||||||
$('#view-post-btn').show();
|
$('#view-post-btn').show();
|
||||||
e.html(revert_e);
|
e.html(revert_e);
|
||||||
b.html(revert_b);
|
b.html(revert_b);
|
||||||
|
Loading…
Reference in New Issue
Block a user