diff options
| author | RblSb <msrblsb@gmail.com> | 2020-03-04 20:56:03 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2020-03-04 20:56:03 +0300 |
| commit | 81071b59445d702d14a80241f409fc282d509f1f (patch) | |
| tree | 6e6bdcb0860801338bb4cd033558c1c0aea28a05 /res | |
| parent | 6e28381de77265f8b6a24cdd9c583d1d27d8d7b2 (diff) | |
Template url
Diffstat (limited to 'res')
| -rw-r--r-- | res/client.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/res/client.js b/res/client.js index d603436..a500324 100644 --- a/res/client.js +++ b/res/client.js @@ -528,6 +528,12 @@ client_Buttons.init = function(main) { client_Buttons.showPlayerGroup(showCustomEmbed); return; }; + window.document.querySelector("#insert_template").onclick = function(e14) { + var input = window.document.querySelector("#mediaurl"); + input.value = main.getTemplateUrl(); + input.focus(); + return; + }; window.onresize = client_Buttons.onVideoResize; client_Buttons.initSplit(); }; @@ -1364,6 +1370,9 @@ client_Main.prototype = { this.onTimeGet = new haxe_Timer(s * 1000); this.onTimeGet.run = $bind(this,this.requestTime); } + ,getTemplateUrl: function() { + return this.config.templateUrl; + } ,escapeRegExp: function(regex) { var _this_r = new RegExp("([.*+?^${}()|[\\]\\\\])","g".split("u").join("")); return regex.replace(_this_r,"\\$1"); |
