mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
Fixed example panel visibility bug
This commit is contained in:
parent
8a58fb5189
commit
172c4815b3
|
@ -24,8 +24,13 @@ es.ContextView = function( surfaceView, $overlay ) {
|
|||
'-',
|
||||
{ 'name': 'link', 'label': 'Link to...', 'callback': function() {
|
||||
_this.menu.hide();
|
||||
_this.$panels.find( '[rel="link"]' ).show();
|
||||
_this.$panels.find( '[rel="link"] input:first' ).focus();
|
||||
_this.$panels
|
||||
.show()
|
||||
.find( '[rel="link"]' )
|
||||
.show()
|
||||
.end()
|
||||
.find( '[rel="link"] input:first' )
|
||||
.focus();
|
||||
} },
|
||||
'-',
|
||||
{ 'name': 'copy', 'label': 'Copy' },
|
||||
|
|
Loading…
Reference in a new issue