| Akron | a4e8189 | 2020-09-18 17:07:38 +0200 | [diff] [blame^] | 1 | function 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 | }; | ||||