From 47c27186eae032041b00406b7b1fff722246e93c Mon Sep 17 00:00:00 2001 From: kiki Date: Tue, 2 Jun 2020 22:41:40 +0200 Subject: [PATCH] url singola scheda --- software_export/js/main.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/software_export/js/main.js b/software_export/js/main.js index 6bd3b72..8b72d08 100644 --- a/software_export/js/main.js +++ b/software_export/js/main.js @@ -470,3 +470,18 @@ function scriviQuanti() { quanti = quanti.length; $("#quanti").append(quanti); }; + +$(function() { + url_mercato(); + +}); + +function url_mercato() { + var url = window.location.href; + url = url.replace("http://0.0.0.0:8000/#", "") + console.log(url); + $("#search").attr("value", url); + $("#search").keyup(); +}); +scriviQuanti(); +}