fixed left menue active selection, fix remove entry when deleting favorite station

This commit is contained in:
Jonas Heinrich 2017-08-05 17:59:25 +02:00
parent 6034bc24e1
commit 5940daa53d

View File

@ -36,7 +36,9 @@ $(function(){
url: baseUrl + '/stations/' + data[station]["id"],
method: 'DELETE'
}).done(function(){
alert('delete row pls');
if ($('li.nav-favorites').hasClass('active')){
$( "tr[data-id='"+data[station]["stationid"]+"']" ).remove();
};
});
};
};
@ -152,7 +154,7 @@ $(function(){
radio_query(2);
break;
case 2:
$('li.nav-favorite').addClass('active');
$('li.nav-favorites').addClass('active');
action_load_favorites();
break;
}