Make maximising work properly again in Potlatch
This commit is contained in:
parent
843051c1b2
commit
e9cb282712
2 changed files with 11 additions and 18 deletions
|
@ -1,27 +1,11 @@
|
|||
function maximiseMap() {
|
||||
$("#left").hide();
|
||||
$("#top-bar").hide();
|
||||
|
||||
$("#content").css("top", "0px");
|
||||
if ($("html").attr("dir") == "ltr") {
|
||||
$("#content").css("margin-left", "0px");
|
||||
} else {
|
||||
$("#content").css("margin-right", "0px");
|
||||
}
|
||||
$("#content").addClass("maximised");
|
||||
|
||||
handleResize();
|
||||
}
|
||||
|
||||
function minimiseMap() {
|
||||
$("#left").show();
|
||||
$("#top-bar").show();
|
||||
|
||||
$("#content").css("top", "30px");
|
||||
if ($("html").attr("dir") == "ltr") {
|
||||
$("#content").css("margin-left", "185px");
|
||||
} else {
|
||||
$("#content").css("margin-right", "185px");
|
||||
}
|
||||
$("#content").removeClass("maximised");
|
||||
|
||||
handleResize();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue