changed to gplv2 open source license

This commit is contained in:
Trevor Squillario 2012-10-26 15:07:24 -04:00
parent 7c9b713ae7
commit 30cabbb9d2
4 changed files with 356 additions and 22 deletions

View file

@ -40,7 +40,7 @@ function playSong(el, songid, albumid, position, loadonly) {
$('#songdetails_song').attr('parentid', albumid);
$('#songdetails_song').attr('childid', songid);
$('#songdetails_artist').html(artist + ' - ' + album);
$('#songdetails_artist').attr('title', artist + ' - ' + album);
$('#songdetails_artist').attr('title', toHTML.un(artist + ' - ' + album));
var coverartSrc, coverartFullSrc;
if (coverart == undefined) {
coverartSrc = 'images/albumdefault_56.jpg';

View file

@ -126,6 +126,7 @@ function updateStatus(el, msg) {
}
}
// Convert to unicode support
/* Old
var toHTML = {
on: function (str) {
var a = [],
@ -140,6 +141,21 @@ var toHTML = {
})
}
};
*/
var toHTML = {
on: function (str) {
var a = [],
i = 0;
for (; i < str.length; ) a[i] = str.charCodeAt(i++);
return "&#" + a.join(";&#") + ";"
},
un: function (str) {
return str.replace(/&#(x)?([^;]{1,5});?/g,
function (a, b, c) {
return String.fromCharCode(parseInt(c, b ? 16 : 10))
})
}
};
function getParameterByName(name) {
name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
var regexS = "[\\?&]" + name + "=([^&#]*)";