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",