﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
24406	SelectFilter should use click events instead of href javascript functions	Rolf Jagerman	Rolf Jagerman	"SelectFilter uses javascript in an href to handle button behavior:
{{{
<a href=""javascript:function(){...}"">
}}}

This is problematic if one wishes to customize the widget, since the href javascript is executed after events are handled. It would be better to use a click event to handle this type of behavior:  
{{{
someElement.addEventListener(""click"", function() { ... } );
}}}

I have proposed a patch on github:

https://github.com/django/django/pull/4205
https://github.com/rjagerman/django/tree/ticket_24406
https://github.com/rjagerman/django/commit/e07a0be20d6da81794eaa5b64c2927cc6c70410d"	Cleanup/optimization	closed	contrib.admin	dev	Normal	fixed	admin SelectFilter javascript		Unreviewed	1	0	0	0	0	0
