apply changes on person document

This commit is contained in:
2022-02-11 17:01:36 +01:00
parent f34847f9f6
commit e595500cb8
5 changed files with 37 additions and 23 deletions

View File

@@ -4,6 +4,21 @@ import {_createI18n} from "ChillMainAssets/vuejs/_js/i18n";
const i18n = _createI18n({});
//TODO move to chillDocStore or ChillWopi
/*
tags to load module:
<span data-module="wopi-link"
data-wopi-url="{{ path('chill_wopi_file_edit', {'fileId': document.uuid}) }}"
data-doc-type="{{ document.type|e('html_attr') }}"
data-options="{{ options|json_encode }}"
></span>
*/
window.addEventListener('DOMContentLoaded', function (e) {
document.querySelectorAll('span[data-module="wopi-link"]')
.forEach(function (el) {
@@ -25,4 +40,4 @@ window.addEventListener('DOMContentLoaded', function (e) {
;
})
;
});
});