]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/application.js
Merge remote-tracking branch 'upstream/pull/5643'
[rails.git] / app / assets / javascripts / application.js
index 86a0a0789962abcc08c9de91aaf853d3991b8cbf..2e13f69671bec7253adbe5c98887a33c105d7725 100644 (file)
@@ -113,13 +113,13 @@ $(document).ready(function () {
    */
   setTimeout(function () {
     $("header").children(":visible").each(function (i, e) {
-      headerWidth = headerWidth + $(e).outerWidth();
+      headerWidth += $(e).outerWidth();
     });
 
     $("body").addClass("compact-nav");
 
     $("header").children(":visible").each(function (i, e) {
-      compactWidth = compactWidth + $(e).outerWidth();
+      compactWidth += $(e).outerWidth();
     });
 
     $("body").removeClass("compact-nav");