     link
 
   modal_open: (data) ->
-    data = @modal_data(data) unless typeof data == 'object'
     @modal_active = true
     if data.document == 'true'
       html = Mustache.to_html(@tpl('pdf'),{ filename: data.uid })

  get_pages: (tpl = 'page') ->
    html = ''
    $.each @options.pages, (idx,el) => 
      html += Mustache.to_html @tpl(tpl), el
    html


      html = Mustache.to_html(@tpl('show'),{ filename: data.uid, src: url, orientation: data.orientation })
      $.facebox("<div class=\"asset-detail\">#{html}</div>")
    @touch(data)

  load_img: (el,src) ->
    img = new Image()
