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() { add_context_menu: function() {
addListener("contextmenu", ".vote-container", function(event) { addListener("contextmenu", ".vote-container", function(e) {
//event.preventDefault(); this.preventDefault();
this.preventDefault(); this.preventDefault();
var that = this; var that = this;
contextListener(event, that); contextListener(e, that);
}); });
addListener("contextmenu", ".add-suggested", function(event) { addListener("contextmenu", ".add-suggested", function(e) {
//event.preventDefault(); this.preventDefault();
var that = this; var that = this;
contextListener(event, that); contextListener(e, that);
}); });
addListener("click", ".list-remove", function(event) { addListener("click", ".list-remove", function(e) {
//event.preventDefault(); this.preventDefault();
var that = this; var that = this;
console.log(that, event); contextListener(e, that);
contextListener(event, that);
}); });
}, },