From f44dac9b8ebeee8924009f9a0ccc6f449b55647f Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Sat, 24 May 2014 22:40:47 +0200 Subject: [PATCH] Remove context menu on the main video --- public/js/vroom.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/public/js/vroom.js b/public/js/vroom.js index 873970d..6bac92d 100644 --- a/public/js/vroom.js +++ b/public/js/vroom.js @@ -338,7 +338,12 @@ function initVroom(room) { else{ $('#mainVideo').html(el.clone().dblclick(function() { fullScreen(this); - }).css('max-height', maxHeight())); + }) + .bind('contextmenu', function(){ + return false; + }) + .css('max-height', maxHeight()) + ); $('.selected').removeClass('selected'); el.addClass('selected'); mainVid = el.attr('id');