[ticket/11956] Move dropdown handler to assets

PHPBB3-11956