Make WordPress Core

Changeset 28771


Ignore:
Timestamp:
06/18/2014 12:28:35 AM (11 years ago)
Author:
SergeyBiryukov
Message:

Don't add # to URL when clicking 'OK' without changing the permalink.

props avryl.
fixes #27594.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/post.js

    r28193 r28771  
    893893            var new_slug = e.children('input').val();
    894894            if ( new_slug == $('#editable-post-name-full').text() ) {
    895                 return $('#edit-slug-buttons .cancel').click();
     895                b.children('.cancel').click();
     896                return false;
    896897            }
    897898            $.post(ajaxurl, {
     
    916917        });
    917918
    918         $('#edit-slug-buttons .cancel').click(function() {
     919        b.children('.cancel').click(function() {
    919920            $('#view-post-btn').show();
    920921            e.html(revert_e);
Note: See TracChangeset for help on using the changeset viewer.