atheme-legacy / iris

web irc client for the atheme platform
Other
38 stars 22 forks source link

Fixed createConfirmBox to allow prompt=0 (with initial_nick or url nick) #25

Closed spil-stuart closed 11 years ago

spil-stuart commented 11 years ago

The function createConfirmBox previously only created a submit button with no form element, and no events bound to the button. This commit fixes that by adding a form element, adding the submit button to the form, and adding a simple event bound to the button.

This allows you to do ?nick=XXXX&channels=help&prompt=0 to pass in all the parameters you need to connect.

mrflea commented 11 years ago

This was my mistake; I introduced the bug in commit e9f9874218. Sorry for the breakage and thanks for the patch.

Delphy commented 11 years ago

No problems. Glad I could help (spil-stuart is my work account :))