2 $.fn.Readings.reader = (opts) ->
4 Readings.catalogue.fetchBook opts.book_id, true, (book) =>
5 $(this).find("#content-reader").empty().append(book.getText())
13 url: '/fixtures/katalog_lektura_lord-jim.html',
15 console.log "Error #{e}"
18 $text = $page.find '#book-text'
19 $toc = $text.find '#toc'
21 this.toc = $toc.find('a').map (_i, link) =>
30 $('[data-role=header] h1', this).text(
31 this.text.find('h1 .title').text()