aboutsummaryrefslogtreecommitdiffstats
path: root/res/client.js
diff options
context:
space:
mode:
Diffstat (limited to 'res/client.js')
-rw-r--r--res/client.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/res/client.js b/res/client.js
index 92ad1c7..32780ac 100644
--- a/res/client.js
+++ b/res/client.js
@@ -712,7 +712,15 @@ client_Buttons.init = function(main) {
var value = mediaUrl.value;
var isRawSingleVideo = value != "" && main.isRawPlayerLink(value) && main.isSingleVideoLink(value);
window.document.querySelector("#mediatitleblock").style.display = isRawSingleVideo ? "" : "none";
- return window.document.querySelector("#subsurlblock").style.display = isRawSingleVideo ? "" : "none";
+ window.document.querySelector("#subsurlblock").style.display = isRawSingleVideo ? "" : "none";
+ var panel = window.document.querySelector("#addfromurl");
+ var oldH = panel.style.height;
+ panel.style.height = "";
+ var newH = client_Buttons.outerHeight(panel) + "px";
+ panel.style.height = oldH;
+ return haxe_Timer.delay(function() {
+ panel.style.height = newH;
+ },0);
};
mediaUrl.onfocus = mediaUrl.oninput;
window.document.querySelector("#insert_template").onclick = function(e) {
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage