|
|
|
@ -171,7 +171,7 @@ define('forum/topic/postTools', ['share', 'navigator', 'components', 'translator
|
|
|
|
|
|
|
|
|
|
var timestamp = parseInt(getData(btn, 'data-timestamp'), 10);
|
|
|
|
|
var postEditDuration = parseInt(ajaxify.data.postEditDuration, 10);
|
|
|
|
|
if (postEditDuration && Date.now() - timestamp > postEditDuration * 1000) {
|
|
|
|
|
if (!ajaxify.data.privileges.isAdminOrMod && postEditDuration && Date.now() - timestamp > postEditDuration * 1000) {
|
|
|
|
|
var numDays = Math.floor(postEditDuration / 86400);
|
|
|
|
|
var numHours = Math.floor((postEditDuration % 86400) / 3600);
|
|
|
|
|
var numMinutes = Math.floor(((postEditDuration % 86400) % 3600) / 60);
|
|
|
|
|