annulation ancres

This commit is contained in:
Fred Tempez 2020-04-09 08:47:51 +02:00
parent b44ef817e8
commit 3174d01518
2 changed files with 15 additions and 6 deletions

View File

@ -74,7 +74,7 @@ class gallery extends common {
// Valeurs en sortie // Valeurs en sortie
//header('Refresh: 0;url='. helper::baseUrl() . $this->getUrl() . '#galleryConfigFilterForm' ); //header('Refresh: 0;url='. helper::baseUrl() . $this->getUrl() . '#galleryConfigFilterForm' );
$this->addOutput([ $this->addOutput([
'redirect' => helper::baseUrl() . $this->getUrl() . '#galleryConfigFilterForm', 'redirect' => helper::baseUrl() . $this->getUrl() /* . '#galleryConfigFilterForm'*/,
'notification' => 'Modifications enregistrées', 'notification' => 'Modifications enregistrées',
'state' => true 'state' => true
]); ]);
@ -153,7 +153,7 @@ class gallery extends common {
]]); ]]);
// Valeurs en sortie // Valeurs en sortie
$this->addOutput([ $this->addOutput([
'redirect' => helper::baseUrl() . $this->getUrl(). '#galleryConfigForm', 'redirect' => helper::baseUrl() . $this->getUrl() /*. '#galleryConfigForm'*/,
'notification' => 'Modifications enregistrées', 'notification' => 'Modifications enregistrées',
'state' => true 'state' => true
]); ]);

View File

@ -23,13 +23,22 @@ $( document ).ready(function() {
serializeRegexp: "[^\_]*$" serializeRegexp: "[^\_]*$"
}); });
/*
});
/**
* Scroll virer les ancres de l'URL
*/
/*
$( document ).scroll(function() {
var href = window.location.href; var href = window.location.href;
if(href.indexOf("#") > 0){ if(href.indexOf("#") > 0){
href = href.split("#")[0] + href.split("#")[1]; href = href.split("#")[0];
window.location.href = href; window.location.hash = href;
}*/ }
}); });
*/