Compatibility with redmine 2.6+

Properly migrate from .live to .on as described on http://api.jquery.com/live/ instead of porting a deprecated function.