Empty selection

See #731
@wangguan59 looks good to me, could you merge it?
Would push to the central server tomorrow morning! :)

By the way, similar changes would work on other pages--keep it in mind for the future!