blob: cfb96f4b1b293fe7cb7bdfff7b965269f7ea8dd7 [file] [log] [blame]
Akrona4e81892020-09-18 17:07:38 +02001function pluginit(P) {
2 P.requestMsg(
3 {
4 'action':'get',
5 'key':'QueryParam'
6 },
7 function (d) {
8 let v = d.value;
9 if (v["q"]) {
10 let e = v["q"];
11 document.getElementById("q").value=v["q"];
12 if (v["ql"]) {
13 e += " with " + v["ql"];
14 document.getElementById("ql").value=v["ql"];
15 };
16 if (v["cq"]) {
17 e += " in " + v["cq"];
18 document.getElementById("cq").value=v["cq"];
19 };
20 document.getElementById("export-query").innerText = e;
21 };
22 }
23 );
24};