mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
wp.media.view.Button should create <button>s, not <a href="#">s.
Props afercia. See #32236. git-svn-id: https://develop.svn.wordpress.org/trunk@32464 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -4211,9 +4211,9 @@ module.exports = ButtonGroup;
|
||||
* @augments Backbone.View
|
||||
*/
|
||||
var Button = wp.media.View.extend({
|
||||
tagName: 'a',
|
||||
tagName: 'button',
|
||||
className: 'media-button',
|
||||
attributes: { href: '#' },
|
||||
attributes: { type: 'button' },
|
||||
|
||||
events: {
|
||||
'click': 'click'
|
||||
|
||||
@@ -9,9 +9,9 @@
|
||||
* @augments Backbone.View
|
||||
*/
|
||||
var Button = wp.media.View.extend({
|
||||
tagName: 'a',
|
||||
tagName: 'button',
|
||||
className: 'media-button',
|
||||
attributes: { href: '#' },
|
||||
attributes: { type: 'button' },
|
||||
|
||||
events: {
|
||||
'click': 'click'
|
||||
|
||||
Reference in New Issue
Block a user