X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=docs%2Fsymbols%2Fsrc%2FRoo_bootstrap_DocumentManager.js.html;h=78f437c7cad5eca8b32dc0a8c81389746ff518a6;hb=a3ec8777c498bf0a5c4bbc557284a25057387b91;hp=6e24a6502ca118d0f6a4d2132966711530d72e33;hpb=8c9cba9fbfc184f0f3e12995f3652d9e74406f8d;p=roojs1
diff --git a/docs/symbols/src/Roo_bootstrap_DocumentManager.js.html b/docs/symbols/src/Roo_bootstrap_DocumentManager.js.html
index 6e24a6502c..78f437c7ca 100644
--- a/docs/symbols/src/Roo_bootstrap_DocumentManager.js.html
+++ b/docs/symbols/src/Roo_bootstrap_DocumentManager.js.html
@@ -86,7 +86,14 @@
* Fire before select file
* @param {Roo.bootstrap.DocumentManager} this
*/
- "beforeselectfile" : true
+ "beforeselectfile" : true,
+ "process" : true
});
};
@@ -490,14 +497,17 @@
process : function(file)
{
- if(this.editable && file.type.indexOf('image') != -1){
- this.fireEvent('edit', this, file);
+ if(this.fireEvent('process', this, file) !== 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)