Merge pull request #23495 from owncloud/disable-paste-zone
Disable pastezone for jquery.fileupload
This commit is contained in:
commit
a25872e034
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -244,6 +244,7 @@ $(document).ready(function () {
|
|||
});
|
||||
|
||||
var uploadparms = {
|
||||
pasteZone: null,
|
||||
done: function (e, data) {
|
||||
var response = data;
|
||||
if (typeof data.result === 'string') {
|
||||
|
|
Loading…
Reference in New Issue