Author Topic: Selectable Archive  (Read 732 times)

0 Members and 1 Guest are viewing this topic.

Offline r][m

  • Tireless poster
  • ****
  • Posts: 347
    • View Profile
Selectable Archive
« on: March 10, 2009, 04:15:53 PM »
R][m
Quote
Selectable delete works in diff tpl, but after adding new selectable archive section, neither work.
Both work in main tpl..
Rejetto
Quote
in diff tpl? please tell me how to configure HFS to reproduce your problem.
This works in remote diff tpl
Code: [Select]
{.if|{.get|can delete.}|
<input type='hidden' name='action' value='delete'>
<input type='checkbox' onclick='var is = document.getElementsByName("selection"); for (var i=0; i < is.length; i++) is[i].checked = this.checked;'>All
<input class="button" type='submit' value='Delete' onclick='return confirm("Are you sure?")'>
 /if.}

This does not work in remote diff tpl, but does work in main tpl. I think this code is from default tpl.
Code: [Select]
{.if|{.get|can delete.}{.get|can archive.}|
<input type='checkbox' onclick='var is = document.getElementsByName("selection"); for (var i=0; i < is.length; i++) is[i].checked = this.checked;'> All
{.if|{.get|can delete.}|
<input style='margin-left:1em' type='button' value='Delete' onclick='if (confirm("Are you sure?")) submitAdding("filelist", {"action":"delete"}, "")'>.}
{.if|{.get|can archive.}|
<input style='margin-left:1em' type='button' value='Archive' onclick='if (confirm("Are you sure?")) submitAdding("filelist", {"action":"archive"}, "~folder.tar?recursive")'>.}
/if.}
« Last Edit: March 11, 2009, 05:18:21 AM by r][m »

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12946
    • View Profile
Re: Selectable Archive
« Reply #1 on: March 11, 2009, 12:25:56 PM »
please, attach the template and the diff template i should use for testing.
if you don't want them to be public you can email to support@rejetto.com