summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYukai Huang2016-10-13 23:29:25 +0800
committerYukai Huang2016-10-13 23:29:25 +0800
commitb5f42807b9ad94e362224a4247b656ad3a2d1792 (patch)
tree7d545404a41cb51c02e13b9b3f18a2d53e12ef07
parent8a6147c12b0d9fcf2c2abe02ea58590c40593141 (diff)
Fix ownership display
Diffstat (limited to '')
-rw-r--r--public/js/extra.js5
-rw-r--r--public/js/index.js1
2 files changed, 2 insertions, 4 deletions
diff --git a/public/js/extra.js b/public/js/extra.js
index 7cae068e..bf2c7231 100644
--- a/public/js/extra.js
+++ b/public/js/extra.js
@@ -48,8 +48,8 @@ function updateLastChangeUser() {
}
}
-var owner = null;
-var ownerprofile = null;
+window.owner = null;
+window.ownerprofile = null;
function updateOwner() {
if (ownerui) {
if (owner && ownerprofile && owner !== lastchangeuser) {
@@ -1080,7 +1080,6 @@ module.exports = {
generateToc: generateToc,
smoothHashScroll: smoothHashScroll,
scrollToHash: scrollToHash,
- owner: owner,
updateLastChangeUser: updateLastChangeUser,
updateOwner: updateOwner,
parseMeta: parseMeta,
diff --git a/public/js/index.js b/public/js/index.js
index 5246f949..9fb7a28a 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -48,7 +48,6 @@ var renderTOC = extra.renderTOC;
var renderTitle = extra.renderTitle;
var renderFilename = extra.renderFilename;
var scrollToHash = extra.scrollToHash;
-var owner = extra.owner;
var updateLastChangeUser = extra.updateLastChangeUser;
var updateOwner = extra.updateOwner;
var parseMeta = extra.parseMeta;