Commit da845491 authored by Christophe Dumez's avatar Christophe Dumez

2006-06-12 chris

* added Shorted/Taller buttons to adjust tree height (asked by Aurelien)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7695 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d5342a28
......@@ -91,6 +91,7 @@ print \'\'\'\n
var isMenu = false ;\n
var menuSelObj = null ;\n
var overpopupmenu = false;\n
var curHeight = 300;\n
\n
// This script is intended for use with a minimum of Netscape 4 or IE 4.\n
if(document.getElementById) {\n
......@@ -390,6 +391,20 @@ print \'\'\'\n
document.getElementById(\'menudiv\').style.display = "none";\n
open(\'%(absURL)s/BusinessTemplate_doSvnLs?added=\'+tree.getSelectedItemId(), \'_self\');\n
}\n
\n
function treeTaller(){\n
if(curHeight < 1000){\n
curHeight += 100;\n
document.getElementById(\'MainTreeTD\').style.height = curHeight+"px";\n
}\n
}\n
\n
function treeShorter(){\n
if(curHeight > 200){\n
curHeight -= 100;\n
document.getElementById(\'MainTreeTD\').style.height = curHeight+"px";\n
}\n
}\n
</script>\n
\'\'\'% {\'btId\' : context.getId(), \'absURL\' : context.absolute_url(), \'extract\' : do_extract}\n
\n
......
......@@ -105,10 +105,12 @@ here/BusinessTemplate_doCreateJavaScriptStatus">javascript here</tal:js><br/>\n
<span tal:define="repos_url python:context.getPortalObject()[\'portal_subversion\'].info(context)[\'url\']">\n
<font color="black"><b>Repository URL :</b> <a tal:attributes="href repos_url"><b tal:content="repos_url">repository url</b>\n
</a></font>\n
</span>\n
<center><table width="100%" height="300">\n
</span><br/><br/>\n
<button type="BUTTON" onclick="treeTaller()">Taller</button>\n
<button type="BUTTON" onclick="treeShorter()">Shorter</button>\n
<center><table width="100%">\n
\t<tr>\n
\t\t<td height="300">\n
\t\t<td id="MainTreeTD" height="300px">\n
<div id="splashScreen" style="position:absolute;z-index:5;top:40%;left:35%;">\n
\t\t\t<table bgcolor="#000000" border="1" bordercolor="#000000" cellpadding="0" cellspacing="0" height="200" width="300">\n
\t\t\t\t<tr>\n
......
2006-06-12 chris
* added Shorted/Taller buttons to adjust tree height
2006-06-07 Kevin
* Check tested box if tested property is equal to 'True'.
......
0.7.9
\ No newline at end of file
0.8.0
\ No newline at end of file
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