load contented without jquery, but it's present by the callback

This commit is contained in:
mappu 2017-10-15 20:00:04 +13:00
parent edf88d1f31
commit f5767db840

View File

@ -55,7 +55,7 @@ func (this *WikiServer) routeModify(w http.ResponseWriter, r *http.Request, arti
<script type="text/javascript" src="` + this.opts.ContentedServer + `sdk.js"></script>
| <a href="javascript:;" id="open-contented-uploader">upload...</a>
<script type="text/javascript">
$("#open-contented-uploader").on('click', function() {
document.getElementById("open-contented-uploader").addEventListener("click", function() {
contented.init("#contentctr", function(items) {
for (var i = 0; i < items.length; ++i) {
$("#contentctr textarea").append(" " + contented.getPreviewURL(items[i]) + " ");