diff --git a/static/js/peersButton.js b/static/js/peersButton.js index b9f02a3..1a8f146 100644 --- a/static/js/peersButton.js +++ b/static/js/peersButton.js @@ -7,9 +7,6 @@ oml.ui.peersButton = function() { }) .css({ marginRight: '6px' - }) - .bindEvent({ - click: open }), count, requests = 0; @@ -24,7 +21,9 @@ oml.ui.peersButton = function() { borderRadius: 0 }) .bindEvent({ - click: open + click: function() { + oml.UI.set({page: 'peers'}); + } }) .appendTo(that); @@ -36,6 +35,11 @@ oml.ui.peersButton = function() { fontSize: '9px' }) .html('0') + .bindEvent({ + anyclick: function() { + oml.UI.set({page: 'peers'}); + } + }) .appendTo(that); oml.bindEvent({ @@ -44,7 +48,7 @@ oml.ui.peersButton = function() { update(); function open() { - oml.UI.set({page: 'peers'}); + } function update() { // wait for clearCache in folder.js diff --git a/static/js/transferButton.js b/static/js/transferButton.js index 5e6dc48..98df9b3 100644 --- a/static/js/transferButton.js +++ b/static/js/transferButton.js @@ -7,11 +7,6 @@ oml.ui.transferButton = function() { }) .css({ marginRight: '6px' - }) - .bindEvent({ - click: function() { - oml.UI.set({page: 'transfers'}); - } }), bandwidth = Ox.Element() @@ -22,6 +17,11 @@ oml.ui.transferButton = function() { fontSize: '9px' }) .html(formatBandwidth(0, 0)) + .bindEvent({ + anyclick: function() { + oml.UI.set({page: 'transfers'}); + } + }) .appendTo(that); function formatBandwidth(up, down) {