Skip to content

Commit

Permalink
Merge pull request #1643 from Akashsah2003/latest_staging
Browse files Browse the repository at this point in the history
Changed Optional Elective to Open Elective in pre registration
  • Loading branch information
dvjsharma authored Nov 4, 2024
2 parents 18b8792 + 83f136a commit c97c5b4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
</td>
</tr>
<input type="text" name="ct" value="{{forloop.counter}}" hidden="True">
{% elif course_slot.type == "Optional Elective" %}
{% elif course_slot.type == "Open Elective" %}
{% for course in course_slot.courses.all %}
<input type="text" name='course_slot' value='{{ course_slot.id }}' hidden="True"
data-value2='{{course_slot.type}}'>
Expand Down Expand Up @@ -303,7 +303,7 @@
let unique_choices = new Set();
for (let j = 0; j < course_priority.length; j++) {
// // console.log("course_priority-" + course_slot_id , course_priority[j].value )
if ((!(course_slot_type.startsWith("Optional") && course_slot_type != "Optional Elective") && !course_slot_type.startsWith("Swayam") )&& course_priority[j].value == "NULL") {
if ((!(course_slot_type.startsWith("Open") && course_slot_type != "Open Elective") && !course_slot_type.startsWith("Swayam") )&& course_priority[j].value == "NULL") {
alert("Please select all choices for " + parseInt(i + 1) + " " + course_slot_type + " slot");
document.getElementById('register-button').style = "text-allign:center;";
return false;
Expand Down

0 comments on commit c97c5b4

Please sign in to comment.