joomla/joomla-platform — Issue #846: JS issue in /html/html/grid.php
Author: OctavianC
Created: 2012-02-09 09:01:46+00:00
State: open

All generated links that have href="#" and an onclick attribute should return false in the onclick attribute so that the user doesn't get forwarded to the href. This issue occurs in sort():
href="#" onclick="Joomla.tableOrdering(...)"
should be
href="#" onclick="Joomla.tableOrdering(...); return false;"

A cleaner way (in my opinion) would be for the tableOrdering() function to return false so you can use:
href="#" onclick="return Joomla.tableOrdering(...)"

This is correctly done in published()

PS: I did search for "sort" but could not find anything, I'm hoping this is not a duplicate :)