Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Linnea Samila
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 150b66f1
authored
Dec 23, 2015
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Menus states should be hold per page, not per site.
1 parent
0e84e27d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
code/moya-web/WebContent/resources/script/menufix.js
code/moya-web/WebContent/resources/templates/primelayout/template.xhtml
code/moya-web/WebContent/resources/script/menufix.js
0 → 100644
View file @
150b66f
$
(
document
).
ready
(
function
()
{
if
(
PrimeFaces
.
getCookie
(
"moyaLeftMenu"
)
!=
null
)
{
var
menuToExpand
=
PrimeFaces
.
getCookie
(
"moyaLeftMenu"
).
split
(
","
);
for
(
i
=
0
;
i
<
menuToExpand
.
length
;
++
i
)
{
$
(
"#"
+
menuToExpand
[
i
]).
css
(
"display"
,
"block"
);
}
}
});
\ No newline at end of file
code/moya-web/WebContent/resources/templates/primelayout/template.xhtml
View file @
150b66f
...
...
@@ -21,6 +21,7 @@
<link
rel=
"stylesheet"
type=
"text/css"
href=
"#{request.contextPath}/resources/templates/primelayout/css/structual.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"#{request.contextPath}/resources/templates/custom_components.css"
/>
<script
type=
"text/javascript"
src=
"#{request.contextPath}/resources/script/prime_calendar.js"
></script>
<script
type=
"text/javascript"
src=
"#{request.contextPath}/resources/script/menufix.js"
></script>
<ui:insert
name=
"headerdata"
/>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment