[Slim-Checkins] r8821 - in /trunk/server: Changelog6.html
HTML/Fishbone/FBajaxRequest.txt HTML/Fishbone/html/ajax.js
kdf at svn.slimdevices.com
kdf at svn.slimdevices.com
Sat Aug 5 18:53:31 PDT 2006
Author: kdf
Date: Sat Aug 5 18:53:29 2006
New Revision: 8821
URL: http://svn.slimdevices.com?rev=8821&view=rev
Log:
Bug: 3874
Description: add some bypasses to allow http players to refresh correctly
Modified:
trunk/server/Changelog6.html
trunk/server/HTML/Fishbone/FBajaxRequest.txt
trunk/server/HTML/Fishbone/html/ajax.js
Modified: trunk/server/Changelog6.html
URL: http://svn.slimdevices.com/trunk/server/Changelog6.html?rev=8821&r1=8820&r2=8821&view=diff
==============================================================================
--- trunk/server/Changelog6.html (original)
+++ trunk/server/Changelog6.html Sat Aug 5 18:53:29 2006
@@ -467,6 +467,7 @@
<li><a href="http://bugs.slimdevices.com/show_bug.cgi?id=3861">#3861</a> - Search crashes slimserver</li>
<li><a href="http://bugs.slimdevices.com/show_bug.cgi?id=3866">#3866</a> - Multidisc albums in different folders not recognized as same album</li>
<li><a href="http://bugs.slimdevices.com/show_bug.cgi?id=3867">#3867</a> - Rescan.pm misdisplay of scan type</li>
+ <li><a href="http://bugs.slimdevices.com/show_bug.cgi?id=3874">#3874</a> - fishbone skin does not refresh playlist correctly</li>
</ul>
</ul>
Modified: trunk/server/HTML/Fishbone/FBajaxRequest.txt
URL: http://svn.slimdevices.com/trunk/server/HTML/Fishbone/FBajaxRequest.txt?rev=8821&r1=8820&r2=8821&view=diff
==============================================================================
--- trunk/server/HTML/Fishbone/FBajaxRequest.txt (original)
+++ trunk/server/HTML/Fishbone/FBajaxRequest.txt Sat Aug 5 18:53:29 2006
@@ -4,6 +4,7 @@
sleeptime|[% sleeptime %]
rate|[% rate %]
playermodel|[% playermodel %]
+isplayer|[% isplayer %]
sync|[% sync %]
by|[% "BY" | string %]
Modified: trunk/server/HTML/Fishbone/html/ajax.js
URL: http://svn.slimdevices.com/trunk/server/HTML/Fishbone/html/ajax.js?rev=8821&r1=8820&r2=8821&view=diff
==============================================================================
--- trunk/server/HTML/Fishbone/html/ajax.js (original)
+++ trunk/server/HTML/Fishbone/html/ajax.js Sat Aug 5 18:53:29 2006
@@ -127,25 +127,27 @@
}
}
- var controls = ['rew','ffwd'];
-
- for (var i=0; i < controls.length; i++) {
- var objID = $('playCtl' + controls[i]);
-
- if (parsedData['rate'] == controls[i]) {
- objID.src = '[% webroot %]html/images/'+controls[i]+'_s'+curstyle+'.gif';
-
- } else {
- objID.src = '[% webroot %]html/images/'+controls[i]+curstyle+'.gif';
- }
- }
-
- if (parsedData['mute'] == 1) {
- if ($('playCtl' + 'mute').src.indexOf('_s') != -1) {$('playCtl' + 'mute').src = '[% webroot %]html/images/mute_s'+curstyle+'.gif';}
- } else {
- if ($('playCtl' + 'mute').src.indexOf('_s') == -1) {$('playCtl' + 'mute').src = '[% webroot %]html/images/mute'+curstyle+'.gif';}
- }
-
+ if (parsedData['isplayer']) {
+ var controls = ['rew','ffwd'];
+
+ for (var i=0; i < controls.length; i++) {
+ var objID = $('playCtl' + controls[i]);
+
+ if (parsedData['rate'] == controls[i]) {
+ objID.src = '[% webroot %]html/images/'+controls[i]+'_s'+curstyle+'.gif';
+
+ } else {
+ objID.src = '[% webroot %]html/images/'+controls[i]+curstyle+'.gif';
+ }
+ }
+
+ if (parsedData['mute'] == 1) {
+ if ($('playCtl' + 'mute').src.indexOf('_s') != -1) {$('playCtl' + 'mute').src = '[% webroot %]html/images/mute_s'+curstyle+'.gif';}
+ } else {
+ if ($('playCtl' + 'mute').src.indexOf('_s') == -1) {$('playCtl' + 'mute').src = '[% webroot %]html/images/mute'+curstyle+'.gif';}
+ }
+ }
+
if (parsedData['playmode'] == 1) {
if (!mp) {refreshInfo(parsedData,1);}
mp = 1;
@@ -297,8 +299,11 @@
function refreshAll(theData) {
var parsedData = fillDataHash(theData);
-
- refreshVolume(parsedData);
+
+ if (parsedData['isplayer']) {
+ refreshVolume(parsedData);
+ }
+
refreshPlayControls(parsedData);
refreshInfo(parsedData);
refreshState(parsedData);
More information about the checkins
mailing list