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

View File

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