Merge pull request #23495 from owncloud/disable-paste-zone

Disable pastezone for jquery.fileupload
This commit is contained in:
Thomas Müller 2016-03-23 09:03:50 +01:00
commit a25872e034
3 changed files with 3 additions and 0 deletions

View File

@ -274,6 +274,7 @@ OC.Upload = {
if ( $('#file_upload_start').exists() ) {
var file_upload_param = {
dropZone: $('#content'), // restrict dropZone to content div
pasteZone: null,
autoUpload: false,
sequentialUploads: true,
//singleFileUploads is on by default, so the data.files array will always have length 1

View File

@ -16,6 +16,7 @@ $(document).ready(function () {
$('#sslCertificate tr > td').tipsy({gravity: 'n', live: true});
$('#rootcert_import').fileupload({
pasteZone: null,
submit: function (e, data) {
data.formData = _.extend(data.formData || {}, {
requesttoken: OC.requestToken

View File

@ -244,6 +244,7 @@ $(document).ready(function () {
});
var uploadparms = {
pasteZone: null,
done: function (e, data) {
var response = data;
if (typeof data.result === 'string') {