pianello-api/resources/js/components/calendar/draggable/index.js
Ale Gallo 82f958e5da Committing laravel (part 3)
committing js templating files and components
2023-11-10 16:00:59 +01:00

17 lines
485 B
JavaScript

(function () {
"use strict";
$(".full-calendar-draggable").each(function () {
new Draggable(this, {
itemSelector: ".event",
eventData: function (eventEl) {
return {
title: $(eventEl).find(".event__title").html(),
duration: {
days: parseInt($(eventEl).find(".event__days").text()),
},
};
},
});
});
})();