fixed left menue active selection, fix remove entry when deleting favorite station
This commit is contained in:
parent
6034bc24e1
commit
5940daa53d
@ -36,7 +36,9 @@ $(function(){
|
|||||||
url: baseUrl + '/stations/' + data[station]["id"],
|
url: baseUrl + '/stations/' + data[station]["id"],
|
||||||
method: 'DELETE'
|
method: 'DELETE'
|
||||||
}).done(function(){
|
}).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);
|
radio_query(2);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
$('li.nav-favorite').addClass('active');
|
$('li.nav-favorites').addClass('active');
|
||||||
action_load_favorites();
|
action_load_favorites();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user