projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e365de7
)
Roo/bootstrap/DocumentManager.js
author
edward
<edward@roojs.com>
Tue, 15 Mar 2016 02:38:29 +0000
(10:38 +0800)
committer
edward
<edward@roojs.com>
Tue, 15 Mar 2016 02:38:29 +0000
(10:38 +0800)
Roo/bootstrap/DocumentManager.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/DocumentManager.js
b/Roo/bootstrap/DocumentManager.js
index
7c92018
..
5a8b1d4
100644
(file)
--- a/
Roo/bootstrap/DocumentManager.js
+++ b/
Roo/bootstrap/DocumentManager.js
@@
-490,14
+490,18
@@
Roo.extend(Roo.bootstrap.DocumentManager, Roo.bootstrap.Component, {
process : function(file)
{
- if(this.editable && file.type.indexOf('image') != -1){
- this.fireEvent('edit', this, file);
+ if(this.fireEvent('beforeprocess', this) !== false){
+
+ if(this.editable && file.type.indexOf('image') != -1){
+ this.fireEvent('edit', this, file);
+ return;
+ }
+
+ this.uploadStart(file, false);
+
return;
}
- this.uploadStart(file, false);
-
- return;
},
uploadStart : function(file, crop)