Skip to content

Commit

Permalink
Added error message box when no movies selected prior to prediction
Browse files Browse the repository at this point in the history
  • Loading branch information
rishi2019194 committed Oct 8, 2023
1 parent 8c31b70 commit 9cee30d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Code/recommenderapp/templates/landing_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,9 @@ <h1>Thanks!! Your response was stored.</h1>
$("#predictedMovies").empty();

// if movies list empty then throw an error box saying select atleast 1 movie!!
if(movie_list.length == 0){
alert("Select atleast 1 movie!!")
}

$.ajax({
type: "POST",
Expand Down

0 comments on commit 9cee30d

Please sign in to comment.