diff --git a/plugins/Sidebar/media/Sidebar.coffee b/plugins/Sidebar/media/Sidebar.coffee index aea6dc72..44af3e3f 100644 --- a/plugins/Sidebar/media/Sidebar.coffee +++ b/plugins/Sidebar/media/Sidebar.coffee @@ -37,7 +37,7 @@ class Sidebar extends Class # Detect dragging @fixbutton.on "mousedown touchstart", (e) => - if event.button > 0 # Right or middle click + if e.button > 0 # Right or middle click return e.preventDefault() diff --git a/plugins/Sidebar/media/all.js b/plugins/Sidebar/media/all.js index a669a23f..c995a02e 100644 --- a/plugins/Sidebar/media/all.js +++ b/plugins/Sidebar/media/all.js @@ -237,7 +237,7 @@ window.initScrollable = function () { */ this.fixbutton.on("mousedown touchstart", (function(_this) { return function(e) { - if (event.button > 0) { + if (e.button > 0) { return; } e.preventDefault(); diff --git a/src/Config.py b/src/Config.py index 45f63854..c0a4c099 100644 --- a/src/Config.py +++ b/src/Config.py @@ -9,7 +9,7 @@ class Config(object): def __init__(self, argv): self.version = "0.5.1" - self.rev = 1785 + self.rev = 1786 self.argv = argv self.action = None self.config_file = "zeronet.conf"