From 5f19f4776bb72d5d15471ecdea19d045fe157702 Mon Sep 17 00:00:00 2001 From: mr Date: Wed, 19 Jan 2011 13:44:57 +0100 Subject: javascripts: fix status changes - changes to delete model pt2 --- 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 5acabe9..54ab19f 100755 --- a/public/javascripts/toxcreate.js +++ b/public/javascripts/toxcreate.js @@ -41,7 +41,7 @@ $(function() { }, success: function(data) { var status_before = ""; - if ($("span#model_" + id + "_status").html()) status_before = $("span#model_" + id + "_status").html().trim(); + if ($("span#model_" + id + "_status") !== null) status_before = $("span#model_" + id + "_status").html().trim(); var status_after = data.trim(); $("span#model_" + id + "_status").animate({"opacity": "0.2"},1000); $("span#model_" + id + "_status").animate({"opacity": "1"},1000); -- cgit v1.2.3