Page MenuHomePhabricator

Cite button of RefToolbar not working
Closed, InvalidPublic

Description

cite button on right side of RefToolbar is not working properly at or.wikipedia.org

Event Timeline

MKar raised the priority of this task from to Needs Triage.
MKar updated the task description. (Show Details)
MKar added subscribers: MKar, Psubhashish.

Hi @MKar.

Exact steps to reproduce are welcome, so anybody could follow without having to interpret. Currently I don't know how to also see that problem.

To find the problem, could you please open the Error Console (or whatever it is called in your browser) and reload the page that you see the problem on? If there is a problem or an error with JavaScript it should be printed in that console.
For more information please see:


If I remember correctly, RefToolbar is a gadget. User scripts and gadgets are local features and managed on wiki. Phabricator/Maniphest is used for MediaWiki, MediaWiki extensions, or server configuration. You could contact the author of the script/gadget.

If RefToolbar is a gadget, this ticket is INVALID here as this is a local wiki matter and not handled in Phabricator/Maniphest.

Aklapper changed the task status from Open to Stalled.Jan 8 2015, 12:22 PM

MKar led me through the steps on IRC and this looks a lot like T85489.

<MKar> Classing editing, please go to https://or.wikipedia.org/w/index.php?title=%E0%AC%AD%E0%AC%BE%E0%AC%B0%E0%AC%A4&action=edit&section=6
<MKar> when you click on 'cite' in the tool bar it does not load all the fields...
<MKar> Select "Cite web" from the templatesdropdown
<andre__> my Browser's error console says:
TypeError: $(...).live is not a function

So if you check the web browser's console, you see that the offending code line is:

$('#cite-date-'+CiteTB.escStr(this.shortform)+'-'+field).live('click', CiteTB.fillAccessdate);

and that line comes from

https://or.wikipedia.org/wiki/%E0%AC%AE%E0%AC%BF%E0%AC%A1%E0%AC%BC%E0%AC%BF%E0%AC%86%E0%AC%89%E0%AC%87%E0%AC%95%E0%AC%BF:RefToolbarBase.js

so that is the file you need to fix. See T85489 for how this was fixed by the Spanish Wikipedia community.

And as written in T85489: "This is why people shouldn't ignore deprecation warnings! That function was throwing up deprecation warnings for quite some time before it was removed."

The problem is solved. Thanks to Aklapper (andre__) for his valuable help through IRC.