uploads/custom/js/careplantarget/careplantarget.js
/* function added by Dhara Bhalala for conclude option */
function added by Dhara Bhalala for conclude option
function added by Dhara Bhalala for conclude option
function conclude_ks(cpt_id,yp_id)
{
    BootstrapDialog.show(
        {
            title: 'Confirm!',
            message: "<strong> Are you sure want to Conclude Care Plan Target ? <strong>",
            buttons: [{
                    label: 'Cancel',
                    action: function (dialog) {
                        dialog.close();
                    }
                }, {
                    label: 'Ok',
                    action: function (dialog) {                        
                        dialog.close();
                        $.ajax({
                            type: "POST",
                            url: baseurl +'/CarePlanTarget/concludeCPT',
                            data: {
                                cpt_id: cpt_id,yp_id: yp_id
                            },
                            success: function (html) {
                               $("#conclude_option_"+cpt_id).hide();
                               $("#concluded_option_"+cpt_id).show();
                            },
                            error: function (xhr, ajaxOptions, thrownError) {
                                    alert('Try again');
                                    location.reload();
                                }
                        });
                    }
                }]
        });
}
function conclude_ks ( cpt_id , yp_id ) { BootstrapDialog . show ( { title : 'Confirm!' , message : "<strong> Are you sure want to Conclude Care Plan Target ? <strong>" , buttons : [ { label : 'Cancel' , action : function ( dialog ) { dialog . close ( ) ; } } , { label : 'Ok' , action : function ( dialog ) { dialog . close ( ) ; $ . ajax ( { type : "POST" , url : baseurl + '/CarePlanTarget/concludeCPT' , data : { cpt_id : cpt_id , yp_id : yp_id } , success : function ( html ) { $ ( "#conclude_option_" + cpt_id ) . hide ( ) ; $ ( "#concluded_option_" + cpt_id ) . show ( ) ; } , error : function ( xhr , ajaxOptions , thrownError ) { alert ( 'Try again' ) ; location . reload ( ) ; } } ) ; } } ] } ) ; }
function added by Dhara Bhalala for conclude option
function added by Dhara Bhalala for conclude option