fix: on gere le chargement de vuejs dans un contexte spip ajax
This commit is contained in:
parent
31f596c435
commit
2137409c68
3 changed files with 32 additions and 25 deletions
File diff suppressed because one or more lines are too long
2
dist/manifest.json
vendored
2
dist/manifest.json
vendored
|
@ -3,7 +3,7 @@
|
|||
"file": "assets/vendor-f73869ed.js"
|
||||
},
|
||||
"gamutable.js": {
|
||||
"file": "assets/gamutable-371e82bf.js",
|
||||
"file": "assets/gamutable-c8105312.js",
|
||||
"imports": [
|
||||
"_vendor-f73869ed.js"
|
||||
],
|
||||
|
|
|
@ -12,6 +12,10 @@ const components = {
|
|||
GamuTable,
|
||||
};
|
||||
|
||||
gamutable();
|
||||
onAjaxLoad(gamutable);
|
||||
|
||||
function gamutable() {
|
||||
let i = 1;
|
||||
for (const el of document.getElementsByClassName('vue-gamutable')) {
|
||||
if (i === 1) {
|
||||
|
@ -38,6 +42,9 @@ for (const el of document.getElementsByClassName('vue-gamutable')) {
|
|||
i++;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
$('#vueGamutable').on('click', '.url_action, .url_action--ss_css', function (e) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
|
Loading…
Add table
Reference in a new issue