#633 dix suburl
This commit is contained in:
parent
705224353b
commit
24658fcbdd
5 changed files with 11 additions and 19 deletions
|
@ -606,8 +606,8 @@
|
|||
},
|
||||
"\/ng\/js\/gogs.js": {
|
||||
"fileType": 64,
|
||||
"ignore": 0,
|
||||
"ignoreWasSetByUser": 0,
|
||||
"ignore": 1,
|
||||
"ignoreWasSetByUser": 1,
|
||||
"inputAbbreviatedPath": "\/ng\/js\/gogs.js",
|
||||
"outputAbbreviatedPath": "\/ng\/js\/min\/gogs-min.js",
|
||||
"outputPathIsOutsideProject": 0,
|
||||
|
@ -670,17 +670,6 @@
|
|||
"outputStyle": 1,
|
||||
"syntaxCheckerStyle": 1
|
||||
},
|
||||
"\/ng\/js\/min\/gogs-min.js": {
|
||||
"fileType": 64,
|
||||
"ignore": 1,
|
||||
"ignoreWasSetByUser": 0,
|
||||
"inputAbbreviatedPath": "\/ng\/js\/min\/gogs-min.js",
|
||||
"outputAbbreviatedPath": "\/ng\/js\/min\/min\/gogs-min-min.js",
|
||||
"outputPathIsOutsideProject": 0,
|
||||
"outputPathIsSetByUser": 0,
|
||||
"outputStyle": 1,
|
||||
"syntaxCheckerStyle": 1
|
||||
},
|
||||
"\/ng\/js\/utils\/preview.js": {
|
||||
"fileType": 64,
|
||||
"ignore": 1,
|
||||
|
|
|
@ -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]);
|
||||
});
|
||||
|
||||
|
|
|
@ -937,7 +937,7 @@ $(document).ready(function () {
|
|||
|
||||
homepage();
|
||||
emojify.setConfig({
|
||||
img_dir:'/img/emoji'
|
||||
img_dir: Gogs.AppSubUrl + '/img/emoji'
|
||||
});
|
||||
emojify.run();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue