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 * as StimulusModule from '@hotwired/stimulus';
|
||||||
|
|
||||||
import { Icon, Portal } from '../..';
|
import { Icon, Portal } from '../..';
|
||||||
|
@ -58,14 +57,3 @@ window.MultipleChooserPanel = MultipleChooserPanel;
|
||||||
*/
|
*/
|
||||||
window.URLify = (str, numChars = 255, allowUnicode = false) =>
|
window.URLify = (str, numChars = 255, allowUnicode = false) =>
|
||||||
urlify(str, { numChars, allowUnicode });
|
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 () {
|
$(function () {
|
||||||
// prevents browser default drag/drop
|
|
||||||
$(document).on('drop dragover', function (e) {
|
|
||||||
e.preventDefault();
|
|
||||||
});
|
|
||||||
|
|
||||||
$('#fileupload').fileupload({
|
$('#fileupload').fileupload({
|
||||||
dataType: 'html',
|
dataType: 'html',
|
||||||
sequentialUploads: true,
|
sequentialUploads: true,
|
||||||
|
|
|
@ -1,9 +1,4 @@
|
||||||
$(function () {
|
$(function () {
|
||||||
// prevents browser default drag/drop
|
|
||||||
$(document).on('drop dragover', function (e) {
|
|
||||||
e.preventDefault();
|
|
||||||
});
|
|
||||||
|
|
||||||
$('#fileupload').fileupload({
|
$('#fileupload').fileupload({
|
||||||
dataType: 'html',
|
dataType: 'html',
|
||||||
sequentialUploads: true,
|
sequentialUploads: true,
|
||||||
|
|
Ładowanie…
Reference in New Issue