I have to agree with that. I don't like that either. 

I even didn't understand why it iterates over **all** the buttons and adds an input for each one. Shouldn't it only add the one that was clicked? I personally didn't test on IE7 (just IE8+) because I don't have it installed here.

I'll add the condition inside the method to avoid wrong calls and rename it as well.