diff options
author | Cheng-Han, Wu | 2016-02-16 20:08:44 -0800 |
---|---|---|
committer | Cheng-Han, Wu | 2016-02-16 20:08:44 -0800 |
commit | b2b1be3dda406312add39997ad8bd9494f20b7f8 (patch) | |
tree | 997403359ffc0f585fa52752c399ce87287222c3 /public/js/extra.js | |
parent | 3f2f063e9b6c6d36169f6acefc27df87d0bd176b (diff) |
Support set url path and use relative url, move raphael to bower and fixed minor issue in history
Diffstat (limited to 'public/js/extra.js')
-rw-r--r-- | public/js/extra.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/public/js/extra.js b/public/js/extra.js index cbb30697..676c41cc 100644 --- a/public/js/extra.js +++ b/public/js/extra.js @@ -402,10 +402,11 @@ function exportToHTML(view) { var tocAffix = $('#toc-affix').clone(); tocAffix.find('*').removeClass('active'); //generate html via template - $.get('/css/html.min.css', function (css) { - $.get('/views/html.hbs', function (data) { + $.get(serverurl + '/css/html.min.css', function (css) { + $.get(serverurl + '/views/html.hbs', function (data) { var template = Handlebars.compile(data); var context = { + url: serverurl, title: title, css: css, html: src[0].outerHTML, @@ -657,7 +658,7 @@ emojify.setConfig({ elements: ['script', 'textarea', 'a', 'pre', 'code', 'svg'], classes: ['no-emojify'] }, - img_dir: '/vendor/emojify/images', + img_dir: serverurl + '/vendor/emojify/images', ignore_emoticons: true }); |