Skip to content

Commit a073246

Browse files
Merge pull request #1000 from TechnologyEnhancedLearning/Develop/Fixes/TD-5048-Disable-save-button-click-multiple-times
Td-5048: Issue showing multiple entries for service updates/releases …
2 parents c07874e + 61cc7ff commit a073246

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

AdminUI/LearningHub.Nhs.AdminUI/Views/Roadmap/Update.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<div class="go-back-header">
1616
<a href="@Url.Action("Updates", "Roadmap")">&lt; Go back</a>
1717
</div>
18-
<form style="margin-left: 24px; margin-right: 24px; max-width: 800px;" action="/Roadmap/@formAction" method="POST" enctype="multipart/form-data">
18+
<form style="margin-left: 24px; margin-right: 24px; max-width: 800px;" action="/Roadmap/@formAction" method="POST" onsubmit="btnSave.disabled = true; return true;" enctype="multipart/form-data">
1919
<input type="hidden" name="RoadmapTypeId" value="@Model.RoadmapTypeId"/>
2020
<input type="hidden" name="Id" value="@Model.Id"/>
2121
<div class="row mt-5">
@@ -99,7 +99,7 @@
9999
</div>
100100
<div class="row mt-5">
101101
<div class="col-12 d-flex justify-content-between">
102-
<button class="btn btn-custom-green">Save</button>
102+
<button class="btn btn-custom-green" id="btnSave">Save</button>
103103
@if (isNew)
104104
{
105105
<a class="btn-link-red btn btn-link" asp-action="Updates" asp-controller="Roadmap">Cancel</a>

0 commit comments

Comments
 (0)