Commit b1b0fc13c1e0a5d5672a9e3d7cc52d86f62f1ba0
1 parent
2d30aa7e
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
#community dasboard - update theme
Showing
1 changed file
with
12 additions
and
12 deletions
Show diff stats
plugins/community_hub/public/javascripts/community_hub.js
@@ -173,7 +173,7 @@ function update_mediation_comments(mediation) { | @@ -173,7 +173,7 @@ function update_mediation_comments(mediation) { | ||
173 | 173 | ||
174 | function update_mediations() { | 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 | var hub_id = jQuery(".hub").attr('id'); | 178 | var hub_id = jQuery(".hub").attr('id'); |
179 | 179 | ||
@@ -206,7 +206,7 @@ function update_mediations() { | @@ -206,7 +206,7 @@ function update_mediations() { | ||
206 | 206 | ||
207 | function update_live_stream() { | 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 | var hub_id = jQuery(".hub").attr('id'); | 211 | var hub_id = jQuery(".hub").attr('id'); |
212 | 212 | ||
@@ -243,17 +243,17 @@ function update_live_stream() { | @@ -243,17 +243,17 @@ function update_live_stream() { | ||
243 | } | 243 | } |
244 | 244 | ||
245 | function hub_left_tab_click() { | 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 | function hub_right_tab_click() { | 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 | jQuery(document).ready(function() { | 259 | jQuery(document).ready(function() { |
@@ -261,8 +261,8 @@ jQuery(document).ready(function() { | @@ -261,8 +261,8 @@ jQuery(document).ready(function() { | ||
261 | live_scroll_position = jQuery("#live-posts").scrollTop(); | 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 | setTimeout(update_live_stream, 5000); | 267 | setTimeout(update_live_stream, 5000); |
268 | setTimeout(update_mediations, 7000); | 268 | setTimeout(update_mediations, 7000); |