From 330e68ac0b0e343133e5bc05590aba5e6ece6740 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Mon, 18 Dec 2023 08:48:44 +0700 Subject: [PATCH] Update viewtopic_attach.tpl --- styles/templates/default/viewtopic_attach.tpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/styles/templates/default/viewtopic_attach.tpl b/styles/templates/default/viewtopic_attach.tpl index 1088afa0..00306e5f 100644 --- a/styles/templates/default/viewtopic_attach.tpl +++ b/styles/templates/default/viewtopic_attach.tpl @@ -301,6 +301,8 @@ $('#tor-filelist-btn').click(function(){ if (ajax.tor_filelist_loaded) { $('#tor-fl-wrap').toggle(); return false; + } else { + $("#tor-filelist-btn").attr("disabled", true); } $('#tor-fl-wrap').show(); @@ -322,6 +324,7 @@ $('#tor-filelist-btn').click(function(){ $(this).prepend(''+ humn_size(size_bytes) +' '); }); ajax.tor_filelist_loaded = true; + $("#tor-filelist-btn").attr("disabled", false); }; $('#tor-fl-treecontrol a').click(function(){ this.blur(); }); return false;