blob: 8d234e8913001d282378892771d156e3a37a7fe3 [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 };
Akronb58da952020-09-21 12:03:57 +020024
25 P.resize();
Akrona4e81892020-09-18 17:07:38 +020026 }
27 );
28};