     x.preventDefault()
     a = $.ajax "/pi/admin/upload.php", p
     a.done (data) ->
-      debugger
       f = $ "<file>"
             src: (($ data).find "file").attr "src"
       ($ ".db library").append f

      open_library()
  f

file = (x) ->
  div().append img().attr {src: (x.attr "src"), width: "20%"}

filelist = ->
  file ($ x) for x in records

@open_library = ->
  with_mixin [

@init_library = ->
  $(".db library").bind "DOMSubtreeModified", update_library_button
  update_library_button()
