$('body').on('click','.webix_list_item',function(){
var id = $(this).attr('webix_l_id');
if($$('menu').getMenuItem(id).submenu == undefined)
{
webix.message("Click: "+$$('menu').getMenuItem(id).value);
var text = $$('menu').getMenuItem(id).value;
var url = $$('menu').getMenuItem(id).url;
var content = null;
switch(text)
{
case 'bet':
content = bet(text,url)
break;
}
//tab.refresh();
}
})
$$('menu').attachEvent('onMenuItemClick',function(id){
if(this.getMenuItem(id).submenu == undefined)
{
webix.message("Click: "+this.getMenuItem(id).value);
var text = this.getMenuItem(id).value;
var url = this.getMenuItem(id).url;
var content = null;
switch(text)
{
case 'bet':
content = bet(text,url)
break;
}
//tab.refresh();
}
})
I am using jquery click event substitute.
The second paragraph of code execution in IE8 without any reaction