Properly uncheck the "new tab" box when editing a non-new-tab link.
Previously, if you had just edited a new-tab link, a subsequent edit of a non-new-tab link would mistakenly keep the checkbox checked. props sc0ttkclark. fixes #24520. git-svn-id: https://develop.svn.wordpress.org/trunk@24419 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c526380e47
commit
c77d6c27c3
@ -113,8 +113,7 @@ var wpLink;
|
||||
inputs.url.val( ed.dom.getAttrib(e, 'href') );
|
||||
inputs.title.val( ed.dom.getAttrib(e, 'title') );
|
||||
// Set open in new tab.
|
||||
if ( "_blank" == ed.dom.getAttrib(e, 'target') )
|
||||
inputs.openInNewTab.prop('checked', true);
|
||||
inputs.openInNewTab.prop('checked', ( "_blank" == ed.dom.getAttrib( e, 'target' ) ) );
|
||||
// Update save prompt.
|
||||
inputs.submit.val( wpLinkL10n.update );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user