From 2e79dc191027651acdda0e63c32da78a9c33148b Mon Sep 17 00:00:00 2001 From: mguetlein Date: Mon, 11 Jul 2011 14:02:59 +0200 Subject: modify error handling in toxcreate model creation --- public/javascripts/toxcreate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'public') 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) { -- cgit v1.2.3