mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-20 10:15:17 -04:00
Fix lastchangeui and moment timestamps
This commit is contained in:
parent
4713b4f2aa
commit
440ad3506c
8 changed files with 11 additions and 32 deletions
|
@ -5,9 +5,9 @@ var saveAs = require('file-saver').saveAs;
|
|||
require('../vendor/md-toc');
|
||||
|
||||
//auto update last change
|
||||
var createtime = null;
|
||||
var lastchangetime = null;
|
||||
var lastchangeui = {
|
||||
window.createtime = null;
|
||||
window.lastchangetime = null;
|
||||
window.lastchangeui = {
|
||||
status: $(".ui-status-lastchange"),
|
||||
time: $(".ui-lastchange"),
|
||||
user: $(".ui-lastchangeuser"),
|
||||
|
@ -30,8 +30,8 @@ function updateLastChange() {
|
|||
}
|
||||
setInterval(updateLastChange, 60000);
|
||||
|
||||
var lastchangeuser = null;
|
||||
var lastchangeuserprofile = null;
|
||||
window.lastchangeuser = null;
|
||||
window.lastchangeuserprofile = null;
|
||||
function updateLastChangeUser() {
|
||||
if (lastchangeui) {
|
||||
if (lastchangeuser && lastchangeuserprofile) {
|
||||
|
@ -1070,11 +1070,7 @@ md.use(pdfPlugin);
|
|||
|
||||
module.exports = {
|
||||
md: md,
|
||||
createtime: createtime,
|
||||
lastchangetime: lastchangetime,
|
||||
updateLastChange: updateLastChange,
|
||||
lastchangeui: lastchangeui,
|
||||
lastchangeuser: lastchangeuser,
|
||||
postProcess: postProcess,
|
||||
finishView: finishView,
|
||||
autoLinkify: autoLinkify,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue