Roo/bootstrap/DocumentViewer.js
authoredward <edward@roojs.com>
Wed, 11 Oct 2017 03:48:24 +0000 (11:48 +0800)
committeredward <edward@roojs.com>
Wed, 11 Oct 2017 03:48:24 +0000 (11:48 +0800)
Roo/bootstrap/DocumentViewer.js

index 6acf1d1..87c1137 100644 (file)
@@ -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()