Fix modalBox click handler to respect disabled state

Review Request #5816 — Created May 13, 2014 and submitted — Latest diff uploaded

Information

Djblets
master
2ba9e20...

Reviewers

The button's click event used to fire in a modalbox and destroy it, even when the button is disabled.
I added a check that the button is enabled before firing the default click event in a modalbox.

1- click the button when it is disabled, the modalbox stays and doesn't get distroyed
2- select a file, click upload button, click event fires normally