ajout un env pour cacher le selecteur de slug : cacher_selecteur_slug
This commit is contained in:
parent
0ade34cf32
commit
64ac966c62
1 changed files with 4 additions and 6 deletions
|
@ -26,14 +26,14 @@
|
||||||
<h3><:gamumail:choix_slug:></h3>
|
<h3><:gamumail:choix_slug:></h3>
|
||||||
<select id="choix_slug" name="choix_slug">
|
<select id="choix_slug" name="choix_slug">
|
||||||
<option value=""[ (#ENV{slug}|non) selected]><:gamumail:choisissez_un_modele:></option>
|
<option value=""[ (#ENV{slug}|non) selected]><:gamumail:choisissez_un_modele:></option>
|
||||||
<BOUCLE_slugs(GAMUMAILS){statut=publie}{par titre}{public!=non}>
|
<BOUCLE_slugs(GAMUMAILS){statut=publie}{par titre}{public!=non}{si #ENV{cacher_selecteur_slug}|non}>
|
||||||
<option value="#SLUG"[ (#SLUG|=={#ENV{slug}}|oui) selected]>#TITRE</option>
|
<option value="#SLUG"[ (#SLUG|=={#ENV{slug}}|oui) selected]>#TITRE</option>
|
||||||
</BOUCLE_slugs>
|
</BOUCLE_slugs>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</B_slugs>
|
</B_slugs>
|
||||||
<div class="bloc_slug" id="bloc_slug">
|
<div class="bloc_slug" id="bloc_slug">
|
||||||
<INCLURE{fond=inclure/vue_slug, env, ajax=vue_slug}>
|
<INCLURE{fond=inclure/vue_slug,env,dest=#ENV{dest},ajax=vue_slug}>
|
||||||
</div>
|
</div>
|
||||||
<INCLURE{fond=gamumail/remplacements_slugs}>
|
<INCLURE{fond=gamumail/remplacements_slugs}>
|
||||||
</div>
|
</div>
|
||||||
|
@ -43,10 +43,8 @@
|
||||||
var choix_slug = $(this).val();
|
var choix_slug = $(this).val();
|
||||||
ajaxReload('vue_slug', {
|
ajaxReload('vue_slug', {
|
||||||
args:{
|
args:{
|
||||||
slug : choix_slug,
|
slug : choix_slug
|
||||||
dest : "#ENV{dest}"
|
|
||||||
}
|
}
|
||||||
//, callback: function(){}
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue