projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24aedf6
)
Roo/bootstrap/DocumentViewer.js
author
edward
<edward@roojs.com>
Wed, 11 Oct 2017 03:48:24 +0000
(11:48 +0800)
committer
edward
<edward@roojs.com>
Wed, 11 Oct 2017 03:48:24 +0000
(11:48 +0800)
Roo/bootstrap/DocumentViewer.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/DocumentViewer.js
b/Roo/bootstrap/DocumentViewer.js
index
6acf1d1
..
87c1137
100644
(file)
--- a/
Roo/bootstrap/DocumentViewer.js
+++ b/
Roo/bootstrap/DocumentViewer.js
@@
-138,20
+138,23
@@
Roo.extend(Roo.bootstrap.DocumentViewer, Roo.bootstrap.Component, {
this.downloadBtn.on('click', this.onDownload, this);
this.trashBtn.on('click', this.onTrash, this);
- this.footerEl.hide();
this.downloadBtn.hide();
this.trashBtn.hide();
if(this.showDownload){
- this.footerEl.show();
this.downloadBtn.show();
}
if(this.showTrash){
- this.footerEl.show();
this.trashBtn.show();
}
+ if(!this.showDownload && !this.showTrash) {
+ this.footerEl.hide();
+ }
+
+
+
},
initial : function()