Last modified: 2011-07-01 23:15:32 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 T31668, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 29668 - wikilove fails on classic skin
wikilove fails on classic skin
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikiLove (Other open bugs)
unspecified
All All
: Normal major (vote)
: ---
Assigned To: Ryan Kaldari
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-07-01 12:19 UTC by Derk-Jan Hartman
Modified: 2011-07-01 23:15 UTC (History)
0 users

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


Attachments

Description Derk-Jan Hartman 2011-07-01 12:19:36 UTC
https://secure.wikimedia.org/wikipedia/en/wiki/Wikipedia:Village_pump_(technical)#Wikilove_link_not_working_in_Classic_skin

"whilst it looks ok in the default Vector skin, all I get in Classic is a badly formatted text link, which doesn't do anything when I click it (see [3] for preview)"

https://secure.wikimedia.org/wikipedia/en/w/index.php?title=User:Optimist+on+the+run&useskin=standard
Comment 1 Brion Vibber 2011-07-01 18:31:19 UTC
The JS bindings check explicitly for a link inside a tab with id ca-wikilove; this works on Vector and Monobook, but on Classic skin (in 1.17 and current SVN trunk) it ends up with a bare <a href="#">, not inside a surrounding tab. So the link is there, but isn't found by the bindings in $.wikiLove.init():

		var $wikiLoveLink = $( '#ca-wikilove' ).find( 'a' );
		$wikiLoveLink.unbind( 'click' );
		$wikiLoveLink.click( function( e ) {
			e.preventDefault();
			$.wikiLove.openDialog();
		});


Since there's no actual destination URL specified, the link is also completely useless if JavaScript is disabled, for any skin.

If a non-JavaScript behavior is not possible, the tab should either not be added in the original HTML, or it should at least be hidden by default CSS that's undone when JS is available.
Comment 2 Ryan Kaldari 2011-07-01 23:00:45 UTC
Fixed in r91320.
Comment 3 Brion Vibber 2011-07-01 23:08:02 UTC
r91320 is incomplete hardcodes a check for the old 'standard' skin and fails to apply the fixup to other legacy skins such as cologneblue.
Comment 4 Ryan Kaldari 2011-07-01 23:15:32 UTC
True. Better fix in r91323.

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


Navigation
Links