Commit 2f5e44a0 authored by Riyad Preukschas's avatar Riyad Preukschas

Enable/disable from buttons on all input events (not just key events)

Fixes #1836
parent 13e72f5a
......@@ -14,7 +14,7 @@ window.disableButtonIfEmptyField = (field_selector, button_selector) ->
closest_submit.disable() if field.val() is ""
field.on "keyup", ->
field.on "input", ->
if $(@).val() is ""
closest_submit.disable()
else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment