Revert "fix back button navigation (#183)"

This reverts commit 4b980cb010.
This commit is contained in:
Andras Timar 2018-04-19 13:49:26 +02:00
Родитель 1bd688de1d
Коммит e080485d31
1 изменённых файлов: 0 добавлений и 16 удалений

Просмотреть файл

@ -107,22 +107,6 @@ var odfViewer = {
$('#app-content #controls').addClass('hidden');
$('#app-content').append($iframe);
window.location.assign(window.location.href + '#richdocuments');
window.addEventListener('hashchange', function(e) {
// handle double hash (eg: ##richdocuments)
var hash = window.location.hash.replace(/#/g, '');
// unload
if (hash !== 'richdocuments') {
odfViewer.onClose();
}
// load
else if (hash === 'richdocuments' && $('#richdocumentsframe').length === 0) {
$('#app-content #controls').addClass('hidden');
$('#app-navigation').addClass('hidden');
$('#app-content').append($iframe);
}
});
},
onClose: function() {