Pman.Tab.BuilderPalette.bjs
[Pman.Builder] / Pman.Builder.JsRender.js
index ffc8207..0394d34 100644 (file)
@@ -388,12 +388,11 @@ Pman.Builder.JsRender.prototype =  {
         // we have 2 types = dialogs and components
         // 
         var top = this.guessName(this.items[0]);
-        Roo.log('toSource');
-        Roo.log(top);
+        
         if (!top) {
             return false;
         }
-        if (top.match(/Dialog/)) {
+        if (top.match(/Dialog/) || top.match(/Modal/)) {
             return this.toSourceDialog();
         }
         return this.toSourceLayout();