[Slim-Checkins] r9386 - in /trunk/server/HTML/Fishbone: FBajaxRequest.txt html/ajax.js

kdf at svn.slimdevices.com kdf at svn.slimdevices.com
Sun Sep 3 14:47:03 PDT 2006


Author: kdf
Date: Sun Sep  3 14:47:01 2006
New Revision: 9386

URL: http://svn.slimdevices.com?rev=9386&view=rev
Log:
Bug: n/a
Description: experimental commented out code


Modified:
    trunk/server/HTML/Fishbone/FBajaxRequest.txt
    trunk/server/HTML/Fishbone/html/ajax.js

Modified: trunk/server/HTML/Fishbone/FBajaxRequest.txt
URL: http://svn.slimdevices.com/trunk/server/HTML/Fishbone/FBajaxRequest.txt?rev=9386&r1=9385&r2=9386&view=diff
==============================================================================
--- trunk/server/HTML/Fishbone/FBajaxRequest.txt (original)
+++ trunk/server/HTML/Fishbone/FBajaxRequest.txt Sun Sep  3 14:47:01 2006
@@ -14,4 +14,6 @@
 coverartpath|
 [%- IF coverThumb -%][% coverThumb %]
 [%- ELSE -%][% webroot %]html/images/cover.png
-[% END %]
+[% END %]
+
+playlistTime|[% currentPlaylistChangeTime %]

Modified: trunk/server/HTML/Fishbone/html/ajax.js
URL: http://svn.slimdevices.com/trunk/server/HTML/Fishbone/html/ajax.js?rev=9386&r1=9385&r2=9386&view=diff
==============================================================================
--- trunk/server/HTML/Fishbone/html/ajax.js (original)
+++ trunk/server/HTML/Fishbone/html/ajax.js Sun Sep  3 14:47:01 2006
@@ -333,22 +333,26 @@
 	var doc = parent.playlist.document;
 	var found = 1;
 	
-	if (first == null || first == parsedData['first_item']) {
-		first = parsedData['first_item'];
-		
-		for (var i = parsedData['first_item']; i <= parsedData['last_item']; i++) {
-				
-				if (i == parsedData['currentsongnum']) {
-					doc.getElementById('playlistitem' + i).className = "currentListItem";
-					found = 0;
-				} else {
-					doc.getElementById('playlistitem' + i).className = "browsedbListItem";
-				}
-		}
-	} else {
-		first = parsedData['first_item'];
-		playlistChecker(first);
-	}
+	//if (parsedData['playlistTime'] >= int(new Date().getTime() / 1000) - 2) {
+	//	refreshPlaylist();
+	//} else {
+		if (first == null || first == parsedData['first_item']) {
+			first = parsedData['first_item'];
+			
+			for (var i = parsedData['first_item']; i <= parsedData['last_item']; i++) {
+					
+					if (i == parsedData['currentsongnum']) {
+						doc.getElementById('playlistitem' + i).className = "currentListItem";
+						found = 0;
+					} else {
+						doc.getElementById('playlistitem' + i).className = "browsedbListItem";
+					}
+			}
+		} else {
+			first = parsedData['first_item'];
+			//playlistChecker(first);
+		}
+	//}
 	
 	doc.location.hash = parsedData['currentsongnum'];
 }



More information about the checkins mailing list