From 235f768cbb394bfbf12538b62fef12976ed7e65d Mon Sep 17 00:00:00 2001 From: Karl Lum Date: Wed, 8 Oct 2025 09:39:04 -0700 Subject: [PATCH] disable all save buttons on form submit (#7095) --- .../src/org/labkey/issue/view/updateView.jsp | 198 +++++++++--------- 1 file changed, 104 insertions(+), 94 deletions(-) diff --git a/issues/src/org/labkey/issue/view/updateView.jsp b/issues/src/org/labkey/issue/view/updateView.jsp index 7e5da595cc4..c71aea990a1 100644 --- a/issues/src/org/labkey/issue/view/updateView.jsp +++ b/issues/src/org/labkey/issue/view/updateView.jsp @@ -1,19 +1,19 @@ <% -/* - * Copyright (c) 2015-2019 LabKey Corporation - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ + /* + * Copyright (c) 2015-2019 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ %> <%@ page import="org.labkey.api.data.ColumnInfo"%> <%@ page import="org.labkey.api.data.Container"%> @@ -155,101 +155,111 @@ %> @@ -268,7 +278,7 @@ %>
- <%= button("Save").submit(true).name(bean.getAction().name()).disableOnClick(true) %> + <%= button("Save").submit(true).name(bean.getAction().name()) %> <%= button("Cancel").href(cancelURL).onClick("LABKEY.setSubmit(true);")%>
@@ -408,7 +418,7 @@
">Attach a file
- <%= button("Save").submit(true).name(String.valueOf(bean.getAction())).disableOnClick(true) %> + <%= button("Save").submit(true).name(String.valueOf(bean.getAction())) %> <%= button("Cancel").href(cancelURL).onClick("LABKEY.setSubmit(true);")%>
<% final Collection comments = issue.getCommentObjects();