X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Pman.Download.js;h=62e845b705b538e49ac07548a74e625f89eb4998;hb=dff7116c31985c523f927df3e8e7cf50670ef428;hp=44831206254b9b454dcecd17c061f42d12398334;hpb=aab2a109528c12b2026f1e41b7cd253a44f29e49;p=Pman.Core diff --git a/Pman.Download.js b/Pman.Download.js index 44831206..62e845b7 100644 --- a/Pman.Download.js +++ b/Pman.Download.js @@ -23,7 +23,7 @@ var t = new Pman.Download({ * @cfg {Boolean} newWindow (optional) download to new window * @cfg {String} doctype (optional) download PDF to new window * @cfg {Boolean} limit (optional) limit for grid downloads. - +* @cfg {Boolean} showDownloading default false - show a dialog indicating that the file is downloading * @cfg {String} csvCols - use '*' to override grid coluns * @cfg {String} csvTitles - use '*' to override grid coluns * @cfg {String} hiddenCols - default 'show' (use 'hide' to not display them on download) @@ -163,7 +163,9 @@ Pman.Download = function(cfg) } } - Roo.MessageBox.alert("Downloading", "The file should download shortly"); + if (this.showDownloading) { + Roo.MessageBox.alert("Downloading", "The file should download shortly"); + } req.send(this.form); /* (function() { @@ -198,7 +200,7 @@ Roo.apply(Pman.Download.prototype, { hiddenCols : 'show', // set to 'hide' to hide them.. - + showDownloading : false, // private.. //used by simple GET method. createCsvFrame: function()