From 8743a2137148d67592af517e3a47add5771de259 Mon Sep 17 00:00:00 2001 From: nilsding Date: Fri, 12 Dec 2014 19:05:35 +0100 Subject: [PATCH] closes Github issue #11 --- app/assets/javascripts/settings.coffee | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 app/assets/javascripts/settings.coffee diff --git a/app/assets/javascripts/settings.coffee b/app/assets/javascripts/settings.coffee new file mode 100644 index 00000000..4f6517bb --- /dev/null +++ b/app/assets/javascripts/settings.coffee @@ -0,0 +1,5 @@ +# 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' \ No newline at end of file