rejetto forum

Selectable Archive

r][m · 2 · 1220

0 Members and 1 Guest are viewing this topic.

Offline r][m

  • Tireless poster
  • ****
    • Posts: 347
    • View Profile
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: 13510
    • View Profile
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