Commit f112d42e authored by Ivanq's avatar Ivanq

Add 'New issue' page

parent 8ff6364d
......@@ -55,7 +55,7 @@
<script type="text/javascript" src="../../../js/git.js"></script>
<script type="text/javascript" src="../../../js/repo.js"></script>
<script type="text/javascript" src="../../js/common.js"></script>
<script type="text/javascript" src="../../js/path_common.js"></script>
<script type="text/javascript" src="../../js/user_common.js"></script>
<script type="text/javascript" src="js/main.js"></script>
</body>
</html>
\ No newline at end of file
......@@ -8,8 +8,8 @@ repo.addMerger()
document.getElementById("submit").onclick = () => {
repo.addIssue(document.getElementById("title").value, document.getElementById("content").value)
.then(id => {
location.href = "../view/?" + address + "/" + id;
.then(issue => {
location.href = "../view/?" + address + "/" + issue.id + "@" + issue.json_id;
});
};
});
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment