Remove unused jQuery add-multiple / core.js

- Class changes & event handling is now located within the HTML / ZoneController Stimulus usage
pull/12612/head
ayaan-qadri 2024-11-13 20:25:03 +05:30 zatwierdzone przez LB (Ben Johnston)
rodzic cc342bbd1c
commit 87f22bebf0
3 zmienionych plików z 0 dodań i 22 usunięć

Wyświetl plik

@ -1,4 +1,3 @@
import $ from 'jquery';
import * as StimulusModule from '@hotwired/stimulus';
import { Icon, Portal } from '../..';
@ -58,14 +57,3 @@ window.MultipleChooserPanel = MultipleChooserPanel;
*/
window.URLify = (str, numChars = 255, allowUnicode = false) =>
urlify(str, { numChars, allowUnicode });
$(() => {
/* Dropzones */
$('.drop-zone')
.on('dragover', function onDragOver() {
$(this).addClass('hovered');
})
.on('dragleave dragend drop', function onDragLeave() {
$(this).removeClass('hovered');
});
});

Wyświetl plik

@ -1,9 +1,4 @@
$(function () {
// prevents browser default drag/drop
$(document).on('drop dragover', function (e) {
e.preventDefault();
});
$('#fileupload').fileupload({
dataType: 'html',
sequentialUploads: true,

Wyświetl plik

@ -1,9 +1,4 @@
$(function () {
// prevents browser default drag/drop
$(document).on('drop dragover', function (e) {
e.preventDefault();
});
$('#fileupload').fileupload({
dataType: 'html',
sequentialUploads: true,