Skip to content

Commit fcdae42

Browse files
authored
Created Script.js file
1 parent 76ba1c9 commit fcdae42

File tree

1 file changed

+13
-0
lines changed
  • Client-Side Components/UI Actions/Incident Cancellation

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
function cancelincident() {
2+
confirm("Do you want to cancel the incident ?");
3+
gsftSubmit(null, g_form.getFormElement(), 'cancel_inc');
4+
}
5+
if (typeof window == "undefined")
6+
cancellingincident();
7+
8+
function cancellingincident() {
9+
current.state = 8;
10+
current.work_notes = "Cancelled this incident";
11+
current.update();
12+
action.setRedirectURL(current);
13+
}

0 commit comments

Comments
 (0)