mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-27 17:50:44 +00:00
Follow-up d400102
: Drop irrelevant comment, merge var declaration
Change-Id: I09685da71cdfa21b40258ecffc64fa9a2f6ec272
This commit is contained in:
parent
a899832759
commit
ba6e4e171d
|
@ -654,10 +654,9 @@
|
|||
},
|
||||
open: function () {
|
||||
// Pre-fill the text fields based on the current selection
|
||||
var selection, matches, text,
|
||||
context = $( this ).data( 'context' );
|
||||
// Restore and immediately save selection state, needed for inserting stuff later
|
||||
selection = context.$textarea.textSelection( 'getSelection' );
|
||||
var matches, text,
|
||||
context = $( this ).data( 'context' ),
|
||||
selection = context.$textarea.textSelection( 'getSelection' );
|
||||
// set focus
|
||||
$( '#wikieditor-toolbar-reference-text' ).focus();
|
||||
$( '#wikieditor-toolbar-reference-dialog' )
|
||||
|
|
Loading…
Reference in a new issue