summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authormr <mr@mrautenberg.de>2011-01-19 13:44:57 +0100
committermr <mr@mrautenberg.de>2011-01-19 13:44:57 +0100
commit5f19f4776bb72d5d15471ecdea19d045fe157702 (patch)
tree802448ad336a47975ef4bf0a0ec8bf0549d32552 /public
parentf5107eebb9afc0a54c34b6cbbf6859022e8f19c8 (diff)
javascripts: fix status changes - changes to delete model pt2
Diffstat (limited to 'public')
-rwxr-xr-xpublic/javascripts/toxcreate.js2
1 files changed, 1 insertions, 1 deletions
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);