From c7de2d229dcc7a2125d2d6626aafcc9f7428e272 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Fri, 10 Jan 2014 15:02:50 +0000 Subject: [PATCH] Better check to make sure change callback doesn't run during template rendering - handles template reloads --- infolog/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infolog/js/app.js b/infolog/js/app.js index e054ecf99f..0a2b3e02e4 100644 --- a/infolog/js/app.js +++ b/infolog/js/app.js @@ -221,7 +221,7 @@ app.classes.infolog = AppJS.extend( status_changed: function(changed_id, status_id, percent_id, datecompleted_id) { // Make sure this doesn't get executed while template is loading - if(this.et2 == null) return; + if(this.et2 == null || this.et2.getInstanceManager() == null) return; var status = document.getElementById(status_id); var percent = document.getElementById(percent_id);