From 0eb4023b74cf4ced91f3d4a894bebb8e8930dcf4 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Tue, 19 Apr 2022 11:25:05 +0800 Subject: [PATCH] * Fix bug#13863. --- module/block/view/todoblock.html.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/module/block/view/todoblock.html.php b/module/block/view/todoblock.html.php index 2c55aa2355..070cea49f2 100644 --- a/module/block/view/todoblock.html.php +++ b/module/block/view/todoblock.html.php @@ -83,7 +83,7 @@ if(!$selfCall) die(include('./todolist.html.php'));
- save, "onclick='ajaxCreateTodo(this)'", "btn btn-primary btn-wide");?> + save, "onclick='ajaxCreateTodo(this)'", "btn btn-primary btn-wide commitButton");?>
@@ -182,6 +182,9 @@ if(!$selfCall) die(include('./todolist.html.php')); setTimeout('clearError()', 2000) return false; } + + $('.commitButton').addClass('disabled'); + $.ajax( { type: "POST",