Fixed small issue with context-menu

This commit is contained in:
Kasper Rynning-Tønnesen
2018-04-26 17:17:35 +02:00
parent fc182882a0
commit 3cdb6c756d

View File

@@ -421,24 +421,23 @@ var Channel = {
},
add_context_menu: function() {
addListener("contextmenu", ".vote-container", function(event) {
//event.preventDefault();
addListener("contextmenu", ".vote-container", function(e) {
this.preventDefault();
this.preventDefault();
var that = this;
contextListener(event, that);
contextListener(e, that);
});
addListener("contextmenu", ".add-suggested", function(event) {
//event.preventDefault();
addListener("contextmenu", ".add-suggested", function(e) {
this.preventDefault();
var that = this;
contextListener(event, that);
contextListener(e, that);
});
addListener("click", ".list-remove", function(event) {
//event.preventDefault();
addListener("click", ".list-remove", function(e) {
this.preventDefault();
var that = this;
console.log(that, event);
contextListener(event, that);
contextListener(e, that);
});
},