function action_edit(req) {

  app.preloader.show();

  $.ajax({

    type: "post",

    url: base_url + 'action_edit',

    data: req,

    success: (res) => {

      if (res.success) {

        app.preloader.hide();

        localStorage.removeItem('f05_action'); 

        localStorage.setItem('f05_action', JSON.stringify({

          data: res.data

        }))

        showToast('Update action successfully');

        //app.views.main.router.navigate('/action/');

      } else {

        app.preloader.hide();

        app.dialog.alert(res.message, 'Edit action error');

      }

    }

  })

}