rails/jquery-ujs — pull request #365 by paulozoom (2014-03-05 18:15:15+00:00)
Title: Add :enabled to disableSelector

When $.rails.disableForm(form) is called twice in a row, the second execution makes [data-disable-with] inputs lose their original `val()` or `html()`, which the first execution stored in [data-ujs:enable-with].

Adding `:enabled`to the `disableSelector` prevents this.