Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
jalex0823 committed Nov 12, 2023
1 parent 42d4621 commit 054f5c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,10 @@ <h1>Texas Pipe & Supply IT Department SQL Server Personnel Right Assignments</h1
}

function appendPrivilege(selectId, textareaId) {
var user = document.getElementById("user").value; // Get the user's name
var selectElement = document.getElementById(selectId);
var textarea = document.getElementById(textareaId);
textarea.value += selectElement.value + '\n';
textarea.value += selectElement.value + ' ' + user + '\n'; // Append the selected value and the user's name
}

function checkAllCheckboxes() {
Expand Down

0 comments on commit 054f5c8

Please sign in to comment.