resources/Editors/Editor.Roo.LayoutDialog.bjs
[app.Builder.js] / resources / Editors / Editor.Roo.LayoutDialog.js
index 08e0eb4..ba04bfd 100644 (file)
@@ -525,6 +525,26 @@ Editor.Roo.LayoutDialog = new Roo.XComponent({
    
        //alert("IPC:TEST:" + JSON.stringify(data,null,4));
    
+       var textFile = null,
+       
+       var makeTextFile = function (text) {
+           var data = new Blob([text], {type: 'text/plain'});
+   
+           // If we are replacing a previously generated file we need to
+           // manually revoke the object URL to avoid memory leaks.
+           if (textFile !== null) {
+             window.URL.revokeObjectURL(textFile);
+           }
+   
+           textFile = window.URL.createObjectURL(data);
+   
+           return textFile;
+         };
+       
+       
+       alert("IPC:TEST:" + makeTextFile(JSON.stringify(data,null,4)));
+       return;
+       
        var fields = _this.grid.dataSource.reader.recordType.prototype.fields;