rejetto forum

Question: how to disable Get List button and Files checkboxes

0 Members and 1 Guest are viewing this topic.

Offline easyspot

  • Occasional poster
  • *
    • Posts: 14
    • View Profile
Hi I'm new in HFS. I'm using stock template and I would like to disable Get List button and disable Files checkboxes.
Is there any way to set upload box max width? Because if we select long file name, then the box will go so wide overlap file list and hard to press Upload Button. Any help? Thanks.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
welcome!
as i always say: best way is to NOT edit the template, so you will keep getting updates, but ADD some instructions that will customize your experience.
Instructions:
1) go to HFS, virtual file system
2) right click on the home/root
3) properties
4) diff template
5) past this text

Code: [Select]
[+]
<script>
$('#actions button:last').remove()
$('#files :checkbox').remove()
</script>

6) ok

be sure you are using the latest HFS version


Offline easyspot

  • Occasional poster
  • *
    • Posts: 14
    • View Profile
Thanks for excellent reply. Tested n result is:
$('#actions button:last').remove() ==> Archive button removed, not the Get List button.
$('#files :checkbox').remove() ==> Checkbox really removed.
Already using latest HFS with default template (untouched and no TPL file in HFS folder).
Any other script I can try to remove Get List button?
I have over 30000 small files to share so a pressed Get List Button at root really waste my cpu resources.
Btw HFS is really nice app. Donated thru Paypal. Thanks.
« Last Edit: July 19, 2016, 03:47:54 PM by easyspot »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
sorry for the late reply. Try this instead
$('#actions a:last').remove()


Offline Wg816

  • Occasional poster
  • *
    • Posts: 4
    • View Profile
sorry for the late reply. Try this instead
$('#actions a:last').remove()

Why is it when you remove the "get list" button, then the upload progress bar stops working?