summaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
authorYukai Huang2016-10-13 16:35:43 +0800
committerYukai Huang2016-10-13 16:35:43 +0800
commit747502e694efb5131e1f589adcb608580347e1e0 (patch)
tree8a04fa0024f5e05d5cb1a6bd43f1f40c167b0201 /public/js
parentd6003649337c2565e04132a58b42f7a520eb5037 (diff)
Fix HTML exporting
Diffstat (limited to 'public/js')
-rw-r--r--public/js/extra.js4
-rw-r--r--public/js/index.js4
2 files changed, 6 insertions, 2 deletions
diff --git a/public/js/extra.js b/public/js/extra.js
index e19a35dc..d853bf93 100644
--- a/public/js/extra.js
+++ b/public/js/extra.js
@@ -1084,5 +1084,7 @@ module.exports = {
owner: owner,
updateLastChangeUser: updateLastChangeUser,
updateOwner: updateOwner,
- parseMeta: parseMeta
+ parseMeta: parseMeta,
+ exportToHTML: exportToHTML,
+ exportToRawHTML: exportToRawHTML
};
diff --git a/public/js/index.js b/public/js/index.js
index 4d745327..de0ba0ba 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -53,6 +53,8 @@ var owner = extra.owner;
var updateLastChangeUser = extra.updateLastChangeUser;
var updateOwner = extra.updateOwner;
var parseMeta = extra.parseMeta;
+var exportToHTML = extra.exportToHTML;
+var exportToRawHTML = extra.exportToRawHTML;
var historyModule = require('./history');
var writeHistory = historyModule.writeHistory;
@@ -755,7 +757,7 @@ function updateStatusBar() {
}
//ui vars
-var ui = {
+window.ui = {
spinner: $(".ui-spinner"),
content: $(".ui-content"),
toolbar: {