*** empty log message ***
This commit is contained in:
parent
2f6ef90968
commit
8f28715ddb
17 changed files with 279 additions and 169 deletions
38
livesupport/modules/htmlUI/var/templates/script/collector.js.tpl
Executable file
38
livesupport/modules/htmlUI/var/templates/script/collector.js.tpl
Executable file
|
@ -0,0 +1,38 @@
|
|||
{*Smarty template*}
|
||||
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
function form_submit(formname)
|
||||
{
|
||||
var href = '{/literal}{$UI_HANDLER}?act='+formname+'.removeItem{literal}';
|
||||
var n;
|
||||
|
||||
for (n=0; n < (document.forms[formname].elements.length-1); n++) {
|
||||
if (document.forms[formname].elements[n].checked) {
|
||||
href = href + '&id[]=' + document.forms[formname].elements[n].name;
|
||||
}
|
||||
}
|
||||
hpopup(href);
|
||||
}
|
||||
|
||||
function form_switchAll(formname)
|
||||
{
|
||||
var n;
|
||||
|
||||
for (n=0; n < document.forms[formname].elements.length; n++) {
|
||||
if (document.forms[formname].elements[n].type == 'checkbox') {
|
||||
document.forms[formname].elements[n].checked = document.forms[formname].elements['all'].checked;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function form_clearAll(formname)
|
||||
{
|
||||
if (confirm("{/literal}{tra 0='Are you sure to remove all Items?'}{literal}")) {
|
||||
document.forms[formname].elements['all'].checked = true;
|
||||
form_switchAll(formname);
|
||||
form_submit(formname);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
{/literal}
|
Loading…
Add table
Add a link
Reference in a new issue