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 ...@@ -73,11 +73,6 @@ if "files" in context.REQUEST.keys():\n
else:\n else:\n
files=None\n files=None\n
\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 print \'\'\'<script>var tree = null;\n
var business_template;\n var business_template;\n
var is_expanded=false;\n var is_expanded=false;\n
...@@ -113,7 +108,6 @@ print \'\'\'<script>var tree = null;\n ...@@ -113,7 +108,6 @@ print \'\'\'<script>var tree = null;\n
tree.loadXML(\'tree.xml?bt_id=%s\', hideObject)\n tree.loadXML(\'tree.xml?bt_id=%s\', hideObject)\n
//tree.setOnClickHandler(clickHandler)\n //tree.setOnClickHandler(clickHandler)\n
tree.setOnClickHandler(showMenu)\n tree.setOnClickHandler(showMenu)\n
//business_template=getget(\'bt_name\')\n
}\n }\n
\n \n
function expandCollapse(){\n function expandCollapse(){\n
...@@ -342,21 +336,9 @@ document.onmousemove = getMouse;\n ...@@ -342,21 +336,9 @@ document.onmousemove = getMouse;\n
document.getElementById(\'menudiv\').style.display = "none";\n document.getElementById(\'menudiv\').style.display = "none";\n
open(\'%s/BusinessTemplate_doSvnLs?file=\'+tree.getSelectedItemId(), \'_self\');\n open(\'%s/BusinessTemplate_doSvnLs?file=\'+tree.getSelectedItemId(), \'_self\');\n
}\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 \'\'\'% (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 \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 return printed\n
...@@ -407,7 +389,6 @@ return printed\n ...@@ -407,7 +389,6 @@ return printed\n
<string>_getitem_</string> <string>_getitem_</string>
<string>files</string> <string>files</string>
<string>None</string> <string>None</string>
<string>checked</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -147,7 +147,6 @@ here/BusinessTemplate_doCreateJavaScriptStatus">javascript here</tal:js><br>\n ...@@ -147,7 +147,6 @@ here/BusinessTemplate_doCreateJavaScriptStatus">javascript here</tal:js><br>\n
\t if (ie4 || upLevel) {\n \t if (ie4 || upLevel) {\n
\t splash.style.visibility = "hidden";\n \t splash.style.visibility = "hidden";\n
}\n }\n
checkBoxes();\n
\t}\n \t}\n
doOnLoad()\n doOnLoad()\n
</script>\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