We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76ba1c9 commit fcdae42Copy full SHA for fcdae42
Client-Side Components/UI Actions/Incident Cancellation/Script.js
@@ -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