From 9cee30d4d7a72e9d3611ad49d3a16df33d92ce37 Mon Sep 17 00:00:00 2001 From: rishi2019194 <58341663+rishi2019194@users.noreply.github.com> Date: Sun, 8 Oct 2023 15:18:55 -0400 Subject: [PATCH] Added error message box when no movies selected prior to prediction --- Code/recommenderapp/templates/landing_page.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Code/recommenderapp/templates/landing_page.html b/Code/recommenderapp/templates/landing_page.html index 856f7ad28..6d43c834a 100644 --- a/Code/recommenderapp/templates/landing_page.html +++ b/Code/recommenderapp/templates/landing_page.html @@ -252,6 +252,9 @@

Thanks!! Your response was stored.

$("#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",