diff --git a/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_header_html.xml b/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_header_html.xml index 7d5b506e6af1410e054e1e71814377e45effd10a..5727eaaf3d90cea7a4f4ac2831e3408848f1a885 100644 --- a/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_header_html.xml +++ b/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_header_html.xml @@ -141,7 +141,7 @@ <body>\n \n <!-- data-position="fixed" -->\n - <div data-role="header"data-theme="a" class="custom-headroom-header ui-header ui-bar-a">\n + <div data-role="header" data-theme="a" class="custom-headroom-header ui-header ui-bar-a" data-position="fixed">\n \n <div class="ui-controlgroup ui-controlgroup-horizontal ui-btn-left">\n <div class="ui-controlgroup-controls">\n @@ -310,7 +310,7 @@ </item> <item> <key> <string>serial</string> </key> - <value> <string>937.58644.46215.53674</string> </value> + <value> <string>937.65430.11917.20872</string> </value> </item> <item> <key> <string>state</string> </key> @@ -328,7 +328,7 @@ </tuple> <state> <tuple> - <float>1412241646.76</float> + <float>1412326537.12</float> <string>GMT</string> </tuple> </state> diff --git a/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_js.xml b/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_js.xml index b20fc816036f1bc65803e7b12670fd0e91660193..eb9c2efd4c614fd776eef2b66b43ec757e5bfc29 100644 --- a/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_js.xml +++ b/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_js.xml @@ -372,13 +372,18 @@ if (main_gadget !== undefined) {\n return main_gadget.getElement()\n .push(function (fragment) {\n - var element = gadget.props.article;\n -\n + var element = gadget.props.article,\n + hack = document.createElement("div");\n + // XXX Horrible temporary hack to get the header fixed and content not hidden behind it...\n + hack.innerHTML = "<p><br/><br/><br/></p>";\n + // Go to the top of the page\n + window.scrollTo(0, 0);\n // Clear first to DOM, append after to reduce flickering/manip\n while (element.firstChild) {\n element.removeChild(element.firstChild);\n }\n - element.appendChild(fragment);\n + hack.appendChild(fragment);\n + element.appendChild(hack);\n $(element).trigger("create");\n return header_gadget.notifyLoaded();\n });\n