Fixed example panel visibility bug

This commit is contained in:
Trevor Parscal 2011-12-02 00:32:20 +00:00
parent 8a58fb5189
commit 172c4815b3

View file

@ -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' },