From 614a562f3c260348b7d502868f9efa8cadb579ea Mon Sep 17 00:00:00 2001 From: j Date: Wed, 13 Jan 2016 15:21:59 +0530 Subject: [PATCH] bind peering on load --- static/js/peersPanel.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/js/peersPanel.js b/static/js/peersPanel.js index 76b0cd6..4875c77 100644 --- a/static/js/peersPanel.js +++ b/static/js/peersPanel.js @@ -83,9 +83,13 @@ oml.ui.peersPanel = function() { } }); + var peering = Ox.throttle(function() { updateUsers(); }, 1000); + if(oml.user.ui.page == 'peers') { + oml.bindEvent({peering: peering}); + } function renderSectionList(folder) {