Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/VincentTam/huginn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Tam <sere@live.hk>2019-08-02 03:32:38 +0300
committerVincent Tam <sere@live.hk>2019-08-02 03:32:38 +0300
commitc86fb57d14c2eb8a1b9115f1a2f300817bfedfa7 (patch)
treea1b540c54d133a94d8362a481a4c035927555500
parent23bed7724baaad52c520d0a3e92de51cb96f3b5a (diff)
Improved JS code for Staticman POST URL
-rw-r--r--assets/js/staticman.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/js/staticman.js b/assets/js/staticman.js
index 052f076..a73e224 100644
--- a/assets/js/staticman.js
+++ b/assets/js/staticman.js
@@ -17,7 +17,7 @@ $(document).ready(function() {
$.ajax({
type: $(this).attr('method'),
- url: endpoint + '/v3/entry/' + gitProvider + '/' + repo + '/' + branch + '/comments',
+ url: [endpoint, 'v3/entry', gitProvider, repo, branch, 'comments'].join('/'),
data: $(this).serialize(),
contentType: 'application/x-www-form-urlencoded',
success: function (data) {