This commit is contained in:
Your Name 2020-06-02 22:56:08 +02:00
commit b4c6c77dca
2 changed files with 29 additions and 0 deletions

View file

@ -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>

View file

@ -470,3 +470,17 @@ 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();
};