diff --git a/core/module/config/config.php b/core/module/config/config.php index caecaf60..839591d6 100644 --- a/core/module/config/config.php +++ b/core/module/config/config.php @@ -208,8 +208,9 @@ class config extends common { // Valeurs en sortie $this->addOutput([ - 'title' => 'Configuration', - 'view' => 'index', + /*'title' => 'Configuration', + 'view' => 'index',*/ + 'redirect' => helper::baseUrl() . 'config', 'notification' => $successSitemap ? 'Mises à jour des fichiers sitemap et robots.txt' : 'Echec d\'écriture, le site map n\'a pas été mis à jour', 'state' => $successSitemap ]); @@ -276,8 +277,9 @@ class config extends common { } // Valeurs en sortie $this->addOutput([ - 'title' => 'Configuration', - 'view' => 'index', + /*'title' => 'Configuration', + 'view' => 'index',*/ + 'redirect' => helper::baseUrl() . 'config', 'notification' => $success === false ? 'Service inaccessible ou erreur d\'écriture de l\'image' : 'Image générée avec succès', 'state' => $success === false ? false : true ]); @@ -384,8 +386,9 @@ class config extends common { $redirect = $this->getInput('configRestoreImportUser', helper::FILTER_BOOLEAN) === true ? helper::baseUrl() . 'config/restore' : helper::baseUrl() . 'user/login/'; // Valeurs en sortie erreur $this->addOutput([ - 'title' => 'Restaurer', - 'view' => 'restore', + /*'title' => 'Restaurer', + 'view' => 'restore',*/ + 'redirect' => $redirect, 'notification' => $notification, 'state' => $success ]); diff --git a/core/module/config/view/backup/backup.js.php b/core/module/config/view/backup/backup.js.php index 4feddc81..95dd79b3 100644 --- a/core/module/config/view/backup/backup.js.php +++ b/core/module/config/view/backup/backup.js.php @@ -44,7 +44,7 @@ $( document).ready(function() { if ($("input[name=configBackupOption]").is(':checked')) { return core.confirm("Une sauvegarde avec le contenu du gestionnaire de fichier peut prendre du temps à générer. Confirmez-vous ?", function() { //$(location).attr("href", _this.attr("href")); - $('body').css('cursor', 'wait'); + $('body, .button').css('cursor', 'wait'); $('form#configBackupForm').submit(); }); } diff --git a/core/module/config/view/index/index.js.php b/core/module/config/view/index/index.js.php index ca058779..bad473db 100644 --- a/core/module/config/view/index/index.js.php +++ b/core/module/config/view/index/index.js.php @@ -200,6 +200,14 @@ $( document).ready(function() { }); + /** + * Aspect de la souris + */ + $("#socialMetaImage, #socialSiteMap").click(function(event) { + $('body, .button').css('cursor', 'wait'); + }); + + }); diff --git a/core/module/config/view/restore/restore.js.php b/core/module/config/view/restore/restore.js.php index 17ab6a40..1e5e6f05 100644 --- a/core/module/config/view/restore/restore.js.php +++ b/core/module/config/view/restore/restore.js.php @@ -16,7 +16,7 @@ $( document).ready(function() { * Aspect de la souris */ $("#configRestoreSubmit").click(function(event) { - $('body').css('cursor', 'wait'); + $('body, .button').css('cursor', 'wait'); }); }); \ No newline at end of file diff --git a/core/module/config/view/social/social.php b/core/module/config/view/social/social.php index 1c528252..6401109c 100644 --- a/core/module/config/view/social/social.php +++ b/core/module/config/view/social/social.php @@ -16,6 +16,7 @@ helper::baseUrl() . 'config/configMetaImage', 'value' => 'Générer une capture Open Graph' + ]); ?>