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;