projects
/
WP-Themes
/
migcsa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b02d2a
)
setting so that oc menu opens for menus only after 1 login, not every page load after
author
Anthony Talarico
<talarico@gaslightmedia.com>
Fri, 10 Aug 2018 20:42:42 +0000
(16:42 -0400)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Fri, 10 Aug 2018 20:42:42 +0000
(16:42 -0400)
sections/header.php
patch
|
blob
|
history
diff --git
a/sections/header.php
b/sections/header.php
index
d97b92e
..
ce993a4
100644
(file)
--- a/
sections/header.php
+++ b/
sections/header.php
@@
-106,9
+106,11
@@
}
$(window).on("load", function(){
if( $(window).width() < 1024 ){
- if( window.logged_in == 1){
-
- $("#offCanvasRight").foundation('open')
+ if( window.logged_in == 1 && sessionStorage.getItem("octrigger") != 'true'){
+ $("#offCanvasRight").foundation('open');
+ sessionStorage.setItem("octrigger", "true")
+ }else if( window.logged_in != 1){
+ sessionStorage.setItem("octrigger", "false")
}
}
})