File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Client-Side Components/UI Pages/Resolve Incident UI Page Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 1+ function ResolveIncident ( sysId ) {
2+ var rejectionReason = document . getElementById ( 'resolution_reason' ) . value ;
3+ var resolutionCode = document . getElementById ( 'resolution_code' ) . value ;
4+ var ga = new GlideAjax ( 'ResolutionProcessor' ) ;
5+ ga . addParam ( 'sysparm_name' , 'updateRecord' ) ;
6+ ga . addParam ( 'sysparm_record_id' , sysId ) ;
7+ ga . addParam ( 'sysparm_reason' , rejectionReason ) ;
8+ ga . addParam ( 'sysparm_resolution' , resolutionCode ) ;
9+ ga . getXML ( handleSuccessfulSubmit ) ;
10+ GlideDialogWindow . get ( ) . destroy ( ) ;
11+ return false ;
12+ function handleSuccessfulSubmit ( answer ) {
13+ window . location . reload ( ) ;
14+ }
15+ }
16+ function closeDialog ( ) {
17+ GlideDialogWindow . get ( ) . destroy ( ) ;
18+ return false ;
19+ }
You can’t perform that action at this time.
0 commit comments