custom JS removed in favor of proper CSRF implementation

This commit is contained in:
Priec
2026-06-21 18:22:21 +02:00
parent 86888b3877
commit db6b609937
25 changed files with 94 additions and 72 deletions

View File

@@ -21,7 +21,8 @@
packetaKey: '{{ packeta_api_key }}',
fmt(c) { return (c / 100).toFixed(2) },
pickPoint() {
Packeta.Widget.pick(this.packetaKey, (point) => {
Packeta.Widget.pick(this.packetaKey, (point) =>
{{ ui::csrf_field() }} {
if (point) { this.pointId = String(point.id); this.pointName = point.formatedValue || point.name }
})
},