Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/admin_templates/js/uploader/uploader.js
Show First 20 Lines • Show All 125 Lines • ▼ Show 20 Line(s) | |||||
return mb + ' MB'; | return mb + ' MB'; | ||||
}; | }; | ||||
/* ==== Public methods ==== */ | /* ==== Public methods ==== */ | ||||
Uploader.prototype.init = function() { | Uploader.prototype.init = function() { | ||||
var $me = this, | var $me = this, | ||||
$uploader_options = { | $uploader_options = { | ||||
runtimes : 'flash,html4', // html5 | runtimes : 'html5,flash,html4', | ||||
chunk_size: '1mb', | chunk_size: '1mb', | ||||
browse_button : this.id + '_browse_button', | browse_button : this.id + '_browse_button', | ||||
container: this.id + '_container', | container: this.id + '_container', | ||||
url : this.params.uploadURL, | url : this.params.uploadURL, | ||||
flash_swf_url : this.params.baseUrl + '/Moxie.swf', | flash_swf_url : this.params.baseUrl + '/Moxie.swf', | ||||
multi_selection: this.params.multiple > 1, | multi_selection: this.params.multiple > 1, | ||||
filters : {}, | filters : {}, | ||||
init: {} | init: {} | ||||
▲ Show 20 Lines • Show All 537 Lines • ▼ Show 20 Line(s) | |||||
} | } | ||||
return false; | return false; | ||||
}; | }; | ||||
Uploader.prototype.onReady = function() { | Uploader.prototype.onReady = function() { | ||||
this.ready = true; | this.ready = true; | ||||
UploadsManager.onReady(); | UploadsManager.onReady(); | ||||
}; | }; | ||||
No newline at end of file |