php7 fixes
[Pman.Builder] / Pman.Builder.JsRender.js
index fecac1b..0394d34 100644 (file)
@@ -388,10 +388,11 @@ Pman.Builder.JsRender.prototype =  {
         // we have 2 types = dialogs and components
         // 
         var top = this.guessName(this.items[0]);
+        
         if (!top) {
             return false;
         }
-        if (top.match(/Dialog/)) {
+        if (top.match(/Dialog/) || top.match(/Modal/)) {
             return this.toSourceDialog();
         }
         return this.toSourceLayout();