2018-04-03 23:17:17 +02:00
|
|
|
|
|
|
|
|
2018-04-02 08:29:19 +02:00
|
|
|
/**
|
|
|
|
* This file is part of Zwii.
|
|
|
|
*
|
|
|
|
* For full copyright and license information, please see the LICENSE
|
|
|
|
* file that was distributed with this source code.
|
|
|
|
*
|
|
|
|
* @author Rémi Jean <remi.jean@outlook.com>
|
|
|
|
* @copyright Copyright (C) 2008-2018, Rémi Jean
|
|
|
|
* @license GNU General Public License, version 3
|
2020-09-01 20:48:40 +02:00
|
|
|
* @link http://zwiicms.fr/
|
2018-04-03 23:17:17 +02:00
|
|
|
*
|
2019-02-19 23:54:17 +01:00
|
|
|
**/
|
2018-04-02 08:29:19 +02:00
|
|
|
|
2019-05-16 20:08:17 +02:00
|
|
|
if (document.referrer.indexOf("edit") === -1)
|
|
|
|
{
|
|
|
|
core.confirm(
|
2019-12-02 13:19:58 +01:00
|
|
|
"OUI : éditer la page | NON : tester la redirection.",
|
2019-05-16 20:08:17 +02:00
|
|
|
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(); ?>");
|
|
|
|
}
|