Merge pull request #24281 from owncloud/backport-disable-paste-zone

[stable9] Disable pastezone for jquery.fileupload
This commit is contained in:
C. Montero Luque 2016-04-26 14:49:38 -04:00
commit 438d451391
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') {