Restore project selector's auto-switch behavior

http://www.mantisbt.org/bugs/view.php?id=17489

As I'm not a jQuery expert, your opinion on whether 874de126f5291a6339109c0750fe008ca6a59002 is actually a good thing to do, is welcome.