22 lines
513 B
JavaScript
22 lines
513 B
JavaScript
|
Ext.define('Ext.ux.upload.uploader.DummyUploader', {
|
||
|
extend : 'Ext.ux.upload.uploader.AbstractUploader',
|
||
|
|
||
|
delay : 1000,
|
||
|
|
||
|
uploadItem : function(item) {
|
||
|
item.setUploading();
|
||
|
|
||
|
var task = new Ext.util.DelayedTask(function() {
|
||
|
this.fireEvent('uploadsuccess', item, {
|
||
|
success : true,
|
||
|
message : 'OK',
|
||
|
response : null
|
||
|
});
|
||
|
}, this);
|
||
|
|
||
|
task.delay(this.delay);
|
||
|
},
|
||
|
|
||
|
abortUpload : function() {
|
||
|
}
|
||
|
});
|