Don't reload etherpad iframe when setting name if etherpad hasn't been loaded yet

master
Daniel Berteaud 11 years ago
parent 8978968a32
commit 2347f2b1fa
  1. 2
      public/js/vroom.js

@ -1461,7 +1461,7 @@ function initVroom(room) {
if (etherpad.enabled){ if (etherpad.enabled){
// Wait ~3 sec and reload etherpad // Wait ~3 sec and reload etherpad
setTimeout(function(){ setTimeout(function(){
if (lastNameChange && lastNameChange + 3000 < +new Date){ if (lastNameChange && lastNameChange + 3000 < +new Date && $('#etherpadContainer').html() != ''){
loadEtherpadIframe(); loadEtherpadIframe();
} }
}, 3100); }, 3100);

Loading…
Cancel
Save