mirror of
https://github.com/9001/copyparty.git
synced 2026-06-21 05:32:25 -06:00
addition to last commit
This commit is contained in:
parent
b8687aa012
commit
fc83103dad
|
|
@ -1494,7 +1494,7 @@ function modaltoggle(dest, show){
|
||||||
if (show == false || show == 't' && QS('#' + dest + '.vis'))
|
if (show == false || show == 't' && QS('#' + dest + '.vis'))
|
||||||
dest = '';
|
dest = '';
|
||||||
|
|
||||||
//swrite('opmode', dest || null);
|
swrite('opmode', dest || null);
|
||||||
|
|
||||||
goto(dest);
|
goto(dest);
|
||||||
|
|
||||||
|
|
@ -1590,6 +1590,7 @@ function goto(dest) {
|
||||||
|
|
||||||
|
|
||||||
window.onhashchange = function() {
|
window.onhashchange = function() {
|
||||||
|
console.log('hash change: ' + location.hash)
|
||||||
var a_modal = QS('.modal.vis');
|
var a_modal = QS('.modal.vis');
|
||||||
if(location.hash.length <= 1 && a_modal){
|
if(location.hash.length <= 1 && a_modal){
|
||||||
modaltoggle(a_modal.id);
|
modaltoggle(a_modal.id);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue