From 44d7e8763b7ce8d399c46fdbc72a25ebd9da50b3 Mon Sep 17 00:00:00 2001 From: kiki Date: Tue, 2 Jun 2020 22:53:18 +0200 Subject: [PATCH] search su url --- index.html | 15 +++++++++++++++ software_export/js/main.js | 3 +-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 804e03d..447dd99 100644 --- a/index.html +++ b/index.html @@ -128,7 +128,22 @@ function exportCsvP(){ console.log("click"); }; + $(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); + setTimeout(() => { + $("#search").keyup(); + }, 10) + + scriviQuanti(); + }; diff --git a/software_export/js/main.js b/software_export/js/main.js index 8b72d08..ffa4c1f 100644 --- a/software_export/js/main.js +++ b/software_export/js/main.js @@ -482,6 +482,5 @@ function url_mercato() { console.log(url); $("#search").attr("value", url); $("#search").keyup(); -}); scriviQuanti(); -} +};