Commit ecbbdd13 authored by Gabriel L. Oliveira's avatar Gabriel L. Oliveira

Display document title only when necessary

parent c327009e
...@@ -268,29 +268,31 @@ $().ready(function(){\n ...@@ -268,29 +268,31 @@ $().ready(function(){\n
$("a#loading_message").show();\n $("a#loading_message").show();\n
setTimeout(checkConversion(), 1000);\n setTimeout(checkConversion(), 1000);\n
}\n }\n
switch (getPortalTypeFromContext()) {\n else {\n
case "Web Page":\n switch (getPortalTypeFromContext()) {\n
$("div.content").css({"position":"fixed", "bottom": "0px",\n case "Web Page":\n
"left": "0px", "right": "0px"});\n $("div.content").css({"position":"fixed", "bottom": "0px",\n
$("div.content").css({"top": "5em"});\n "left": "0px", "right": "0px"});\n
break;\n $("div.content").css({"top": "5em"});\n
case "Web Table":\n break;\n
$("div.content").css({"position":"fixed", "bottom": "0px",\n case "Web Table":\n
"left": "0px", "right": "0px"});\n $("div.content").css({"position":"fixed", "bottom": "0px",\n
$("div.content").css({"top": "6em"});\n "left": "0px", "right": "0px"});\n
$.getJSON("Base_getPreferencePathList", function(data){\n $("div.content").css({"top": "6em"});\n
var ungPreferencePath = data.preference;\n $.getJSON("Base_getPreferencePathList", function(data){\n
$.get(ungPreferencePath + \'/getPreferredThemeSheetEditor\', function(data){\n var ungPreferencePath = data.preference;\n
link = $("<link>");\n $.get(ungPreferencePath + \'/getPreferredThemeSheetEditor\', function(data){\n
link.attr("id", "dynamic_css");\n link = $("<link>");\n
link.attr({type: \'text/css\', rel:\'stylesheet\', href:data});\n link.attr("id", "dynamic_css");\n
$("head").append(link);\n link.attr({type: \'text/css\', rel:\'stylesheet\', href:data});\n
$("head").append(link);\n
});\n
});\n });\n
});\n break;\n
break;\n }\n
displayDocumentTitle(null);\n
}\n }\n
}\n }\n
displayDocumentTitle(null);\n
$("input#upload").click(function(event){\n $("input#upload").click(function(event){\n
event.preventDefault();\n event.preventDefault();\n
$("#upload_document").dialog("open");\n $("#upload_document").dialog("open");\n
......
2011-09-21 gabriel.oliveira
* Display document title only when necessary
2011-09-21 gabriel.oliveira 2011-09-21 gabriel.oliveira
* Improve performance when not logged in * Improve performance when not logged in
......
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