% menu(:webconference) %> <%= content_for :javascript do %> $('#sidebar img.tooltip_invite_people').qtip({ content: '<%= escape_javascript(t("tooltip.invite_people")) %>', position: {adjust: { screen: true }}, show: 'mouseover', hide: { when: 'mouseout', fixed: true }, style: 'mystyle' }); $("a#invite_bbb_link").fancybox({ 'hideOnContentClick' : false, 'frameWidth' : 450, 'frameHeight' : 430 }); $("a#join_mobile_button").fancybox({ 'hideOnContentClick' : false, 'frameWidth' : 250, 'frameHeight' : 500 }); recListUpdateStart = function() { $("#update-recordings-loading").show(); } recListUpdateEnd = function(error) { $("#update-recordings-loading").hide(); if (error) { $("#update-recordings-error").show(); window.setTimeout(function() { $("#update-recordings-error").hide(); }, 5000); $("#recording-list-wrapper").effect("highlight", { color: "#ff0000"}, 5000); } else { $("#update-recordings-success").show(); window.setTimeout(function() { $("#update-recordings-success").hide(); }, 5000); if ($("#recording-list-wrapper").is(":visible")) { $("#recording-list-wrapper").effect("highlight", { color: "#00ff00"}, 5000); } } } populateList = function(showMessage) { $.get("<%= recordings_space_path(@space, :partial => '1', :limit => 3) %>", { authenticity_token: "<%= form_authenticity_token() %>" }).fail(function() { if (showMessage == true) { recListUpdateEnd(true); } }).success(function(data) { if (data.trim() != "") { $("#recording-list-wrapper").show(); $("#recording-list-wrapper").html(data); } else { $("#recording-list-wrapper").hide(); } if (showMessage == true) { recListUpdateEnd(false); } }); } <% if logged_in? %> recListUpdateStart(); $.post("<%= fetch_recordings_bigbluebutton_room_path(@room, :format => 'json') %>", { authenticity_token: "<%= form_authenticity_token() %>" }, null, "html").fail(function() { recListUpdateEnd(true); }).success(function(data) { populateList(true); }); <% else %> populateList(false); <% end %> <% end %> <%= content_for :search do %> <%= render :partial => 'search/form' %> <% end %> <%= content_for :sidebar do %> <%= render :partial => 'sidebar' %> <% end %>