Update viewtopic_attach.tpl

This commit is contained in:
Roman Kelesidis 2023-12-18 08:48:44 +07:00
parent 794ad67a37
commit 330e68ac0b

View File

@ -301,6 +301,8 @@ $('#tor-filelist-btn').click(function(){
if (ajax.tor_filelist_loaded) { if (ajax.tor_filelist_loaded) {
$('#tor-fl-wrap').toggle(); $('#tor-fl-wrap').toggle();
return false; return false;
} else {
$("#tor-filelist-btn").attr("disabled", true);
} }
$('#tor-fl-wrap').show(); $('#tor-fl-wrap').show();
@ -322,6 +324,7 @@ $('#tor-filelist-btn').click(function(){
$(this).prepend('<s>'+ humn_size(size_bytes) +'</s> '); $(this).prepend('<s>'+ humn_size(size_bytes) +'</s> ');
}); });
ajax.tor_filelist_loaded = true; ajax.tor_filelist_loaded = true;
$("#tor-filelist-btn").attr("disabled", false);
}; };
$('#tor-fl-treecontrol a').click(function(){ this.blur(); }); $('#tor-fl-treecontrol a').click(function(){ this.blur(); });
return false; return false;