kopia lustrzana https://github.com/wagtail/wagtail
Remove unused jQuery add-multiple / core.js
- Class changes & event handling is now located within the HTML / ZoneController Stimulus usagepull/12612/head
rodzic
cc342bbd1c
commit
87f22bebf0
|
@ -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');
|
||||
});
|
||||
});
|
||||
|
|
|
@ -1,9 +1,4 @@
|
|||
$(function () {
|
||||
// prevents browser default drag/drop
|
||||
$(document).on('drop dragover', function (e) {
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
$('#fileupload').fileupload({
|
||||
dataType: 'html',
|
||||
sequentialUploads: true,
|
||||
|
|
|
@ -1,9 +1,4 @@
|
|||
$(function () {
|
||||
// prevents browser default drag/drop
|
||||
$(document).on('drop dragover', function (e) {
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
$('#fileupload').fileupload({
|
||||
dataType: 'html',
|
||||
sequentialUploads: true,
|
||||
|
|
Ładowanie…
Reference in New Issue