Use GisState for biblio as well

This commit is contained in:
2025-06-02 21:58:17 +02:00
parent c265e4aa94
commit 5b5d0aeb3d
4 changed files with 11 additions and 20 deletions

View File

@@ -1,10 +1,11 @@
import { Controller } from "@hotwired/stimulus"
import { GisState } from "../state.js";
export default class extends Controller {
static targets = ['biblio', 'cit', 'ref', 'close'];
open(event) {
const biblio = window.Biblio;
const biblio = GisState.bibliography;
this.trigger = event.currentTarget;
const id = this.trigger.id.replace('cit-', '');
this.ref = this.biblioTarget;