]> git.openstreetmap.org Git - rails.git/commitdiff
Set banner expiry correctly
authorTom Hughes <tom@compton.nu>
Tue, 23 Aug 2016 18:23:58 +0000 (19:23 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 23 Aug 2016 18:23:58 +0000 (19:23 +0100)
app/assets/javascripts/index.js

index f4b378ff33c3e0668041b55c119d31a2a3f9d531..5f84fb0566e8d34ab601e8ee4379302fe4bb608a 100644 (file)
@@ -175,7 +175,7 @@ $(document).ready(function () {
   });
 
   var bannerExpiry = new Date();
-  expiry.setYear(expiry.getFullYear() + 1);
+  bannerExpiry.setYear(bannerExpiry.getFullYear() + 1);
 
   $('#banner .close-wrap').on('click', function(e) {
     var cookieId = e.target.id;