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:
Scott Taylor
2015-05-08 20:38:55 +00:00
parent 3fd2730435
commit 8303e8f314
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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'
+2 -2
View File
@@ -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'