Akron | cc1ff99 | 2020-09-21 10:35:43 +0200 | [diff] [blame] | 1 | "use strict"; |
| 2 | |
Akron | a4e8189 | 2020-09-18 17:07:38 +0200 | [diff] [blame] | 3 | function pluginit(P) { |
| 4 | P.requestMsg( |
| 5 | { |
| 6 | 'action':'get', |
| 7 | 'key':'QueryParam' |
| 8 | }, |
| 9 | function (d) { |
| 10 | let v = d.value; |
Akron | cc1ff99 | 2020-09-21 10:35:43 +0200 | [diff] [blame] | 11 | if (v !== undefined && v["q"]) { |
Akron | a4e8189 | 2020-09-18 17:07:38 +0200 | [diff] [blame] | 12 | 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 | }; |
Akron | b58da95 | 2020-09-21 12:03:57 +0200 | [diff] [blame] | 24 | |
| 25 | P.resize(); |
Akron | a4e8189 | 2020-09-18 17:07:38 +0200 | [diff] [blame] | 26 | } |
| 27 | ); |
| 28 | }; |