Commit f6c77ec3 authored by Gabriel Monnerat's avatar Gabriel Monnerat

- added javascript code to show in the favorite box, the name of the tree opened

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41167 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ec7dd9cf
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
portal_path python:website.absolute_url();\n portal_path python:website.absolute_url();\n
current_url here/absolute_url;\n current_url here/absolute_url;\n
has_editor python: current_url != portal_path;">\n has_editor python: current_url != portal_path;">\n
Starred\n <a class="domain_selected"></a>\n
<tal:block tal:condition="python: not has_editor">\n <tal:block tal:condition="python: not has_editor">\n
<a tal:attributes="href python: request.get(\'URL\') + \'?reset:int=1\'">Refresh</a>\n <a tal:attributes="href python: request.get(\'URL\') + \'?reset:int=1\'">Refresh</a>\n
</tal:block>\n </tal:block>\n
......
...@@ -49,6 +49,7 @@ function setObjectPropertyValue(method_name, value, parameter){\n ...@@ -49,6 +49,7 @@ function setObjectPropertyValue(method_name, value, parameter){\n
$(document).ready(function(){\n $(document).ready(function(){\n
$("a[name=\'document_title\']").html(getObjectPropertyValue("getTitle"));\n $("a[name=\'document_title\']").html(getObjectPropertyValue("getTitle"));\n
if ($("div.gadget-column").length == 1) {\n if ($("div.gadget-column").length == 1) {\n
$("a.domain_selected").text($("a.tree-open").text());\n
$("a.tree-open, a.tree-closed").each(function(){\n $("a.tree-open, a.tree-closed").each(function(){\n
/* XXX - Try Find a good way to the options don\'t break the css. \n /* XXX - Try Find a good way to the options don\'t break the css. \n
Insert blank spaces is not a clean way*/\n Insert blank spaces is not a clean way*/\n
......
...@@ -838,8 +838,14 @@ td.listbox-table-domain-tree-cell a {\n ...@@ -838,8 +838,14 @@ td.listbox-table-domain-tree-cell a {\n
padding-right: 125.3px;\n padding-right: 125.3px;\n
padding-top: 3px;\n padding-top: 3px;\n
}\n }\n
\n
a.tree-open {\n a.tree-open {\n
background-color: #BBCCFF;\n background-color: #BBCCFF;\n
}\n
\n
a.domain_selected {\n
float:left !important;\n
font-size: 15px !important;\n
} }
]]></string> </value> ]]></string> </value>
......
102 104
\ No newline at end of file \ 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