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

clean up javascript and css code to UNG Menu

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42005 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2499888f
...@@ -39,6 +39,13 @@ function getWebEditorName(){\n ...@@ -39,6 +39,13 @@ function getWebEditorName(){\n
return currentUrlSplitted[currentUrlSplitted.length-1];\n return currentUrlSplitted[currentUrlSplitted.length-1];\n
}\n }\n
\n \n
function createBlankSpace(amount){\n
blankSpaceStr = "";\n
for (var n=1; n < amount; n++)\n
blankSpaceStr += "&nbsp;";\n
return blankSpaceStr; \n
}\n
\n
function getUrlParameterList(){\n function getUrlParameterList(){\n
var argumentList = {};\n var argumentList = {};\n
resultList = window.location.href.split("?")[1].split("&");\n resultList = window.location.href.split("?")[1].split("&");\n
...@@ -141,19 +148,16 @@ $(document).ready(function(){\n ...@@ -141,19 +148,16 @@ $(document).ready(function(){\n
});\n });\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.domain_selected").text($("a.tree-open").text());\n
$("tbody tr td.listbox-table-domain-tree-cell a").each(function(){\n
if ($(this).text().length == 16){\n
$(this).css("padding-right", "101px")\n
}\n
});\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 if ($(this).text() == "Starred" || $(this).text() == "Hidden")\n
Insert blank spaces is not a clean way*/\n $(this).html($(this).text() + createBlankSpace(11));\n
if ($(this).text() == "Starred" || $(this).text() == "Hidden" || $(this).text() == "Trash"){\n if ($(this).text() == "Trash")\n
var blank_space = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" + \n $(this).html($(this).text() + createBlankSpace(13));\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 })\n
$("body").css("overflow", "hidden");\n $("body").css("overflow", "hidden");\n
var navigation_html = $("div.listbox-footer div.listbox-page-navigation").html();\n var navigation_html = $("div.listbox-footer div.listbox-page-navigation").html();\n
...@@ -365,6 +369,9 @@ $(document).ready(function(){\n ...@@ -365,6 +369,9 @@ $(document).ready(function(){\n
});\n });\n
}\n }\n
});\n });\n
$("a#add_gadget").click(function(event){\n
event.preventDefault();\n
});\n
return false;\n return false;\n
}); });
......
...@@ -107,7 +107,7 @@ div.share-action-area {\n ...@@ -107,7 +107,7 @@ div.share-action-area {\n
/* Main classes */\n /* Main classes */\n
\n \n
div.main-right {\n div.main-right {\n
width:80%;\n width:82%;\n
float:right;\n float:right;\n
border-left: 4px solid #BBCCFF;\n border-left: 4px solid #BBCCFF;\n
}\n }\n
...@@ -135,10 +135,10 @@ div.gadget-column div.gadget-container {\n ...@@ -135,10 +135,10 @@ div.gadget-column div.gadget-container {\n
background-color:#FFFFFF;\n background-color:#FFFFFF;\n
margin-top:9px;\n margin-top:9px;\n
text-align:left;\n text-align:left;\n
font-size: 14px;\n
}\n }\n
\n \n
div.gadget-column div.file-selection {\n div.gadget-column div.file-selection {\n
width:100%;\n
background-color:#fff;\n background-color:#fff;\n
padding-right:190px;\n padding-right:190px;\n
margin:15px -4px -4px;\n margin:15px -4px -4px;\n
...@@ -149,7 +149,7 @@ div.gadget-column div.file-selection div.file-quick-browser,\n ...@@ -149,7 +149,7 @@ div.gadget-column div.file-selection div.file-quick-browser,\n
padding-top: 5px;\n padding-top: 5px;\n
padding-bottom: 5px;\n padding-bottom: 5px;\n
border-bottom: 1px solid #DDD;\n border-bottom: 1px solid #DDD;\n
width:15.7em;\n width:14.3em;\n
}\n }\n
\n \n
div.quick-search-item, td.listbox-table-domain-tree-cell a {\n div.quick-search-item, td.listbox-table-domain-tree-cell a {\n
...@@ -185,7 +185,7 @@ fieldset.bottom {\n ...@@ -185,7 +185,7 @@ fieldset.bottom {\n
\n \n
div.listbox-content table.listbox tbody tr td {\n div.listbox-content table.listbox tbody tr td {\n
vertical-align: middle;\n vertical-align: middle;\n
padding:2px;\n padding:2.2px;\n
}\n }\n
\n \n
div.listbox-content tr {\n div.listbox-content tr {\n
...@@ -335,7 +335,7 @@ div.header-right {\n ...@@ -335,7 +335,7 @@ div.header-right {\n
}\n }\n
\n \n
div.main-left, div.main-right, div.main {\n div.main-left, div.main-right, div.main {\n
margin-top: -0.5em;\n margin-top: -1em;\n
height:45em;\n height:45em;\n
}\n }\n
\n \n
...@@ -376,7 +376,7 @@ a.ung_docs img {\n ...@@ -376,7 +376,7 @@ a.ung_docs img {\n
\n \n
div.main-left {\n div.main-left {\n
margin-left:-4px;\n margin-left:-4px;\n
width: 20%;\n width: 18%;\n
float:left;\n float:left;\n
background-color: #DAE6F6;\n background-color: #DAE6F6;\n
height:4em;\n height:4em;\n
...@@ -923,6 +923,9 @@ div.header-right fieldset.widget {\n ...@@ -923,6 +923,9 @@ div.header-right fieldset.widget {\n
div.header-right fieldset.widget a#sharing_url {\n div.header-right fieldset.widget a#sharing_url {\n
padding-top: 2px;\n padding-top: 2px;\n
font-size: 11px;\n font-size: 11px;\n
}\n
div.gadget-column div.gadget-container a {\n
padding-left: 16px;\n
} }
]]></string> </value> ]]></string> </value>
......
147 148
\ 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