Last modified: 2014-01-11 23:50:01 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 T51161, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 49161 - "(thank)" is shown if JS is disabled, but it's a broken link
"(thank)" is shown if JS is disabled, but it's a broken link
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Thanks (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Kunal Mehta (Legoktm)
https://en.wikipedia.org/wiki/Wikiped...
: accessibility, javascript
: 56049 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-05 00:08 UTC by PartTimeGnome
Modified: 2014-01-11 23:50 UTC (History)
7 users (show)

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


Attachments
Thanks link hidden with CSS but leaving dangling pipe (3.07 KB, image/png)
2013-08-22 05:00 UTC, Matthew Flaschen
Details

Description PartTimeGnome 2013-06-05 00:08:46 UTC
MediaWiki 1.22wmf5, Extension:Thanks 1.0.0

(This started as a discussion at https://en.wikipedia.org/wiki/Wikipedia_talk:Notifications/Thanks#JavaScript-only.3F.)

The Thanks feature currently requires JavaScript. However, the "(thank)" link is still displayed when JavaScript is disabled or the browser does not support it. The link is not functional – nothing happens upon clicking it. This can be confusing to users, and is just useless clutter without JavaScript.

Either the "(thank)" link should be hidden from non-JS users, or it should do something when clicked.

I wouldn't have thought this to be too difficult to do without JS: The link target could go to somewhere like /w/index.php?title=Special:Thanks&oldid=REVISION&token=TOKEN, which would show a message such as "Your thanks have been sent to USERNAME.". It's a little clunkier than with JavaScript since it takes you away from the history page, but it's better than a link that does nothing.
Comment 1 Ryan Kaldari 2013-06-05 01:10:11 UTC
Good catch. We'll probably just want to not show the Thank link for non-JS users.
Comment 2 Matthew Flaschen 2013-08-22 05:00:23 UTC
Created attachment 13147 [details]
Thanks link hidden with CSS but leaving dangling pipe

Hiding just the link is simple, and I'll submit a patch to do that for the interim.

The problem, as shown in the image, is there's also a pipe separator (with no good selector), added server-side by MW core.  That can't be hidden easily with CSS.

The patch (with the dangling pipe) is still probably worth merging in the interim, but the best approaches are probably either:

1. Supporting thanking without JavaScript (as suggested in the report).
2. Generate the thank link with JavaScript
Comment 3 Gerrit Notification Bot 2013-08-22 05:04:17 UTC
Change 80336 had a related patch set uploaded by Mattflaschen:
Hide thank link when there is no JavaScript

https://gerrit.wikimedia.org/r/80336
Comment 4 Matthew Flaschen 2013-08-22 05:07:26 UTC
It shows empty parentheses instead of the pipe for the diff page.
Comment 5 Ricordisamoa 2013-09-08 16:48:11 UTC
Agree with PartTimeGnome: a static non-JS link should work, as "mark as patrolled" and "watch this page" do.

Change 80336 is a provisional patch and could be avoided.
Comment 6 Gerrit Notification Bot 2013-10-16 07:39:55 UTC
Change 80336 abandoned by Mattflaschen:
Hide thank link when there is no JavaScript

Reason:
This isn't really a solution due to the dangling pipe/paren issue.

https://gerrit.wikimedia.org/r/80336
Comment 7 Bartosz Dziewoński 2013-10-23 21:17:57 UTC
*** Bug 56049 has been marked as a duplicate of this bug. ***
Comment 8 Gerrit Notification Bot 2013-10-24 01:15:34 UTC
Change 91549 had a related patch set uploaded by Legoktm:
Add Special:Thanks as a non-JS fallback

https://gerrit.wikimedia.org/r/91549
Comment 9 Gerrit Notification Bot 2013-12-19 05:43:13 UTC
Change 91549 merged by jenkins-bot:
Add Special:Thanks as a non-JS fallback

https://gerrit.wikimedia.org/r/91549

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


Navigation
Links