Event button hanlder with on function. Needs jQuery 1.7+

When a Messi dialog has buttons, the click event handler is attached from container and button. If a user makes click out of the button, the click is fired. The change attach the click event just to the button not container.