From b5f572860a2a8d94103d2b27a7f170243f885e97 Mon Sep 17 00:00:00 2001 From: raylu Date: Tue, 9 Aug 2011 01:53:58 -0700 Subject: fix 2 bugs related to empty playlists --- static/script.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'static') diff --git a/static/script.js b/static/script.js index bc05fad..bcb531b 100644 --- a/static/script.js +++ b/static/script.js @@ -4,7 +4,7 @@ var player; var litColor = '#eee'; var dimmedColor = '#555'; var interval; -var timestamp = '0'; +var timestamp = '-1'; $(document).ready(function () { $('body').click(function (e) { @@ -68,6 +68,8 @@ function handleUpdates(data) { break; } } + if (timestamp == '-1') + timestamp = '0'; getUpdates(); } -- cgit v1.2.3