Skip to content

Commit 799cf03

Browse files
authored
Merge pull request #390 from projecthorus/fix-back-button-again
fix back button again
2 parents 2ec40fd + 725e475 commit 799cf03

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

js/app.js

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -165,17 +165,15 @@ function load_hash(no_refresh) {
165165

166166
$.extend(true, wvar, def);
167167
if(map){
168-
if (wvar["box"] != def["box"]){
169-
if(!def["box"]){
170-
$(".flatpage").hide()
171-
} else {
172-
$(".flatpage").hide()
173-
$("#"+def["box"]).show()
174-
}
175-
checkSize();
176-
wvar["box"]= def["box"];
177-
168+
if (!def["box"]){
169+
$(".flatpage").hide()
170+
} else {
171+
$(".flatpage").hide()
172+
$("#"+def["box"]).show()
178173
}
174+
checkSize();
175+
wvar["box"]= def["box"];
176+
179177
// force refresh
180178
if(!no_refresh) {
181179
if(refresh) {
@@ -686,6 +684,9 @@ $(window).ready(function() {
686684
} else {
687685
wvar.box = null
688686
}
687+
console.log("aaa")
688+
console.log(wvar.box)
689+
console.log("bbbb")
689690
lhash_update(true);
690691
checkSize();
691692
});

0 commit comments

Comments
 (0)