Fix setting cookie

This commit is contained in:
Nicolas Le Goff
2013-10-28 10:30:39 +01:00
parent 496b5145a7
commit 7b256eae61
4 changed files with 37 additions and 13 deletions

View File

@@ -31,7 +31,9 @@ define([
$leftBlock : $(".left-block", this.$bottom),
$rightBlock : $(".right-block", this.$bottom),
fieldsToDelete : [],
lng : window.p4.lng || "en",
lng : function() {
return typeof p4 === "undefined" ? "en" : (p4.lng || "en");
},
resizeListBlock: function () {
var listBlock = $(".list-block", AdminFieldApp.$leftBlock);
listBlock.height(AdminFieldApp.$window.height() - listBlock.offset().top - 10);