Changeset 23251 for trunk/themes/elegant/scripts_pp.js
- Timestamp:
- Jun 16, 2013, 4:22:35 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/themes/elegant/scripts_pp.js
r23233 r23251 78 78 var menubar=jQuery("#menubar"); 79 79 80 if (menubar.length == 1 ) {80 if (menubar.length == 1 && p_main_menu!="disabled") { 81 81 82 82 jQuery("#menuSwitcher").html("<div class=\"switchArrow\"> </div>"); 83 83 84 84 // if cookie says the menu is hiding, keep it hidden! 85 if (sidemenu == 'visible') { 85 if (sidemenu == 'hidden') { 86 hideMenu(0); 87 } else if (sidemenu == 'visible') { 86 88 showMenu(0); 87 } else {89 } else if (p_main_menu == 'off') { 88 90 hideMenu(0); 91 } else { 92 showMenu(0); 89 93 } 90 94 … … 106 110 var imageInfos=jQuery("#imageInfos"); 107 111 108 if (imageInfos.length == 1 ) {112 if (imageInfos.length == 1 && p_pict_descr!="disabled") { 109 113 110 114 jQuery("#infoSwitcher").html("<div class=\"switchArrow\"> </div>"); … … 113 117 if (sideinfo == 'hidden') { 114 118 hideInfo(0); 119 } else if (sideinfo == 'visible') { 120 showInfo(0); 121 } else if (p_pict_descr == 'off') { 122 hideInfo(0); 115 123 } else { 116 124 showInfo(0); … … 136 144 commentsswicther.html("<div class=\"switchArrow\"> </div>"); 137 145 138 if (comments.length == 1 ) {146 if (comments.length == 1 && p_pict_comment!="disabled") { 139 147 var comments_button=jQuery("#comments h3"); 140 148 … … 144 152 } 145 153 146 if (jQuery.cookie('comments') == 'visible') { 154 if (jQuery.cookie('comments') == 'hidden') { 155 comments.addClass("commentshidden"); 156 comments_button.addClass("comments_toggle").addClass("comments_toggle_on"); 157 } else if (jQuery.cookie('comments') == 'visible') { 147 158 comments.addClass("commentsshown"); 148 159 comments_button.addClass("comments_toggle").addClass("comments_toggle_off"); 149 } else {160 } else if (p_pict_comment == 'off') { 150 161 comments.addClass("commentshidden"); 151 162 comments_button.addClass("comments_toggle").addClass("comments_toggle_on"); 163 } else { 164 comments.addClass("commentsshown"); 165 comments_button.addClass("comments_toggle").addClass("comments_toggle_off"); 152 166 } 153 167
Note: See TracChangeset
for help on using the changeset viewer.