Refactored disableSubmitButton

Resolves #955.

http://jenkins.buttonweavers.com:8080/job/buttonmen-AdmiralJota/389/