Thứ Ba, 6 tháng 9, 2016

Confirm before sent work item


require(["dojo/_base/declare",
               "dojo/_base/lang",
               "icm/base/Constants",
               "icm/dialog/addcommentdialog/AddCommentDialog",
               "icm/action/case/CaseAction"],
               function(declare, lang,Constants, AddCommentDialog, CaseAction) {

                               payload.coordination.participate('BEFORECOMPLETE', lang.hitch(this,
                                               function(context, complete, abort) {
                                                              
                                 if(window.confirm("Are you sure you want to complete the step?") == true){
                                complete();
                        }
                        else
                        {
                                    abort();
                         }
}));
});

return payload; 

Không có nhận xét nào:

Đăng nhận xét