MediaWiki talk:RefToolbarNoDialogs.js
Use of "$j" is deprecated. Use $ or jQuery instead
![]() | This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Could someone please replace the depracated "$j
" by "$
" and simplify those "new Array()
" to just "[]
"? Helder.wiki 16:20, 21 March 2014 (UTC)
- done —TheDJ (talk • contribs) 06:05, 24 March 2014 (UTC)
Protected edit request on 3 April 2014
![]() | It is requested that an edit be made to the interface page at MediaWiki:RefToolbarNoDialogs.js. (edit · history · last · links)
This template must be followed by a complete and specific description of the request, that is, specify what text should be removed and a verbatim copy of the text that should replace it. "Please change X" is not acceptable and will be rejected; the request must be of the form "please change X to Y".
The edit may be made by any interface administrator. Remember to change the |
On line 294, change:
insertTags(cite, '', '');
to:
$("#wpTextbox1").focus();
insertTags(cite, '', '');
On line 362, change:
insertTags(ref, '', '');
to:
$("#wpTextbox1").focus();
insertTags(ref, '', '');
This fixes an annoying bug with RefToolbar where the citation text gets inserted in the wrong edit field. This fix simply forces the input focus to the main wikitext edit field right before the insertion, which is the expected behaviour of the "Insert citation" tool. See RefToolbar talk. hydrox (talk) 14:38, 3 April 2014 (UTC)
- Also, similar edits need to be done for MediaWiki:RefToolbarLegacy.js. --hydrox (talk) 15:50, 3 April 2014 (UTC)