mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Media JS: Only block button events by default if the button does not link to anything. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22501 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1625,7 +1625,9 @@
|
||||
},
|
||||
|
||||
click: function( event ) {
|
||||
event.preventDefault();
|
||||
if ( '#' === this.attributes.href )
|
||||
event.preventDefault();
|
||||
|
||||
if ( this.options.click && ! this.model.get('disabled') )
|
||||
this.options.click.apply( this, arguments );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user