aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKumar Priyansh <[email protected]>2019-06-03 05:49:12 +0530
committerKumar Priyansh <[email protected]>2019-06-03 05:49:12 +0530
commit421d30ef510f428f2971687395e2f922bf333ae3 (patch)
tree9eb72d10b349fe17438d3e72931c5ace67f00491
parent5f92a5f8ca47554f22ef1ad44de3cbffc6793130 (diff)
downloadfirebase-ecommerce-421d30ef510f428f2971687395e2f922bf333ae3.tar.xz
firebase-ecommerce-421d30ef510f428f2971687395e2f922bf333ae3.zip
Added Error on Wrong Product ID in URL
-rw-r--r--shared/Dashboard.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared/Dashboard.js b/shared/Dashboard.js
index 34ab101..6b9990f 100644
--- a/shared/Dashboard.js
+++ b/shared/Dashboard.js
@@ -50,7 +50,7 @@ $(document).ready(function(){
})
}
function showErrorDiv() {
-
+ $('#loader').append('<h1>This product does not exist.</h1><p>Click <a href="../dashboard">here</a> to go home</p>');
}
function loadAllProducts() {
$.getJSON("../products.json", function(result){