Changeset 13774


Ignore:
Timestamp:
Jan 5, 2013, 5:56:55 PM (8 years ago)
Author:
jordan
Message:

(2.7x, web) backport r13768 for #5138

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.7x/web/javascript/common.js

    r13392 r13774  
    197197                console.warn("unrecognized preference key '%s'", key);
    198198
    199         var days = 30;
    200199        var date = new Date();
    201         date.setTime(date.getTime()+(days*24*60*60*1000));
     200        date.setFullYear (date.getFullYear() + 1);
    202201        document.cookie = key+"="+val+"; expires="+date.toGMTString()+"; path=/";
    203202};
Note: See TracChangeset for help on using the changeset viewer.