Skip to content

Commit 7eded76

Browse files
committed
diable all form elements on complete or failed
1 parent 98bfc98 commit 7eded76

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

OpenFlow/src/public/Controllers.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1989,10 +1989,14 @@ module openflow {
19891989
console.error(errors);
19901990
});
19911991
}
1992-
$('#workflowform :input').prop("disabled", true);
1993-
$('#workflowform :button').prop("disabled", true);
1994-
$('#workflowform :input').addClass("disabled");
1995-
$('#workflowform :button').addClass("disabled");
1992+
if (this.model.state == "completed" || this.model.state == "failed") {
1993+
$('#workflowform :input').prop("disabled", true);
1994+
$('#workflowform :button').prop("disabled", true);
1995+
$('#workflowform :input').addClass("disabled");
1996+
$('#workflowform :button').addClass("disabled");
1997+
$("#workflowform :input").unbind();
1998+
$("#workflowform :button").unbind();
1999+
}
19962000
if (!this.$scope.$$phase) { this.$scope.$apply(); }
19972001
}
19982002

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.527
1+
0.0.528

0 commit comments

Comments
 (0)