dynamic URL and page title change after loading file or folder

merge-requests/2/head
Julien Veyssier 2017-06-15 14:15:59 +02:00
parent 067148195b
commit 6daa5e4fc7
2 changed files with 5 additions and 0 deletions

View File

@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- add option to approximate elevation of new point
[#18](https://gitlab.com/eneiluj/gpxedit-oc/issues/18) @TheTiPi
- support for ownCloud admin settings
- dynamic URL and page title change after loading file or folder
### Changed
- change way to cut lines, hover the middle marker and press Del

View File

@ -1051,6 +1051,8 @@
catch (err) {
console.log('Impossible to fit to bounds \n'+err);
}
document.title = 'GpxEdit - ' + folder;
window.history.pushState({'html': '', 'pageTitle': ''},'', '?dir='+encodeURIComponent(folder));
}
hideLoadingAnimation();
}).fail(function (){
@ -1131,6 +1133,8 @@
catch (err) {
console.log('Impossible to fit to bounds \n'+err);
}
document.title = 'GpxEdit - ' + file;
window.history.pushState({'html': '', 'pageTitle': ''},'', '?file='+encodeURIComponent(file));
}
hideLoadingAnimation();
}).fail(function (){