var isPlayingIdx = -1;
function voteUP (parent, dataString, ind, type_of_song){
$.ajax({
type: "POST",
url: VOTE_URL + "up_vote_new.php",
data: dataString,
cache: false,
success: function(data){
re = jQuery.parseJSON(data);
parent.html(re.message);
parent.addClass('voted');
$('#vote' + ind + "_sym").attr('src', re.symb);
}
});
}
function votePlus (parent, dataString, ind, type_of_song){
$.ajax({
type: "POST",
url: VOTE_URL + "up_voteplus_new.php",
data: dataString,
cache: false,
success: function(data){
re = jQuery.parseJSON(data);
parent.html(re.message);
parent.addClass('voted');
$('#voteplus' + ind + "_sym").attr('src', re.symb);
}
});
}
function prevPlay(path, i, type) {
if(path != 'NULL') {
if(i + type != isPlayingIdx) {
$('.prev_player').html("");
$(".player_container_" + type + i).html(
"");
isPlayingIdx = i + type;
}
} else {
alert("Această melodie nu are o previzualizare!");
}
}x
Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586