Skip to content

Commit

Permalink
fetch /system/plugins.json
Browse files Browse the repository at this point in the history
  • Loading branch information
WardCunningham committed Jan 17, 2015
1 parent 3f3cb23 commit de50468
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions client/plugins.coffee
Expand Up @@ -6,12 +6,18 @@ expand = (text)->
.replace />/g, '>'
.replace /\*(.+?)\*/g, '<i>$1</i>'

report = (done) ->
$.getJSON "http:/system/plugins.json", (plugins) ->
links = (wiki.resolveLinks "[[about #{plugin} plugin]]" for plugin in plugins)
done links.join "<br>"

emit = ($item, item) ->
$item.append """
<p style="background-color:#eee;padding:15px;">
#{expand item.text}
</p>
"""
report (html) ->
$item.append """
<p style="background-color:#eee;padding:15px;">
#{html}
</p>
"""

bind = ($item, item) ->
$item.dblclick -> wiki.textEditor $item, item
Expand Down

0 comments on commit de50468

Please sign in to comment.