Slug edit fix from nbachiyski. fixes #6072

git-svn-id: https://develop.svn.wordpress.org/trunk@7139 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-03-03 21:02:53 +00:00
parent b093ce1da2
commit 4e4e172045
3 changed files with 13 additions and 7 deletions

View File

@@ -10,11 +10,12 @@ function edit_permalink(post_id) {
b.html('<a href="" class="save">'+slugL10n.save+'</a> <a class="cancel" href="">'+slugL10n.cancel+'</a>');
b.children('.save').click(function() {
var new_slug = e.children('input').attr('value');
var new_slug = e.children('input').val();
jQuery.post(slugL10n.requestFile, {
action: 'sample-permalink',
post_id: post_id,
new_slug: new_slug,
new_title: jQuery('#title').val(),
samplepermalinknonce: jQuery('#samplepermalinknonce').val()}, function(data) {
jQuery('#edit-slug-box').html(data);
b.html(revert_b);