Roo/bootstrap/DocumentManager.js
authoredward <edward@roojs.com>
Wed, 17 Feb 2016 06:21:53 +0000 (14:21 +0800)
committeredward <edward@roojs.com>
Wed, 17 Feb 2016 06:21:53 +0000 (14:21 +0800)
Roo/bootstrap/DocumentManager.js

index 1a87b0e..4e14437 100644 (file)
@@ -355,6 +355,15 @@ Roo.extend(Roo.bootstrap.DocumentManager, Roo.bootstrap.Component,  {
         
     },
     
+    closable : function(closable)
+    {
+        Roo.each(this.el.select('.roo-document-manager-preview > button.close', true).elements, function(el){
+            
+            (closable) ? el.show() : el.hide();
+            
+        }, this);
+    },
+    
     xhrOnLoad : function(xhr)
     {
         if (xhr.readyState !== 4) {