mirror of
https://github.com/itflow-org/itflow
synced 2026-03-03 20:34:51 +00:00
Tidy
- Move some scripts to their own js files - Move some duplicate code blocks to functions - General tidy & spacing cleanups (#538)
This commit is contained in:
9
js/client_delete_confirm.js
Normal file
9
js/client_delete_confirm.js
Normal file
@@ -0,0 +1,9 @@
|
||||
// Force the user to correctly type the client name to be deleted before activating the button to delete a client
|
||||
function validateClientNameDelete(client_id) {
|
||||
if (document.getElementById("clientNameProvided" + client_id).value === document.getElementById("clientName" + client_id).value) {
|
||||
document.getElementById("clientDeleteButton" + client_id).className = "btn btn-danger btn-lg px-5";
|
||||
}
|
||||
else{
|
||||
document.getElementById("clientDeleteButton" + client_id).className = "btn btn-danger btn-lg px-5 disabled";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user