diff options
author | Unknwon <u@gogs.io> | 2015-09-06 06:57:25 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-09-06 06:57:25 -0400 |
commit | 24658fcbdd507bd66cd76b6ca96e1ef5e1c15af5 (patch) | |
tree | 4ef2ec4e48a2732f5ec3d47293f592c676413a53 /public/js | |
parent | 705224353b10ea4166ca3dde2ed0044357aae78b (diff) | |
download | gitea-24658fcbdd507bd66cd76b6ca96e1ef5e1c15af5.tar.gz gitea-24658fcbdd507bd66cd76b6ca96e1ef5e1c15af5.zip |
#633 dix suburl
Diffstat (limited to 'public/js')
-rw-r--r-- | public/js/gogs.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js index 982f976e0b..f8d9de662c 100644 --- a/public/js/gogs.js +++ b/public/js/gogs.js @@ -1,6 +1,7 @@ 'use strict'; var csrf; +var suburl; function initCommentPreviewTab($form) { var $tab_menu = $form.find('.tabular.menu'); @@ -407,6 +408,7 @@ function initWebhook() { $(document).ready(function () { csrf = $('meta[name=_csrf]').attr("content"); + suburl = $('meta[name=_suburl]').attr("content"); // Show exact time $('.time-since').each(function () { @@ -485,9 +487,9 @@ $(document).ready(function () { // Emojify emojify.setConfig({ - img_dir:'/img/emoji' + img_dir: suburl + '/img/emoji' }); - $('.markdown').each(function(){ + $('.emojify').each(function () { emojify.run($(this)[0]); }); |