From 73d67bb16a0b28de93ed93fe598d1a5a75747bcd Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 12 Oct 2016 10:59:19 +0200 Subject: fix connected time not shown on ajax loaded connections --- view/js/main.js | 1 + view/js/mod_connections.js | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'view/js') diff --git a/view/js/main.js b/view/js/main.js index 0239fc1f8..5435dfd87 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -854,6 +854,7 @@ function pageUpdate() { scroll_next = false; updatePageItems(update_mode,data); $("#page-spinner").spin(false); + $(".autotime").timeago(); in_progress = false; }); } diff --git a/view/js/mod_connections.js b/view/js/mod_connections.js index 112204a5a..68add4eed 100644 --- a/view/js/mod_connections.js +++ b/view/js/mod_connections.js @@ -4,13 +4,13 @@ $(document).ready(function() { }); $("#contacts-search").keyup(function(event){ - if(event.keyCode == 13){ - $("#contacts-search").click(); - } + if(event.keyCode == 13){ + $("#contacts-search").click(); + } }); $(".autocomplete-w1 .selected").keyup(function(event){ - if(event.keyCode == 13){ - $("#contacts-search").click(); - } + if(event.keyCode == 13){ + $("#contacts-search").click(); + } }); -- cgit v1.2.3