function news_bysite(id) {

  app.preloader.show('multi');

  $.ajax({

    type: "post",

    url: base_url+'news/?limit=100&site='+id,

    success: (res) => {

      if (res.success) {

        app.preloader.hide();

        set_localstorage('site_'+id,res.data);

        localstorage_InsUpdate('byid',res.byid);

      } else {

        app.preloader.hide();

        app.dialog.alert(res.message, 'Error get latest');

      }

    }

  })

}