Skip to content

Commit

Permalink
Bugfix: remove unused cancel-current-scan-php call
Browse files Browse the repository at this point in the history
  • Loading branch information
matt committed Aug 17, 2023
1 parent 9870ab6 commit 59344a4
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 43 deletions.
18 changes: 0 additions & 18 deletions build/admin/admin.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -456,24 +456,6 @@ var __webpack_exports__ = {};
if ($('.edac-readability').length) {
edac_readability_ajax();
}

/**
* Stop pass 1 button's on click handler
*/
$('.edacp-scan-stop-pass1-btn').click(function (e) {
postData(edac_script_vars.edacApiUrl + '/cancel-current-php-scan', {}).then(data => {
//console.log(data);
});
});

/**
* Stop pass 2 button's on click handler
*/
$('.edacp-scan-stop-pass2-btn').click(function (e) {
postData(edac_script_vars.edacApiUrl + '/cancel-current-scan', {}).then(data => {
//console.log(data);
});
});
});
})(jQuery);
const postData = async (url = "", data = {}) => {
Expand Down
Binary file modified dist/accessibility-checker.zip
Binary file not shown.
25 changes: 0 additions & 25 deletions src/admin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -495,31 +495,6 @@
}


/**
* Stop pass 1 button's on click handler
*/
$('.edacp-scan-stop-pass1-btn').click(function (e) {

postData(edac_script_vars.edacApiUrl + '/cancel-current-php-scan', {}).then((data) => {
//console.log(data);
});

});

/**
* Stop pass 2 button's on click handler
*/
$('.edacp-scan-stop-pass2-btn').click(function (e) {

postData(edac_script_vars.edacApiUrl + '/cancel-current-scan', {}).then((data) => {
//console.log(data);
});

});




});


Expand Down

0 comments on commit 59344a4

Please sign in to comment.