diff options
author | Vincent Tam <sere@live.hk> | 2019-08-02 03:32:38 +0300 |
---|---|---|
committer | Vincent Tam <sere@live.hk> | 2019-08-02 03:32:38 +0300 |
commit | c86fb57d14c2eb8a1b9115f1a2f300817bfedfa7 (patch) | |
tree | a1b540c54d133a94d8362a481a4c035927555500 | |
parent | 23bed7724baaad52c520d0a3e92de51cb96f3b5a (diff) |
Improved JS code for Staticman POST URL
-rw-r--r-- | assets/js/staticman.js | 2 |
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) { |