From 1844cbf4c7e4bc64e30c50ecbce414842e09c294 Mon Sep 17 00:00:00 2001 From: bakape Date: Wed, 3 Dec 2014 18:10:24 +0100 Subject: [PATCH] Query the element, not scope --- client/models.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/models.js b/client/models.js index ef21a5194..418fe4b0d 100755 --- a/client/models.js +++ b/client/models.js @@ -32,7 +32,7 @@ function model_link(key) { function renderRelativeTime(){ if (oneeSama.rTime){ - var $time = this.$('header').find('time').first(); + var $time = this.$el.find('time').first(); var t = date_from_time_el($time[0]).getTime(); setInterval(function(){ $time.html(oneeSama.relative_time(t, new Date().getTime()));