From c88d68192543ec75a01cbbbca554bff99af5bd84 Mon Sep 17 00:00:00 2001 From: Dipannita Dey Date: Mon, 7 Nov 2022 15:58:56 -0600 Subject: [PATCH 1/2] button disabled while ajax call is going on --- app/views/datasets/create.scala.html | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/datasets/create.scala.html b/app/views/datasets/create.scala.html index 44e7b1854..572139ec8 100644 --- a/app/views/datasets/create.scala.html +++ b/app/views/datasets/create.scala.html @@ -194,6 +194,7 @@

@Messages("create.header", Messages("dataset.title"))

$(function () { $('#createdataset').click(function () { + $('#createdataset').attr("disabled", true); var name = $('#name'); var desc = $('#description'); var spaceList = []; From f34fc641645381eab0370f937a6fa81be6d44d25 Mon Sep 17 00:00:00 2001 From: Dipannita Dey Date: Mon, 7 Nov 2022 16:01:24 -0600 Subject: [PATCH 2/2] adding to change log --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 85bd19a86..47f2c2e22 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## Unreleased + +## Fixed +- Disabled button while create dataset ajax call is still going on [#311](https://github.com/clowder-framework/clowder/issues/311) ## 1.21.0 - 2022-08-23