This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new d627a70e Replace deprecated click(function) calls
d627a70e is described below

commit d627a70e92ea420b4133949cf08279543a8efe2b
Author: Sebb <[email protected]>
AuthorDate: Tue Dec 6 23:32:42 2022 +0000

    Replace deprecated click(function) calls
---
 www/secretary/workbench/public/tasklist.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/secretary/workbench/public/tasklist.js 
b/www/secretary/workbench/public/tasklist.js
index a339c7e3..fb473228 100644
--- a/www/secretary/workbench/public/tasklist.js
+++ b/www/secretary/workbench/public/tasklist.js
@@ -101,7 +101,7 @@ function nexttask(proceed) {
 };
 
 // start the process when the proceed button is clicked
-$('button#proceed').click(function(event) {
+$('button#proceed').on('click', function(event) {
   if (tasks.length) {
     $('h1').removeClass('bg-warning').addClass('bg-info').
       text('Request Status');
@@ -114,7 +114,7 @@ $('button#proceed').click(function(event) {
 });
 
 // end the process when the cancel button is clicked
-$('button#cancel').click(function(event) {
+$('button#cancel').on('click', function(event) {
   $(this).prop('disabled', true);
   $('button#proceed').prop('disabled', true);
   message = {status: 'cancelled'};

Reply via email to