File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 1- 0.0.527
1+ 0.0.528
You can’t perform that action at this time.
0 commit comments