Browse Source

search su url

kiki 3 years ago
parent
commit
44d7e8763b
2 changed files with 16 additions and 2 deletions
  1. 15 0
      index.html
  2. 1 2
      software_export/js/main.js

+ 15 - 0
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();
+         };
     </script>
 </body>
 

+ 1 - 2
software_export/js/main.js

@@ -482,6 +482,5 @@ function url_mercato() {
   console.log(url);
   $("#search").attr("value", url);
   $("#search").keyup();
-});
 scriviQuanti();
-}
+};