Fix loading etherpad iFrame the first time

master
Daniel Berteaud 9 years ago
parent 2a71e95b3b
commit 44639502be
  1. 2
      public/js/vroom.js

@ -2229,7 +2229,7 @@ function initVroom(room) {
var action = ($(this).hasClass('btn-danger')) ? 'hide' : 'show'; var action = ($(this).hasClass('btn-danger')) ? 'hide' : 'show';
if (action === 'show'){ if (action === 'show'){
// If not already loaded, load etherpad in the iFrame // If not already loaded, load etherpad in the iFrame
if ($('#etherpadContainer').html() === ''){ if ($('#etherpadContainer').html().match(/^\s*/)){
loadEtherpadIframe(); loadEtherpadIframe();
} }
$('#etherpadContainer').slideDown('200'); $('#etherpadContainer').slideDown('200');

Loading…
Cancel
Save