load contented without jquery, but it's present by the callback
This commit is contained in:
parent
edf88d1f31
commit
f5767db840
@ -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]) + " ");
|
||||
|
Loading…
Reference in New Issue
Block a user