patch for randomize playlist in 1.0rc1
Matt McClure <[email protected]> Sat, 01 Nov 2003 18:16:46 -0500
| Newsgroups | gmane.comp.audio.netjuke.user |
|---|---|
| Organization | me |
| Message-ID | <[email protected]> |
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigF66352304A62D8F0F032C3DD
Content-Type: multipart/mixed;
boundary="------------070309010209090502010707"
This is a multi-part message in MIME format.
--------------070309010209090502010707
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Not sure if this is already fixed in 1.0rc2 since I haven't upgraded
yet, but the randomize checkbox next the "Play Selected" on playlists
doesn't work in 1.0rc1. Here's a patch.
--
Matt
http://www.faradic.net/~mmcclure/
The whole genre of the one-bedroom apartment on the Lower East
Side has escaped the [MTV] Cribs radar.
-Mike Doughty
--------------070309010209090502010707
Content-Type: text/plain;
name="randomize.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="randomize.patch"
--- /var/www/html/netjuke/pl-edit.php.~1.19.~ 2003-06-29 17:27:33.000000000 -0400
+++ /var/www/html/netjuke/pl-edit.php 2003-11-01 18:05:52.000000000 -0500
@@ -617,8 +617,10 @@
<td class="content" align=center nowrap><B><A HREF="play.php?do=plist&val=<?php echo $_REQUEST['pl_id']?>" title='<?php echo PLEDIT_TB_PLAY_ALL_HELP ?>'><?php echo PLEDIT_TB_PLAY_ALL ?></A></B></td>
<td class="content" align=center nowrap><B><A HREF="Javascript:SelectAll();" title="<?php echo PLEDIT_TB_SELECT_HELP ?>"><?php echo PLEDIT_TB_SELECT ?></A></B></td>
<td class="content" align=center nowrap><B><A HREF="Javascript:ResetAll();" title="<?php echo PLEDIT_TB_RESET_HELP ?>"><?php echo PLEDIT_TB_RESET ?></A></B></td>
+ <form action='' method=get name='randomForm' onSubmit="return('false');">
<td class="content" align=center nowrap><B><A HREF="Javascript:Plist('play');" title="<?php echo PLEDIT_TB_PLAY_HELP ?>"><?php echo PLEDIT_TB_PLAY ?></A></B><input type="checkbox" name='random' align='center' title="<?php echo PLEDIT_RANDOMIZE_HELP ?>"><?php echo PLEDIT_RANDOMIZE ?></td>
+ </form>
<td class="content" align=center nowrap><B><A HREF="Javascript:deleteTracks('');" title="<?php echo PLEDIT_TB_DELETE_HELP ?>"><?php echo PLEDIT_TB_DELETE ?></A></B></td>
<?php if (BATCH_DOWNLOAD == 't') { ?>
<td class="content" align=center nowrap><B><A HREF="Javascript:Plist('batch');" title="<?php echo PLEDIT_TB_BATCH_HELP ?>"><?php echo PLEDIT_TB_BATCH ?></A></B></td>
--- /var/www/html/netjuke/lib/inc-jscript.php.~1.13.~ 2003-04-25 16:20:19.000000000 -0400
+++ /var/www/html/netjuke/lib/inc-jscript.php 2003-11-01 18:07:05.000000000 -0500
@@ -44,9 +44,9 @@
}
}
}
- for (var i=0;i< document.viewForm.elements.length;i++) {
- if (document.viewForm.elements[i].name == 'random') {
- if (document.viewForm.elements[i].checked == true) {
+ for (var i=0;i< document.randomForm.elements.length;i++) {
+ if (document.randomForm.elements[i].name == 'random') {
+ if (document.randomForm.elements[i].checked == true) {
random = '1';
}
}
@@ -137,4 +137,4 @@
document.all[id].style.backgroundColor = color;
else if (document.getElementById)
document.getElementById(id).style.backgroundColor = color;
-}
\ No newline at end of file
+}
--------------070309010209090502010707--
--------------enigF66352304A62D8F0F032C3DD
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE/pD7grGgMpZIoLA8RAveZAKDYbun0rYbaFBmXHJQ7r0D/1Tz32QCfVv3M
tvO5FqVjjmE6iPGypna1KWE=
=0fGd
-----END PGP SIGNATURE-----
--------------enigF66352304A62D8F0F032C3DD--
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/