diff --git a/gamutable_fonctions.php b/gamutable_fonctions.php index b81bf97..00bd989 100644 --- a/gamutable_fonctions.php +++ b/gamutable_fonctions.php @@ -14,21 +14,23 @@ if (!defined("_ECRIRE_INC_VERSION")) { } include_spip("inc/vite"); -function gamutable_fermer_modalbox($id_objet = 9999999999) -{ +function gamutable_fermer_modalbox($id_objet = 9999999999, $num = null) { + if ($num) { + $num = '_deux'; + } $html = << id = "$id_objet"; id = parseInt(id); if (id > 0 && id < 9999999999) { if (typeof app !== 'undefined') { - app.rechargerJson(id); + app$num.rechargerJson(id); } $.modalboxclose(); } if (id === 9999999999) { if (typeof app !== 'undefined') { - app.rechargerJson(); + app$num.rechargerJson(); } $.modalboxclose(); } @@ -38,20 +40,22 @@ EOJS; return $html; } -function gamutable_recharger_tableau($id_objet = 9999999999) -{ +function gamutable_recharger_tableau($id_objet = 9999999999, $num = null) { + if ($num) { + $num = '_deux'; + } $html = << id = "$id_objet"; id = parseInt(id); if (id > 0 && id < 9999999999) { if (typeof app !== 'undefined') { - app.rechargerJson(id); + app$num.rechargerJson(id); } } if (id === 9999999999) { if (typeof app !== 'undefined') { - app.rechargerJson(); + app$num.rechargerJson(); } } delete id; diff --git a/inclure/gamutable.html b/inclure/gamutable.html index 42b9965..9838f9c 100644 --- a/inclure/gamutable.html +++ b/inclure/gamutable.html @@ -21,14 +21,13 @@ [(#SET{pdfuri,#VAL{pdf_gamutable}|generer_url_action{"", 1}})] -[(#ENV{apiuri,spip.php?page=json_gamutable.json})]
-
-
+ +
[(#ENV{titregamutable})] -
+
-
+ + + + +
+ [(#ENV{titregamutable_deux})] +
+ +
+
+
[(#REM) si dans l'env il y a un parametre _id=xxx, il sera récupéré pour @@ -60,48 +90,4 @@ selectionner cette ligne dans le gamutable ajout de la classe: select sur le tr - - -[(#REM) [(#CONFIG{gamutable/version_js}|=={dev}|?{ - - - - - -, - - - - - -})] ] + diff --git a/src/components/gamuTable.vue b/src/components/gamuTable.vue index eccb040..35c9041 100644 --- a/src/components/gamuTable.vue +++ b/src/components/gamuTable.vue @@ -342,19 +342,8 @@