Commit 3e577e72405a6a94a11df9a465391c7c5fb8d504
1 parent
e5b2e5ff
Exists in
community_hub_submodule
#community dasboard - update theme
Showing
1 changed file
with
12 additions
and
12 deletions
Show diff stats
public/javascripts/community_hub.js
| ... | ... | @@ -173,7 +173,7 @@ function update_mediation_comments(mediation) { |
| 173 | 173 | |
| 174 | 174 | function update_mediations() { |
| 175 | 175 | |
| 176 | - if (jQuery("#mediation-section.show").size() != 0) { | |
| 176 | + if (jQuery("#right-tab.show").size() != 0) { | |
| 177 | 177 | |
| 178 | 178 | var hub_id = jQuery(".hub").attr('id'); |
| 179 | 179 | |
| ... | ... | @@ -206,7 +206,7 @@ function update_mediations() { |
| 206 | 206 | |
| 207 | 207 | function update_live_stream() { |
| 208 | 208 | |
| 209 | - if (jQuery("#live-section.show").size() != 0) { | |
| 209 | + if (jQuery("#left-tab.show").size() != 0) { | |
| 210 | 210 | |
| 211 | 211 | var hub_id = jQuery(".hub").attr('id'); |
| 212 | 212 | |
| ... | ... | @@ -243,17 +243,17 @@ function update_live_stream() { |
| 243 | 243 | } |
| 244 | 244 | |
| 245 | 245 | function hub_left_tab_click() { |
| 246 | - jQuery("#mediation-section").removeClass('show'); | |
| 247 | - jQuery("#mediation-section").addClass('hide'); | |
| 248 | - jQuery("#live-section").removeClass('hide'); | |
| 249 | - jQuery("#live-section").addClass('show'); | |
| 246 | + jQuery("#right-tab").removeClass('show'); | |
| 247 | + jQuery("#right-tab").addClass('hide'); | |
| 248 | + jQuery("#left-tab").removeClass('hide'); | |
| 249 | + jQuery("#left-tab").addClass('show'); | |
| 250 | 250 | } |
| 251 | 251 | |
| 252 | 252 | function hub_right_tab_click() { |
| 253 | - jQuery("#live-section").removeClass('show'); | |
| 254 | - jQuery("#live-section").addClass('hide'); | |
| 255 | - jQuery("#mediation-section").removeClass('hide'); | |
| 256 | - jQuery("#mediation-section").addClass('show'); | |
| 253 | + jQuery("#left-tab").removeClass('show'); | |
| 254 | + jQuery("#left-tab").addClass('hide'); | |
| 255 | + jQuery("#right-tab").removeClass('hide'); | |
| 256 | + jQuery("#right-tab").addClass('show'); | |
| 257 | 257 | } |
| 258 | 258 | |
| 259 | 259 | jQuery(document).ready(function() { |
| ... | ... | @@ -261,8 +261,8 @@ jQuery(document).ready(function() { |
| 261 | 261 | live_scroll_position = jQuery("#live-posts").scrollTop(); |
| 262 | 262 | }); |
| 263 | 263 | |
| 264 | - jQuery(".hub #left-tab").click(hub_left_tab_click); | |
| 265 | - jQuery(".hub #right-tab").click(hub_right_tab_click); | |
| 264 | + jQuery(".hub #left-tab.hide").click(hub_left_tab_click); | |
| 265 | + jQuery(".hub #right-tab.hide").click(hub_right_tab_click); | |
| 266 | 266 | |
| 267 | 267 | setTimeout(update_live_stream, 5000); |
| 268 | 268 | setTimeout(update_mediations, 7000); | ... | ... |