Commit 4cc02a13 authored by Gabriel Monnerat's avatar Gabriel Monnerat

fix css to Domain Tree

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41153 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 674d1243
...@@ -66,7 +66,11 @@ if uid_list is not None:\n ...@@ -66,7 +66,11 @@ if uid_list is not None:\n
object.setPublicationSection("trash")\n object.setPublicationSection("trash")\n
object.delete()\n object.delete()\n
\n \n
return context.ERP5Site_redirect(website_url, keep_items={"reset": 1})\n return context.ERP5Site_redirect(website_url + "/unfoldDomain",\n
keep_items={"domain_url": "ung_domain/all_document_list",\n
"form_id": "erp5_web_ung_layout",\n
"list_selection_name": context.REQUEST.get("list_selection_name"),\n
"domain_depth": 0})\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
...@@ -49,11 +49,20 @@ function setObjectPropertyValue(method_name, value, parameter){\n ...@@ -49,11 +49,20 @@ 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
blank_space_str = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp";\n
$("a.tree-open, a.tree-closed").each(function(){\n $("a.tree-open, a.tree-closed").each(function(){\n
if ($(this).text() != "Document by Type")\n /* XXX - Try Find a good way to the options don\'t break the css. \n
$(this).html($(this).text() + blank_space_str);\n Insert blank spaces is not a clean way*/\n
});\n if ($(this).text() == "Starred" || $(this).text() == "Hidden" || $(this).text() == "Trash"){\n
blank_space = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" + \n
"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp";\n
$(this).html($(this).text() + blank_space);\n
}\n
if ($(this).text() == "All Documents" || \n
$(this).text() == "Owned by me" || \n
$(this).text() == "Opened by me" || \n
$(this).text() == "Shared by me")\n
$(this).html($(this).text() + "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp");\n
})\n
$("body").css("overflow", "hidden");\n $("body").css("overflow", "hidden");\n
navigation_html = $("div.listbox-footer div.listbox-page-navigation").html();\n navigation_html = $("div.listbox-footer div.listbox-page-navigation").html();\n
$("div.listbox-footer div.listbox-page-navigation").remove();\n $("div.listbox-footer div.listbox-page-navigation").remove();\n
......
...@@ -835,7 +835,7 @@ table.listbox-table-domain-tree {\n ...@@ -835,7 +835,7 @@ table.listbox-table-domain-tree {\n
\n \n
td.listbox-table-domain-tree-cell a {\n td.listbox-table-domain-tree-cell a {\n
padding-bottom: 3px;\n padding-bottom: 3px;\n
padding-right: 125.5px;\n padding-right: 125.3px;\n
padding-top: 3px;\n padding-top: 3px;\n
}\n }\n
a.tree-open {\n a.tree-open {\n
......
100 101
\ 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