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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T24556, the corresponding Phabricator task for complete and up-to-date bug report information.
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