1.9.9 - Drag and drop sorting
This commit is contained in:
parent
e94854faff
commit
bab5923c64
6 changed files with 51 additions and 14 deletions
6
README
6
README
|
@ -16,9 +16,3 @@ Features
|
||||||
You will need a Subsonic server to be able to play your own music. Subsonic is a free, web-based media streamer, providing ubiquitous access to your music. Use it to share your music with friends, or to listen to your own music while at work. Please see http://www.subsonic.org
|
You will need a Subsonic server to be able to play your own music. Subsonic is a free, web-based media streamer, providing ubiquitous access to your music. Use it to share your music with friends, or to listen to your own music while at work. Please see http://www.subsonic.org
|
||||||
|
|
||||||
Change Log inside...
|
Change Log inside...
|
||||||
|
|
||||||
TO DO: (In no particular order...)
|
|
||||||
- Jukebox Control
|
|
||||||
- Download Links
|
|
||||||
- Ratings
|
|
||||||
- Chrome App???
|
|
|
@ -9,6 +9,7 @@
|
||||||
<link href="style/Style.css" rel="stylesheet" type="text/css" />
|
<link href="style/Style.css" rel="stylesheet" type="text/css" />
|
||||||
<link href="js/fancybox/jquery.fancybox-1.3.4.css" rel="stylesheet" type="text/css" />
|
<link href="js/fancybox/jquery.fancybox-1.3.4.css" rel="stylesheet" type="text/css" />
|
||||||
<script src="js/plugins/jquery-1.7.2.min.js" type="text/javascript"></script>
|
<script src="js/plugins/jquery-1.7.2.min.js" type="text/javascript"></script>
|
||||||
|
<script src="js/plugins/jquery-ui-1.8.20.min.js" type="text/javascript"></script>
|
||||||
<script src="js/plugins/jquery.base64.js" type="text/javascript"></script>
|
<script src="js/plugins/jquery.base64.js" type="text/javascript"></script>
|
||||||
<script src="js/plugins/jquery.shuffle.js" type="text/javascript"></script>
|
<script src="js/plugins/jquery.shuffle.js" type="text/javascript"></script>
|
||||||
<script src="js/plugins/jquery.cookie.js" type="text/javascript"></script>
|
<script src="js/plugins/jquery.cookie.js" type="text/javascript"></script>
|
||||||
|
@ -210,6 +211,10 @@
|
||||||
<span class="changes"></span>
|
<span class="changes"></span>
|
||||||
</li>
|
</li>
|
||||||
-->
|
-->
|
||||||
|
<li class="log"><span class="version">- 1.9.9</span>
|
||||||
|
<span class="changes">Drag and drop sorting for Current and all other Playlists</span>
|
||||||
|
<span class="changes"></span>
|
||||||
|
</li>
|
||||||
<li class="log"><span class="version">5/21/2012 - 1.9.8</span>
|
<li class="log"><span class="version">5/21/2012 - 1.9.8</span>
|
||||||
<span class="changes">Support for 4.7beta1 in preparation for next full release</span>
|
<span class="changes">Support for 4.7beta1 in preparation for next full release</span>
|
||||||
<span class="changes">Ability to download Playlist or Song</span>
|
<span class="changes">Ability to download Playlist or Song</span>
|
||||||
|
|
|
@ -58,8 +58,8 @@ function generateSongHTML(rowcolor, childid, parentid, track, title, artist, alb
|
||||||
return html;
|
return html;
|
||||||
}
|
}
|
||||||
|
|
||||||
function refreshRowColor() {
|
function refreshRowColor(el) {
|
||||||
$.each($('table.songlist tr.song'), function (i) {
|
$.each($(el + ' tr.song'), function (i) {
|
||||||
$(this).removeClass('even odd');
|
$(this).removeClass('even odd');
|
||||||
var rowcolor;
|
var rowcolor;
|
||||||
if (i % 2 === 0) {
|
if (i % 2 === 0) {
|
||||||
|
|
17
js/plugins/jquery-ui-1.8.20.min.js
vendored
Normal file
17
js/plugins/jquery-ui-1.8.20.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -248,7 +248,7 @@
|
||||||
$('table.songlist tr.song a.remove').live('click', function (event) {
|
$('table.songlist tr.song a.remove').live('click', function (event) {
|
||||||
var track = $(this).parent().parent();
|
var track = $(this).parent().parent();
|
||||||
$(track).remove();
|
$(track).remove();
|
||||||
refreshRowColor();
|
refreshRowColor('table.songlist');
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
$('table.songlist tr.song a.rate').live('click', function (event) {
|
$('table.songlist tr.song a.rate').live('click', function (event) {
|
||||||
|
@ -349,8 +349,8 @@
|
||||||
});
|
});
|
||||||
// Current Playlist Click Events
|
// Current Playlist Click Events
|
||||||
$('#action_Shuffle').live('click', function () {
|
$('#action_Shuffle').live('click', function () {
|
||||||
$('#CurrentPlaylistContainer tr.song').shuffle();
|
$('#CurrentPlaylistContainer tbody tr.song').shuffle();
|
||||||
refreshRowColor();
|
refreshRowColor('#CurrentPlaylistContainer tbody');
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
$('#action_Empty').live('click', function () {
|
$('#action_Empty').live('click', function () {
|
||||||
|
@ -448,8 +448,8 @@
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
$('#action_ShufflePlaylist').live('click', function () {
|
$('#action_ShufflePlaylist').live('click', function () {
|
||||||
$('#TrackContainer tr.song').shuffle();
|
$('#TrackContainer tbody tr.song').shuffle();
|
||||||
refreshRowColor();
|
refreshRowColor('#TrackContainer tbody');
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -593,4 +593,24 @@
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// JQuery UI Sortable - Drag and drop sorting
|
||||||
|
var fixHelper = function (e, ui) {
|
||||||
|
ui.children().each(function () {
|
||||||
|
$(this).width($(this).width());
|
||||||
|
});
|
||||||
|
return ui;
|
||||||
|
};
|
||||||
|
$("#CurrentPlaylistContainer tbody").sortable({
|
||||||
|
helper: fixHelper,
|
||||||
|
stop: function() {
|
||||||
|
refreshRowColor('#CurrentPlaylistContainer tbody');
|
||||||
|
}
|
||||||
|
}).disableSelection();
|
||||||
|
$("#TrackContainer tbody").sortable({
|
||||||
|
helper: fixHelper,
|
||||||
|
stop: function () {
|
||||||
|
refreshRowColor('#TrackContainer tbody');
|
||||||
|
}
|
||||||
|
}).disableSelection();
|
||||||
|
|
||||||
}); // End document.ready
|
}); // End document.ready
|
|
@ -154,6 +154,7 @@ h3.title
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 39px;
|
top: 39px;
|
||||||
left: 60px;
|
left: 60px;
|
||||||
|
outline: none;
|
||||||
}
|
}
|
||||||
.lgsection
|
.lgsection
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue