fnp
/
ReadingsJQM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Started coding reader
[ReadingsJQM.git]
/
js
/
app
/
reader.coffee
diff --git
a/js/app/reader.coffee
b/js/app/reader.coffee
index
d106ac1
..
21105d0
100644
(file)
--- a/
js/app/reader.coffee
+++ b/
js/app/reader.coffee
@@
-1,6
+1,10
@@
+$.fn.Readings.reader = (opts) ->
+ this.each ->
+ Readings.catalogue.fetchBook opts.book_id, true, (book) =>
+ $(this).find("#content-reader").empty().append(book.getText())
+
-$.fn.extend
load_book: (slug) ->
this.each ->
$.ajax