cherryext/orun/extjs/static/extjs-upload-widget/lib/upload/uploader/DummyUploader.js

22 lines
513 B
JavaScript
Raw Normal View History

2018-08-15 11:12:01 +03:00
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() {
}
});