Skip to content

Commit

Permalink
Merge pull request #950 from sparc-request/jtm_fixing_multi_submit_bug
Browse files Browse the repository at this point in the history
Jtm fixing multi submit bug
  • Loading branch information
Stuart-Johnson committed Jun 29, 2017
2 parents 9d62fad + 96e3f81 commit 3518adc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -31,6 +31,6 @@
= t(:proper)[:navigation][:save_as_draft][:body]
.modal-footer
.center-block
= link_to t(:constants)[:yes_select], save_and_exit_service_request_path, class: 'btn btn-default yes-button', data: { t(:proper)[:navigation][:bottom][:saving] }
= link_to t(:constants)[:yes_select], save_and_exit_service_request_path, class: 'btn btn-default yes-button', data: { disable_with: t(:proper)[:navigation][:bottom][:saving] }
%button.btn.btn-default{ type: 'button', data: { dismiss: 'modal' } }
= t(:constants)[:no_select]
3 changes: 2 additions & 1 deletion app/views/service_requests/navigation/_footer.html.haml
Expand Up @@ -36,7 +36,8 @@
.col-sm-3.text-right
= link_to t(:proper)[:navigation][:bottom][:submit],
confirmation_service_request_path(service_request, sub_service_request_id: sub_service_request_id),
class: 'btn btn-default form-submit-button'
class: 'btn btn-default form-submit-button',
data: {disable_with: t(:proper)[:navigation][:bottom][:submitting] }
- else
.col-sm-3.text-right
= link_to action_name == 'review' ? t(:proper)[:navigation][:bottom][:submit] : t(:proper)[:navigation][:bottom][:save_and_continue], 'javascript:void(0)', class: 'btn btn-default form-submit-button', data: { disable_with: "#{action_name == 'review' ? t(:proper)[:navigation][:bottom][:submitting] : t(:proper)[:navigation][:bottom][:saving] }" }

0 comments on commit 3518adc

Please sign in to comment.