Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Laurent S
erp5
Commits
5402bd2b
Commit
5402bd2b
authored
Oct 03, 2014
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keep header in a fixed position.
It is not necessary to say that a cleaner solution is needed...
parent
2b15810c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_header_html.xml
...plateItem/web_page_module/rjs_gadget_erp5_header_html.xml
+3
-3
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_js.xml
...i/PathTemplateItem/web_page_module/rjs_gadget_erp5_js.xml
+8
-3
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_header_html.xml
View file @
5402bd2b
...
@@ -141,7 +141,7 @@
...
@@ -141,7 +141,7 @@
<body>
\n
<body>
\n
\n
\n
<!-- data-position="fixed" -->
\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
\n
<div
class=
"ui-controlgroup ui-controlgroup-horizontal ui-btn-left"
>
\n
<div
class=
"ui-controlgroup ui-controlgroup-horizontal ui-btn-left"
>
\n
<div
class=
"ui-controlgroup-controls"
>
\n
<div
class=
"ui-controlgroup-controls"
>
\n
...
@@ -310,7 +310,7 @@
...
@@ -310,7 +310,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
937.
58644.46215.53674
</string>
</value>
<value>
<string>
937.
65430.11917.20872
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -328,7 +328,7 @@
...
@@ -328,7 +328,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1412
241646.76
</float>
<float>
1412
326537.12
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_js.xml
View file @
5402bd2b
...
@@ -372,13 +372,18 @@
...
@@ -372,13 +372,18 @@
if (main_gadget !== undefined) {\n
if (main_gadget !== undefined) {\n
return main_gadget.getElement()\n
return main_gadget.getElement()\n
.push(function (fragment) {\n
.push(function (fragment) {\n
var element = gadget.props.article;\n
var element = gadget.props.article,\n
\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
// Clear first to DOM, append after to reduce flickering/manip\n
while (element.firstChild) {\n
while (element.firstChild) {\n
element.removeChild(element.firstChild);\n
element.removeChild(element.firstChild);\n
}\n
}\n
element.appendChild(fragment);\n
hack.appendChild(fragment);\n
element.appendChild(hack);\n
$(element).trigger("create");\n
$(element).trigger("create");\n
return header_gadget.notifyLoaded();\n
return header_gadget.notifyLoaded();\n
});\n
});\n
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment