Last modified: 2013-06-18 13:42:56 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 22556 - wgAjaxWatch.setLinkText doesn't work in Vector if icon mode is not used
wgAjaxWatch.setLinkText doesn't work in Vector if icon mode is not used
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.16.x
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: ajax
  Show dependency treegraph
 
Reported: 2010-02-16 23:07 UTC by Svick
Modified: 2013-06-18 13:42 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Svick 2010-02-16 23:07:22 UTC
If I use the Vector skin and change (by user JS) the class of the element with ID "ca-watch" or "ca-unwatch", the text of the Watch/Unwatch link doesn't change when I click on it.

I think this is because Vector has additional <span> around the link text and because of this, wgAjaxWatch.setLinkText doesn't work.
Comment 1 Trevor Parscal 2010-02-16 23:16:56 UTC
You need to make a special case for the condition that the text is surrounded by a span, as this span is required so that we can make this work on all browsers. Such accommodations have already been made in scripts that add/change tabs and drop-down menus in Vector.
Comment 2 Krinkle 2012-12-16 17:03:11 UTC
wgAjaxWatch has been deprecated and removed for a while now.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links