I have a problem that cannot be solved.
This code is great for me.
// click row opens message, unless you click delete $('.delete_message-link-js').live('click', function(e) { e.preventDefault(); }); $('.item-message').live('click', function(e){ //.item-message - tr lass window.location = $(this).find(".show_message-link").attr("href"); });
But when I change .live () to .on ()
// click row opens message, unless you click delete $('.delete_message-link-js').on('click', false ); $('.item-message').on('click', function(e){ window.location = $(this).find(".show_message-link").attr("href"); });
I have a bug in Firefox. When I click the link .delete_message-link-js in the table row, I get an error
request aborted by user
throw Components.Exception ... by user ", Cr.NS_ERROR_NOT_AVAILABLE);
But the code works in Safari.
What am I doing wrong?
Thanks and sorry for my english
source share