Modalbox with switch-case problem

Hi,
im trying to create a modalbox,
but the buttons do not action. With webix-confirm widget there is no problem(with if(confirm) statement)
here is the snippet: http://webix.com/snippet/e7b67ff8

The result value is actually a string, not a number
http://webix.com/snippet/db2f59b2

thanks