forked from ZwiiCMS-Team/ZwiiCMS
Module redirection : test du menu surgissant avec nouvelle formulation
This commit is contained in:
parent
03a9f4dc37
commit
0f8778dc1b
@ -19,7 +19,7 @@ class redirection extends common {
|
|||||||
'index' => self::GROUP_VISITOR
|
'index' => self::GROUP_VISITOR
|
||||||
];
|
];
|
||||||
|
|
||||||
const REDIRECTION_VERSION = '1.1';
|
const REDIRECTION_VERSION = '1.2';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Configuration
|
* Configuration
|
||||||
|
@ -11,26 +11,21 @@
|
|||||||
* @license GNU General Public License, version 3
|
* @license GNU General Public License, version 3
|
||||||
* @link http://zwiicms.com/
|
* @link http://zwiicms.com/
|
||||||
*
|
*
|
||||||
*
|
**/
|
||||||
*
|
|
||||||
*
|
|
||||||
* if (document.referrer.indexOf("edit") === -1)
|
|
||||||
* {
|
|
||||||
* core.confirm(
|
|
||||||
* "Souhaitez-vous accéder à l'interface de modification de la page ? En cas de refus, vous serez redirigé vers l'URL saisie dans le module de redirection.",
|
|
||||||
* function() {
|
|
||||||
* $(location).attr("href", "<?php echo helper::baseUrl(); ?>page/edit/<?php echo $this->getUrl(0); ?>");
|
|
||||||
* },
|
|
||||||
* function() {
|
|
||||||
* $(location).attr("href", "<?php echo helper::baseUrl() . $this->getUrl(); ?>/force");
|
|
||||||
* }
|
|
||||||
* );
|
|
||||||
* }
|
|
||||||
* else
|
|
||||||
* {
|
|
||||||
* $(location).attr("href", "<?php echo helper::baseUrl(); ?>");
|
|
||||||
* }
|
|
||||||
**/
|
|
||||||
|
|
||||||
|
if (document.referrer.indexOf("edit") === -1)
|
||||||
self.location='<?php echo helper::baseUrl(); ?>page/edit/<?php echo $this->getUrl(0); ?>';
|
{
|
||||||
|
core.confirm(
|
||||||
|
"OUI pour accéder à l\'écran d'édition du module - NON pour tester le lien saisi.",
|
||||||
|
function() {
|
||||||
|
$(location).attr("href", "<?php echo helper::baseUrl(); ?>page/edit/<?php echo $this->getUrl(0); ?>");
|
||||||
|
},
|
||||||
|
function() {
|
||||||
|
$(location).attr("href", "<?php echo helper::baseUrl() . $this->getUrl(); ?>/force");
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$(location).attr("href", "<?php echo helper::baseUrl(); ?>");
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user