Skip to content
This repository has been archived by the owner on Feb 23, 2022. It is now read-only.

Commit

Permalink
some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jessica D committed Feb 12, 2020
1 parent 4a2b0fd commit 207c69b
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions pivot/static/pivot/js/main.js
Expand Up @@ -298,23 +298,12 @@ function addStudents(queryStr) {
}
}

console.log(invalidCodes)

if (invalidCodes.length > 0) {
// ToDo: The following code is not working

// $(".no-results-warning").css("display","inline");
// var source = $("#no-results").html();
// var template = Handlebars.compile(source);
// var search_key = invalidCodes.join(", ");
// $(".no-results-warning").html(template({search: search_key}));
// ToDo: Show warning when user entered invalid major codes in url
}

var selectedMajors = '[' + validCodes.join(',') + ']';

// majorParam = majorParam.map(i => '"' + i.trim() + '"');
// var selectedMajors = '[' + majorParam.join(',') + ']';
console.log(selectedMajors)
sessionStorage.setItem("majors", selectedMajors);
}

Expand Down

0 comments on commit 207c69b

Please sign in to comment.