mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-03-11 00:30:11 +01:00
Rimozione evento trascinato su calendario
This commit is contained in:
parent
5a2708dd30
commit
c3f47d2b31
@ -415,10 +415,9 @@ globals.dashboard = {
|
|||||||
$("#elenco-promemoria").html(data);
|
$("#elenco-promemoria").html(data);
|
||||||
|
|
||||||
$("#external-events .fc-event").each(function () {
|
$("#external-events .fc-event").each(function () {
|
||||||
new Draggable( document.getElementById( $(this).attr("id") ), {
|
new Draggable( this, {
|
||||||
zIndex: 999,
|
create: false,
|
||||||
revert: true,
|
revert: true,
|
||||||
revertDuration: 0,
|
|
||||||
eventData: {
|
eventData: {
|
||||||
title: $.trim($(this).text()),
|
title: $.trim($(this).text()),
|
||||||
stick: false
|
stick: false
|
||||||
@ -556,7 +555,6 @@ globals.dashboard = {
|
|||||||
openModal(globals.dashboard.drop.title, globals.dashboard.drop.url + "&data=" + data + "&orario_inizio=" + ora_dal + "&orario_fine=" + ora_al + "&ref=dashboard&idcontratto=" + info.draggedEl.dataset.idcontratto + "&" + name + "=" + info.draggedEl.dataset.id + "&id_tecnico=" + info.draggedEl.dataset.id_tecnico);
|
openModal(globals.dashboard.drop.title, globals.dashboard.drop.url + "&data=" + data + "&orario_inizio=" + ora_dal + "&orario_fine=" + ora_al + "&ref=dashboard&idcontratto=" + info.draggedEl.dataset.idcontratto + "&" + name + "=" + info.draggedEl.dataset.id + "&id_tecnico=" + info.draggedEl.dataset.id_tecnico);
|
||||||
|
|
||||||
// Ricaricamento dei dati alla chiusura del modal
|
// Ricaricamento dei dati alla chiusura del modal
|
||||||
$(this).remove();
|
|
||||||
$("#modals > div").on("hidden.bs.modal", function () {
|
$("#modals > div").on("hidden.bs.modal", function () {
|
||||||
globals.dashboard.calendar.refetchEvents();
|
globals.dashboard.calendar.refetchEvents();
|
||||||
|
|
||||||
@ -564,6 +562,9 @@ globals.dashboard = {
|
|||||||
carica_interventi_da_pianificare(mese);
|
carica_interventi_da_pianificare(mese);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
eventReceive: function(info){
|
||||||
|
info.revert();
|
||||||
|
},
|
||||||
|
|
||||||
selectable: globals.dashboard.write_permission,
|
selectable: globals.dashboard.write_permission,
|
||||||
select: function (info) { // info
|
select: function (info) { // info
|
||||||
|
Loading…
x
Reference in New Issue
Block a user