From c4a87c698cbe8f92c11a12e9b8d5db01b10993ce Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 13 Jun 2014 15:20:48 +0200 Subject: [PATCH] Forbid color change if etherpad is opened So colors doesn't get out of sync --- public/js/vroom.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/js/vroom.js b/public/js/vroom.js index 560319e..97d0a1a 100644 --- a/public/js/vroom.js +++ b/public/js/vroom.js @@ -1952,10 +1952,12 @@ function initVroom(room) { } $('#etherpadLabel').addClass('btn-danger'); $('#etherpadContainer').slideDown('200'); + $('#changeColorButton').addClass('disabled'); } else{ $('#etherpadLabel').removeClass('btn-danger'); $('#etherpadContainer').slideUp('200'); + $('#changeColorButton').removeClass('disabled'); } }); }