blob: fbada53dc958c88d5629f864698778de225f9d8a [file] [log] [blame]
Akroncc1ff992020-09-21 10:35:43 +02001"use strict";
2
Akrona4e81892020-09-18 17:07:38 +02003function pluginit(P) {
4 P.requestMsg(
5 {
6 'action':'get',
7 'key':'QueryParam'
8 },
9 function (d) {
10 let v = d.value;
Akroncc1ff992020-09-21 10:35:43 +020011 if (v !== undefined && v["q"]) {
Akrona4e81892020-09-18 17:07:38 +020012 let e = v["q"];
13 document.getElementById("q").value=v["q"];
14 if (v["ql"]) {
15 e += " with " + v["ql"];
16 document.getElementById("ql").value=v["ql"];
17 };
18 if (v["cq"]) {
19 e += " in " + v["cq"];
20 document.getElementById("cq").value=v["cq"];
21 };
22 document.getElementById("export-query").innerText = e;
23 };
24 }
25 );
26};