Commit Graph

96 Commits (a07798b0dba4178e5bc27d669b1ef83969f87c60)

Author SHA1 Message Date
OzzieIsaacs cb5f196f4b Merge remote-tracking branch 'adv/modal-details'
# Conflicts:
#	cps/static/js/main.js
#	cps/templates/detail.html
OzzieIsaacs 1e2edcf753 Merge remote-tracking branch 'adv/author-info'
Jonathan Rehm 693c26c2b3 Attach events to button toolbar
Since this is closer to the elements, we can be more sure that we won't have events fire when we don't want them to. For example, if we're viewing the page in a modal, we don't want the event handler living longer than the content itself.
Jonathan Rehm d85e0b96dc Prevent jQuery from cache busting static assets
If the HTML that's returned from the `$.get` request contains a `<script src="..."/>` tag it loads the JavaScript file via ajax, and by default it attaches a timestamp to it to bust cache. That means the file loads every time the modal is opened, and the browser treats it as a new file each time. The result is that code fires multiple times and events listeners are added multiple times.
Jonathan Rehm e1a88aa0ab Make change requested by Codacy
Jonathan Rehm 5c3a5b6c39 Use ajax to add/remove books from shelves
Gracefully fall back to standard requests if JavaScript is disabled
Ozzie Isaacs 2e8a268dfa Fix No1
OzzieIsaacs 5985342b79 Bugfix for typeahead in search function and on edit books page
Jonathan Rehm 802eb628c8 Split event listener and selector string
Event and selectors appear to have been accidentally combined. The result is that typing in any input triggers a call to the `/get_matching_tags` route. We can probably limit the selector farther to only fire when `#tags` is typed into.
OzzieIsaacs 1fdb7dc497 Epub Viewer Bugfix Retenia Ipad devices
OzzieIsaacs 16ce7799a2 Improvement of margins in epub reader (fix )
OzzieIsaacs 470aea6106 Fix
Update epub.js lib
OzzieIsaacs 979bcdffd4 Bugfix non working download links
Bugfix missing divider in detail page
Jonathan Rehm fe68c8a7f8 Add support for displaying author information from Goodreads
Requires the "goodread" module (added to optional-requirements.txt) and an API key

Retrieves Goodreads author information and displays their photo and "about" text
Jonathan Rehm d799b859ea Make changes suggested by codacy
Jonathan Rehm 675e8dd5cd Show book details in modal dialog
With them shown in a modal, you don't lose your place in the pagination. If the request comes via Ajax, the minimal layout is used. If via a normal request, the full layout is used. That lets you open the details in a new tab and have the full experience, but if you're clicking through the results of a search, you can view many without losing your place.
OzzieIsaacs 254e1f5262 Merge remote-tracking branch 'button_padding/simplify-read-code'
# Conflicts:
#	cps/static/css/style.css
OzzieIsaacs 15531324ea Add translation of rich text editor
OzzieIsaacs 77c4da0f07 Merge remote-tracking branch 'button_padding/tinymce'
OzzieIsaacs b876a03f26 - Changed link color on download button to white
- removed file icons on download button
- removed shadow style on download button
OzzieIsaacs 6b71e77436 Merge remote-tracking branch 'Download/feature/download-icon-20170410'
Jonathan Rehm 4fe1536b7e Simplify the read functionality's code
* Use block label to toggle the checkbox
* Submit form when checkbox's value changes (regardless of whether mouse is used or not)
* Remove unused code
Jonathan Rehm d25300a7fb Add padding to bottom of buttons on shelf page
This adds some space between the buttons when viewing them on a mobile device.
Jonathan Rehm 7853cb2602 Add TinyMCE to provide rich-text editing for descriptions
OzzieIsaacs 2b50dea304 Updated pdf.js to 1.7.225 (Fix )
林檎 95f22aa4b5 add drop shadow to distinct the fixed area
林檎 f6076bc337 media tweak for better download placement
林檎 720c07b9ee remove empty style
林檎 45eeb6588a Change Download Style.
Ozzie Isaacs ede8ae6742 Fix ,
OzzieIsaacs cd0d450829 Allow deleting books (fixes )
OzzieIsaacs 699bd036e8 Code cosmetics
OzzieIsaacs dc45b53b24 code cosmetics
OzzieIsaacs 8c7a8a954a Code cosmetics
OzzieIsaacs d59be5faf4 Code cosmetics
Bugfix upload
OzzieIsaacs 7c6d527a55 Code cosmetics
OzzieIsaacs 79d5bab4ba Code cosmetics
OzzieIsaacs 5044b78b08 Code cosmetics
OzzieIsaacs 986f40b80a Code cosmetics
OzzieIsaacs 78067b87bc Code cosmetics
Jack Darlington 7d31abf920 added jquery.form.js to project locally
OzzieIsaacs 38c782fcf1 Merge remote-tracking branch 'Douban/prod'
# Conflicts:
#	cps/templates/book_edit.html
OzzieIsaacs edadf84710 Added editing star rating graphically
Added ability to reload database connection (refresh problem)
Bugfix display hot books (no hot books, hot books are deleted books, no longer result in error 500)
idalin bdf28e1475 fix bug for metadata searching result.
idalin a6b2977286 add i18n message for getmeta feature.
idalin 338ca61cf9 fixed douban api not working in some cases
idalin 54bc299e88 get metadata from douban and google while editing.
idalin e100702345 get metadata from douban and google while editing.
OzzieIsaacs 1a83ad713c Additional version info for sqlite database
Ozzie Isaacs b876505f22 Delete doubtable.js