Validate the code as submitted, not as it is in the database
[L-seed.git] / web / js / communication.js
index ee0db69..2c1ea6e 100644 (file)
@@ -595,7 +595,11 @@ Lseed.Editor = function() {
                                ,icon: Ext.MessageBox.Info
                        });
                } else {
+                       // This is a hack for now:
                        var pdEditor = Ext.getCmp("plantdefinitioneditor");
+                       if (!pdEditor) {
+                               var pdEditor = Ext.getCmp("editplantdefinitioneditor");
+                       }
                        if (pdEditor) {
                                communication.stopWaitingForPage();
                                Ext.MessageBox.show({