Bugfix for old Redmine's (Prototype-based ones).