Changeset 26087
- Timestamp:
- Dec 22, 2013, 6:45:13 PM (10 years ago)
- Location:
- trunk/themes/elegant
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/themes/elegant/scripts.js
r26085 r26087 34 34 menuswitcher.html('<div class="switchArrow"> </div>'); 35 35 36 if (session_storage['page-menu'] == 'hidden' || p_main_menu == 'off') { 36 if (session_storage['page-menu'] == undefined && p_main_menu == 'off') { 37 session_storage['page-menu'] = 'hidden'; 38 } 39 40 if (session_storage['page-menu'] == 'hidden') { 37 41 hideMenu(0); 38 42 } -
trunk/themes/elegant/scripts_pp.js
r26086 r26087 57 57 comments_button.addClass("comments_toggle_off").removeClass("comments_toggle_on");; 58 58 session_storage['comments'] = 'visible'; 59 60 59 comments_top_offset = comments_add.offset().top - parseFloat(comments_add.css('marginTop').replace(/auto/, 0)); 61 60 } … … 75 74 menuswitcher.html('<div class="switchArrow"> </div>'); 76 75 77 if (session_storage['picture-menu'] == 'hidden' || p_main_menu == 'off') { 76 if (session_storage['picture-menu'] == undefined && p_main_menu == 'off') { 77 session_storage['picture-menu'] = 'hidden'; 78 } 79 80 if (session_storage['picture-menu'] == 'hidden') { 78 81 hideMenu(0); 79 82 } … … 99 102 infoswitcher.html('<div class="switchArrow"> </div>'); 100 103 101 if (session_storage['side-info'] == 'hidden' || p_pict_descr == 'off') { 104 if (session_storage['side-info'] == undefined && p_pict_descr == 'off') { 105 session_storage['side-info'] = 'hidden'; 106 } 107 108 if (session_storage['side-info'] == 'hidden') { 102 109 hideInfo(0); 103 110 } … … 130 137 } 131 138 132 if (session_storage['comments'] == 'hidden' || p_pict_comment == 'off') { 139 if (session_storage['comments'] == undefined && p_pict_comment == 'off') { 140 session_storage['comments'] = 'hidden'; 141 } 142 143 if (session_storage['comments'] == 'hidden') { 133 144 comments.addClass("commentshidden"); 134 145 comments_button.addClass("comments_toggle comments_toggle_on");
Note: See TracChangeset
for help on using the changeset viewer.