mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-03 18:18:02 +02:00
Media: Remove dead dropdown code from button view. see #21390.
git-svn-id: http://core.svn.wordpress.org/trunk@22708 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5a0f702f29
commit
31c525b289
@ -2086,9 +2086,6 @@
|
|||||||
delete this.options[ key ];
|
delete this.options[ key ];
|
||||||
}, this );
|
}, this );
|
||||||
|
|
||||||
if ( this.options.dropdown )
|
|
||||||
this.options.dropdown.addClass('dropdown');
|
|
||||||
|
|
||||||
this.model.on( 'change', this.render, this );
|
this.model.on( 'change', this.render, this );
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -2106,16 +2103,8 @@
|
|||||||
this.el.className = classes.join(' ');
|
this.el.className = classes.join(' ');
|
||||||
|
|
||||||
this.$el.attr( 'disabled', model.disabled );
|
this.$el.attr( 'disabled', model.disabled );
|
||||||
|
|
||||||
// Detach the dropdown.
|
|
||||||
if ( this.options.dropdown )
|
|
||||||
this.options.dropdown.detach();
|
|
||||||
|
|
||||||
this.$el.text( this.model.get('text') );
|
this.$el.text( this.model.get('text') );
|
||||||
|
|
||||||
if ( this.options.dropdown )
|
|
||||||
this.$el.append( this.options.dropdown );
|
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user