mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-24 01:57:53 +01: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 ];
|
||||
}, this );
|
||||
|
||||
if ( this.options.dropdown )
|
||||
this.options.dropdown.addClass('dropdown');
|
||||
|
||||
this.model.on( 'change', this.render, this );
|
||||
},
|
||||
|
||||
@ -2106,16 +2103,8 @@
|
||||
this.el.className = classes.join(' ');
|
||||
|
||||
this.$el.attr( 'disabled', model.disabled );
|
||||
|
||||
// Detach the dropdown.
|
||||
if ( this.options.dropdown )
|
||||
this.options.dropdown.detach();
|
||||
|
||||
this.$el.text( this.model.get('text') );
|
||||
|
||||
if ( this.options.dropdown )
|
||||
this.$el.append( this.options.dropdown );
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user