projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
351c551
)
make downloading dialog optional
author
Alan Knowles
<alan@roojs.com>
Mon, 24 May 2021 03:12:33 +0000
(11:12 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 24 May 2021 03:12:33 +0000
(11:12 +0800)
Pman.Download.js
patch
|
blob
|
history
diff --git
a/Pman.Download.js
b/Pman.Download.js
index
4483120
..
07103f6
100644
(file)
--- 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} 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)
* @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() {
req.send(this.form);
/*
(function() {