Fix loading etherpad iFrame the first time

This commit is contained in:
Daniel Berteaud 2015-08-06 18:54:13 +02:00
parent 2a71e95b3b
commit 44639502be
1 changed files with 1 additions and 1 deletions

View File

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