Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
stokic committed Dec 7, 2023
2 parents edd9fe3 + 9ba6dc9 commit 319eb55
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/resources/lang/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
"Back": "Zurück",
"VAT": "USt-ID",
"Notes": "Notes",
"Note": "Note"
"Note": "Note",
"Activities": "Activities"
}
9 changes: 6 additions & 3 deletions src/resources/views/campaign/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,10 @@ function handleMouseMove(e) {
dragula(stages)
.on('drag', function (el) {
el.className = el.className.replace('bg-light', 'bg-gray-400');
document.addEventListener('mousemove', handleMouseMove, false);
})
.on('drop', function (el, target, source, sibling) {
console.log('drop')
el.className = el.className.replace('bg-gray-400', 'bg-light');
axios.post('{{ route('stage.change') }}', {
Expand All @@ -181,8 +179,13 @@ function handleMouseMove(e) {
document.removeEventListener('mousemove', handleMouseMove, false);
})
.on('over', function (el, container) {
console.log('over')
el.className = el.className.replace('bg-gray-400', 'bg-light');
})
.on('cancel', function (el, container, source) {
el.className = el.className.replace('bg-gray-400', 'bg-light');
document.removeEventListener('mousemove', handleMouseMove, false);
})
});
</script>
Expand Down

0 comments on commit 319eb55

Please sign in to comment.