Author Topic: Question: how to disable Get List button and Files checkboxes  (Read 1750 times)

0 Members and 1 Guest are viewing this topic.

Offline easyspot

  • Occasional poster
  • *
  • Posts: 2
    • 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: 12904
    • View Profile
Re: Question: how to disable Get List button and Files checkboxes
« Reply #1 on: July 17, 2016, 02:36:49 PM »
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: 2
    • View Profile
Re: Question: how to disable Get List button and Files checkboxes
« Reply #2 on: July 18, 2016, 01:46:05 PM »
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: 12904
    • View Profile
Re: Question: how to disable Get List button and Files checkboxes
« Reply #3 on: July 30, 2016, 01:40:45 PM »
sorry for the late reply. Try this instead
$('#actions a:last').remove()