Commit 5940daa5 authored by onny's avatar onny

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

parent 6034bc24
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment