Retrospring/app/assets/javascripts/settings.coffee

5 lines
216 B
CoffeeScript
Raw Normal View History

2014-12-12 10:05:35 -08:00
# see GitHub issue #11
($ document).on "submit", "form#edit_user", (evt) ->
if ($ "input#user_current_password").val().length == 0
evt.preventDefault()
$("button[data-target=#modal-passwd]").trigger 'click'