![]() | This edit request has been answered. Set the |answered= 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)
![]() | This edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
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)
{{edit protected}}
template. I object. I've used the RefToolbar to intentionally insert stuff into the edit summary and this would prevent that (well, it would add an extra step of me having to add it to the edit box and then cut and paste). — {{U|Technical 13}} (t • e • c) 16:28, 3 April 2014 (UTC)![]() | This edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
Please change the line (about 20 lines down)
$('#reftoolbar-button').live('click', function() { easyCiteMain(); });
to
$(document).on('click', '#reftoolbar-button', function() { easyCiteMain(); });
This is because the live()
function has been removed, and no longer works. Thanks, — This, that and the other (talk) 05:03, 31 December 2014 (UTC)
![]() | This edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
At lvwiki (we're using the same version of code as enwiki) I get such error: TypeError: document.getElementById(...).childNodes[0].childNodes[1] is undefined
. I'm almost sure that it is related to this script. OK, it doesn't break the Reftoolbar here, but I suppose it would be good to fix it. Or at least tell me, what I should change @lvwiki :) --Edgars2007 (talk/contribs) 06:52, 8 October 2015 (UTC)
And there is probably a typo in the code. At function citeJournal()
there is <legend>Cite book source</legend>
, but there should be <legend>Cite journal source</legend>
. --Edgars2007 (talk/contribs) 07:06, 8 October 2015 (UTC)