change lockdown to happend after two months (#33960)
This commit is contained in:
parent
b7767e97ab
commit
7a0411fb8b
|
@ -223,7 +223,7 @@ $(function() {
|
||||||
var last_activity_url = $('#history a[href*=activity]').last().attr('href');
|
var last_activity_url = $('#history a[href*=activity]').last().attr('href');
|
||||||
var date = new Date(last_activity_url.split('=')[1]);
|
var date = new Date(last_activity_url.split('=')[1]);
|
||||||
var today = new Date();
|
var today = new Date();
|
||||||
if (today - date > (20 * 86400*1000)) { /* older than 20 days */
|
if (today - date > (60 * 86400*1000)) { /* older than 60 days */
|
||||||
$('div#content > div.contextual .icon-edit').hide();
|
$('div#content > div.contextual .icon-edit').hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue