Is this correct?

Code:
--------------------
    
        // Repeat Status Icon
        SqueezeJS.UI.RptStateIcon = Ext.extend(SqueezeJS.UI.Component, {
        onPlayerStateChange : function(status){
        var myImage=document.getElementById('repeaticon');
        if (status["playlist repeat"] == 1)
         myImage.src="icons/repeat.png";
        else
        if (status["playlist repeat"] == 2)
         myImage.src="icons/repeat_all.png";
        else
         myImage.src="icons/no_repeat.png";
        this.el.update(myImage.src);
        },
  onPlaylistChange : function(status){
        var myImage=document.getElementById('repeaticon');
        if (status["playlist repeat"] == 1)
         myImage.src="icons/repeat.png";
        else
        if (status["playlist repeat"] == 2)
         myImage.src="icons/repeat_all.png";
        else
         myImage.src="icons/no_repeat.png";
        this.el.update(myImage.src);
        }
        });
  
        new SqueezeJS.UI.RptStateIcon({el: 'repeaticon', noLink: true});
--------------------


------------------------------------------------------------------------
MillmoorRon's Profile: http://forums.slimdevices.com/member.php?userid=6413
View this thread: http://forums.slimdevices.com/showthread.php?t=74270

_______________________________________________
diy mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/diy

Reply via email to