From a56d810e0574e6ef10ee63637d7bdf9081cecafa Mon Sep 17 00:00:00 2001 From: Kumar Priyansh Date: Mon, 3 Jun 2019 05:29:48 +0530 Subject: Changed Dashboard JS to display a single product. This loads a custom URL for a single product but however does not display the required information till now. The next changes will contain the necessary additions. --- shared/Dashboard.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'shared') diff --git a/shared/Dashboard.js b/shared/Dashboard.js index 2bec588..c995df8 100644 --- a/shared/Dashboard.js +++ b/shared/Dashboard.js @@ -40,7 +40,9 @@ $(document).ready(function(){ loadAllProducts() } function loadProduct (productid) { - console.log(productid) + $.getJSON("../products.json", function(result){ + $('#loader').append('

Title

  • Point 1
  • Point 2
  • Point 3
  • Point 4

$17.99

') + }) } function showErrorDiv() { -- cgit v1.2.3