Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2bc26c5966 | |||
| f5767db840 | |||
| edf88d1f31 | |||
| 262c3ba903 |
2
Makefile
2
Makefile
@@ -2,7 +2,7 @@
|
|||||||
# Makefile for YATWiki3
|
# Makefile for YATWiki3
|
||||||
#
|
#
|
||||||
|
|
||||||
VERSION:=3.1.0
|
VERSION:=3.1.1
|
||||||
|
|
||||||
SOURCES:=Makefile \
|
SOURCES:=Makefile \
|
||||||
static \
|
static \
|
||||||
|
|||||||
@@ -36,6 +36,9 @@ This package can be installed via go get: `go get code.ivysaur.me/yatwiki`
|
|||||||
|
|
||||||
=CHANGELOG=
|
=CHANGELOG=
|
||||||
|
|
||||||
|
2017-10-15 3.1.1
|
||||||
|
- Update `contented` integration (requires `contented` >= 1.1.0)
|
||||||
|
|
||||||
2017-10-08 3.1.0
|
2017-10-08 3.1.0
|
||||||
- Feature: Support content upload to a `contented` server
|
- Feature: Support content upload to a `contented` server
|
||||||
|
|
||||||
|
|||||||
@@ -52,14 +52,13 @@ func (this *WikiServer) routeModify(w http.ResponseWriter, r *http.Request, arti
|
|||||||
`
|
`
|
||||||
if len(this.opts.ContentedServer) > 0 {
|
if len(this.opts.ContentedServer) > 0 {
|
||||||
content += `
|
content += `
|
||||||
<script type="text/javascript" src="` + this.opts.ContentedServer + `jquery-1.12.4.min.js"></script>
|
|
||||||
<script type="text/javascript" src="` + this.opts.ContentedServer + `sdk.js"></script>
|
<script type="text/javascript" src="` + this.opts.ContentedServer + `sdk.js"></script>
|
||||||
| <a href="javascript:;" id="open-contented-uploader">upload...</a>
|
| <a href="javascript:;" id="open-contented-uploader">upload...</a>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$("#open-contented-uploader").on('click', function() {
|
document.getElementById("open-contented-uploader").addEventListener("click", function() {
|
||||||
contented.init("#contentctr", function(items) {
|
contented.init("#contentctr", function(items) {
|
||||||
for (var i = 0; i < items.length; ++i) {
|
for (var i = 0; i < items.length; ++i) {
|
||||||
$("#contentctr textarea").append(" " + "` + this.opts.ContentedServer + `get/" + items[i] + " ");
|
$("#contentctr textarea").append(" " + contented.getPreviewURL(items[i]) + " ");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user