I think a nice solution would be to add a data attribute to .btn-delete-news and fill it with the target url so that in your JS you can read it out and use it as target url:
PHP:
<button class="btn-delete-news" data-target="<?php echo Yii::app()->createUrl('/news/delete'); ?>" />
JS (with jQuery):
$(".btn-delete-news").click(function() {
if (!confirm('Are you sure to delete ?')) return false;
var idNews = $(this).attr('news-info');
console.log(idNews);
$.ajax({
url: $(this).data('target'),
data: { id : idNews },
type:"POST",
success: function(data){
if(data == "1") {
window.location = "/news/";
}
}
});
});
You could do the same for the target location if you'd want to