diff options
author | Derf Null <derf@finalrewind.org> | 2023-06-04 18:48:05 +0200 |
---|---|---|
committer | Derf Null <derf@finalrewind.org> | 2023-06-04 18:48:05 +0200 |
commit | c9342c05d6b9a57437420f6d5ed0f82854a381d6 (patch) | |
tree | 73214f658c90d2b9fe1ab844865eb95a0326aaea /public/static/js/travelynx-actions.js | |
parent | cede1f9b102d94522f66e2532c3b1156a18557cc (diff) |
travelynx-actions: distinguish between /p/ and /status/ auto-refresh
Diffstat (limited to 'public/static/js/travelynx-actions.js')
-rw-r--r-- | public/static/js/travelynx-actions.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/public/static/js/travelynx-actions.js b/public/static/js/travelynx-actions.js index 7e95a43..aed1cf3 100644 --- a/public/static/js/travelynx-actions.js +++ b/public/static/js/travelynx-actions.js @@ -107,10 +107,12 @@ function tvly_update() { } function tvly_update_public() { var user_name; + var profile_status = 0; $('.publicstatuscol').each(function() { user_name = $(this).data('user'); + profile_status = $(this).data('profile'); }); - $.get('/ajax/status/' + user_name + '.html', {token: j_token}, function(data) { + $.get('/ajax/status/' + user_name + '.html', {token: j_token, profile: profile_status}, function(data) { $('.publicstatuscol').html(data); upd_journey_data(); setTimeout(tvly_update_public, 40000); |