X-Git-Url: http://git.cyclocoop.org/?p=velocampus%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fecrire%2Faction%2Fchanger_mode_document.php;fp=www%2Fecrire%2Faction%2Fchanger_mode_document.php;h=f8960c51138a105d900519020a4e6ee047b8e023;hp=0000000000000000000000000000000000000000;hb=80b4d3e85f78d402ed2e73f8f5d1bf4c19962eed;hpb=aaf970bf4cdaf76689ecc10609048e18d073820c diff --git a/www/ecrire/action/changer_mode_document.php b/www/ecrire/action/changer_mode_document.php new file mode 100644 index 0000000..f8960c5 --- /dev/null +++ b/www/ecrire/action/changer_mode_document.php @@ -0,0 +1,52 @@ +$mode), 'id_document='.$id_document); + } + if ($case = _request('afficher_case')){ + $case = explode('-',$case); + list($id,$type,$script) = $case; + include_spip('inc/presentation'); + include_spip('inc/documents'); + include_spip('inc/actions'); + // vilain hack pour ne pas recharger un script js + affiche_raccourci_doc('doc', $id_document, 'left'); + // voila + ajax_retour(afficher_case_document($id_document, $id, $script, $type, true)); + exit(); + } +} +?>