diff options
author | mr <mr@mrautenberg.de> | 2011-07-11 12:03:21 +0200 |
---|---|---|
committer | mr <mr@mrautenberg.de> | 2011-07-11 12:03:21 +0200 |
commit | 8f750e73832be3cccba8e53548e5ce7ffde2014b (patch) | |
tree | 6953ad2930192ff4a9638f4167db8e4a4a1b34a0 | |
parent | a6bc5cd38c6880653fc4f30d1418ca8f664c9379 (diff) |
do not refresh when an error occurs
-rwxr-xr-x | public/javascripts/toxcreate.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/javascripts/toxcreate.js b/public/javascripts/toxcreate.js index d9946c4..1769623 100755 --- a/public/javascripts/toxcreate.js +++ b/public/javascripts/toxcreate.js @@ -50,7 +50,7 @@ $(function() { if( status_before != status_after) { $("span#model_" + id + "_status").html(data); loadModel(id, 'model'); - if (status_after == "Completed") id = -1; + if (status_after == "Completed" || status_after == "Error") id = -1; } }, error: function(data) { |