Skip to content

Commit

Permalink
Add Delete process title to icon
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedkrmn committed Apr 18, 2019
1 parent 1e5c3f2 commit 036bd89
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion build/FCFS.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/NP_Priority.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/NP_SJF.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/Priority.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/RR.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/SJF.js

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions src/helpers/userInterface.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,13 @@ function regenerateTable() {
if (priorityField)
tr.innerHTML = `<td>${process[0]}</td><td>${process[1]}</td><td>${
process[2]
}</td><td>${process[3]}<i class="fas fa-times right"></i></td>`;
}</td><td>${
process[3]
}<i class="fas fa-times right" title="Delete process"></i></td>`;
else
tr.innerHTML = `<td>${process[0]}</td><td>${process[1]}</td><td>${
process[2]
}<i class="fas fa-times right"></i></td>`;
}<i class="fas fa-times right" title="Delete process"></i></td>`;

tbody.appendChild(tr);
});
Expand Down Expand Up @@ -131,9 +133,9 @@ function addProcess(e) {
const tr = document.createElement("tr");

if (priorityField)
tr.innerHTML = `<td>${current_process}</td><td>${arrivalTime}</td><td>${burstTime}</td><td>${priority}<i class="fas fa-times right"></i></td>`;
tr.innerHTML = `<td>${current_process}</td><td>${arrivalTime}</td><td>${burstTime}</td><td>${priority}<i class="fas fa-times right" title="Delete process"></i></td>`;
else
tr.innerHTML = `<td>${current_process}</td><td>${arrivalTime}</td><td>${burstTime}<i class="fas fa-times right"></i></td>`;
tr.innerHTML = `<td>${current_process}</td><td>${arrivalTime}</td><td>${burstTime}<i class="fas fa-times right" title="Delete process"></i></td>`;

tbody.appendChild(tr);

Expand Down

0 comments on commit 036bd89

Please sign in to comment.