aboutsummaryrefslogtreecommitdiffstats
path: root/res/client.js
diff options
context:
space:
mode:
Diffstat (limited to 'res/client.js')
-rw-r--r--res/client.js9
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");
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage