{
e.preventDefault();
- if(this.loadMask){
- this.maskEl.mask(this.loadingText);
- }
-
if(typeof(this.selectorEl.dom.files) == 'undefined' || !this.selectorEl.dom.files.length){
return;
}
return;
}
- if(this.loadMask){
- this.maskEl.mask(this.loadingText);
- }
-
var imageCanvas = document.createElement("canvas");
var imageContext = imageCanvas.getContext("2d");
process : function(file, crop)
{
+ if(this.loadMask){
+ this.maskEl.mask(this.loadingText);
+ }
+
this.xhr = new XMLHttpRequest();
file.xhr = this.xhr;
xhrOnLoad : function(xhr)
{
+ if(this.loadMask){
+ this.maskEl.unmask();
+ }
+
if (xhr.readyState !== 4) {
this.fireEvent('exception', this, xhr);
return;
xhrOnError : function()
{
+ if(this.loadMask){
+ this.maskEl.unmask();
+ }
+
Roo.log('xhr on error');
var response = Roo.decode(xhr.responseText);
prepare : function(file)
{
+ if(this.loadMask){
+ this.maskEl.mask(this.loadingText);
+ }
+
this.file = false;
this.exif = {};