CC-1695 Remove Campcaster Studio and make install easier
Changing htmlUI dir structure to be better.
This commit is contained in:
parent
acda23db88
commit
c4b96da797
285 changed files with 0 additions and 0 deletions
52
htmlUI/templates/script/collector.js.tpl
Normal file
52
htmlUI/templates/script/collector.js.tpl
Normal file
|
@ -0,0 +1,52 @@
|
|||
{literal}
|
||||
<script type="text/javascript">
|
||||
|
||||
function collector_submit(formname, action, script, name, width, height)
|
||||
{
|
||||
var href = '';
|
||||
var n;
|
||||
|
||||
{/literal}
|
||||
if (!script) var script = '{$UI_HANDLER}';
|
||||
{literal}
|
||||
|
||||
for (n = 0; n < (document.forms[formname].elements.length); n++) {
|
||||
if (document.forms[formname].elements[n].checked && document.forms[formname].elements[n].name != 'all') {
|
||||
href = href + '&id[]=' + document.forms[formname].elements[n].name;
|
||||
}
|
||||
}
|
||||
|
||||
if (href == '') return false;
|
||||
|
||||
|
||||
if (action == 'delete') {
|
||||
{/literal}
|
||||
popup('{$UI_BROWSER}?popup[]=deleteItem' + href, 'deleteItem', 400, 100);
|
||||
return;
|
||||
{literal}
|
||||
}
|
||||
if (name) popup (script + '?act=' + action + href, popup, width, height);
|
||||
else hpopup(script + '?act=' + action + href);
|
||||
}
|
||||
|
||||
function collector_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 collector_clearAll(formname, action)
|
||||
{
|
||||
if (confirm("{/literal}{tra 0='Are you sure to remove all Items?'}{literal}")) {
|
||||
document.forms[formname].elements['all'].checked = true;
|
||||
collector_switchAll(formname);
|
||||
collector_submit(formname, action);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
{/literal}
|
Loading…
Add table
Add a link
Reference in a new issue