projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cccfb78
)
Roo/bootstrap/DocumentManager.js
author
edward
<edward@roojs.com>
Wed, 17 Feb 2016 06:22:52 +0000
(14:22 +0800)
committer
edward
<edward@roojs.com>
Wed, 17 Feb 2016 06:22:52 +0000
(14:22 +0800)
Roo/bootstrap/DocumentManager.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/DocumentManager.js
b/Roo/bootstrap/DocumentManager.js
index
7e6ec51
..
ccac12b
100644
(file)
--- a/
Roo/bootstrap/DocumentManager.js
+++ b/
Roo/bootstrap/DocumentManager.js
@@
-357,7
+357,14
@@
Roo.extend(Roo.bootstrap.DocumentManager, Roo.bootstrap.Component, {
{
Roo.each(this.el.select('.roo-document-manager-preview > button.close', true).elements, function(el){
- (closable) ? el.show() : el.hide();
+ el.setVisibilityMode(Roo.Element.DISPLAY).originalDisplay = 'block';
+
+ if(closable){
+ el.show();
+ return;
+ }
+
+ el.hide();
}, this);
},