Commit 9eceaf13 authored by Christophe Dumez's avatar Christophe Dumez

code clean up

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6821 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5bd4f354
......@@ -73,11 +73,6 @@ if "files" in context.REQUEST.keys():\n
else:\n
files=None\n
\n
if "checked" in context.REQUEST.keys():\n
checked = context.REQUEST["checked"]\n
else:\n
checked=files\n
\n
print \'\'\'<script>var tree = null;\n
var business_template;\n
var is_expanded=false;\n
......@@ -113,7 +108,6 @@ print \'\'\'<script>var tree = null;\n
tree.loadXML(\'tree.xml?bt_id=%s\', hideObject)\n
//tree.setOnClickHandler(clickHandler)\n
tree.setOnClickHandler(showMenu)\n
//business_template=getget(\'bt_name\')\n
}\n
\n
function expandCollapse(){\n
......@@ -342,21 +336,9 @@ document.onmousemove = getMouse;\n
document.getElementById(\'menudiv\').style.display = "none";\n
open(\'%s/BusinessTemplate_doSvnLs?file=\'+tree.getSelectedItemId(), \'_self\');\n
}\n
\n
</script>\n
\'\'\'% (context.getId(), context.absolute_url(), context.absolute_url(), context.absolute_url(), context.absolute_url(), context.absolute_url(), context.absolute_url(), context.absolute_url(), context.absolute_url())\n
\n
if checked:\n
print \'\'\'\n
function checkBoxes(){\n
files_array=\\\'%s\\\'.split(\',\')\n
for(i=0;i<files_array.length;++i){\n
tree.setCheck(files_array[i], 1);\n
}\n
}\'\'\'%checked\n
else:\n
print \'function checkBoxes(){}\'\n
print \'</script>\'\n
\n
return printed\n
......@@ -407,7 +389,6 @@ return printed\n
<string>_getitem_</string>
<string>files</string>
<string>None</string>
<string>checked</string>
</tuple>
</value>
</item>
......
......@@ -147,7 +147,6 @@ here/BusinessTemplate_doCreateJavaScriptStatus">javascript here</tal:js><br>\n
\t if (ie4 || upLevel) {\n
\t splash.style.visibility = "hidden";\n
}\n
checkBoxes();\n
\t}\n
doOnLoad()\n
</script>\n
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment