diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2014-09-03 15:13:26 +0400 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2014-09-11 21:48:02 +0400 |
commit | 233d89a9e7516bf85f391300067226207935917e (patch) | |
tree | ef91d7c7508094f99b61f0e06e3c6912a3d6470c /app/views/projects/blob/_remove.html.haml | |
parent | 6c9cb565f16a006df7c980eadcd7061edb7b9281 (diff) |
Disable buttons if required forms are empty
Diffstat (limited to 'app/views/projects/blob/_remove.html.haml')
-rw-r--r-- | app/views/projects/blob/_remove.html.haml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/projects/blob/_remove.html.haml b/app/views/projects/blob/_remove.html.haml index 692248dd233..93ffd4463b1 100644 --- a/app/views/projects/blob/_remove.html.haml +++ b/app/views/projects/blob/_remove.html.haml @@ -19,5 +19,8 @@ .form-group .col-sm-2 .col-sm-10 - = submit_tag 'Remove file', class: 'btn btn-remove' + = submit_tag 'Remove file', class: 'btn btn-remove btn-remove-file' = link_to "Cancel", '#', class: "btn btn-cancel", "data-dismiss" => "modal" + +:javascript + disableButtonIfEmptyField('#commit_message', '.btn-remove-file') |