summaryrefslogtreecommitdiff
path: root/js/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/index.js')
-rw-r--r--js/index.js41
1 files changed, 0 insertions, 41 deletions
diff --git a/js/index.js b/js/index.js
index b6ec4ee..520e35d 100644
--- a/js/index.js
+++ b/js/index.js
@@ -142,47 +142,6 @@ function offline_cache(bookId, callback) {
});
}
-function init_tooltips() {
-
- $('.index_cell img').qtip({
- position: {
- target: 'mouse',
- adjust: {
- mouse: false
- }
- },
- style: {
- classes: 'qtip-light qtip-custom'
- },
- show: {
- delay: 1000
- },
- hide: 'unfocus mouseleave',
- content: {
- text: function(event, api) {
- $.ajax({
- url: 'backend.php?op=getinfo&id=' + $(this).attr('data-book-id')
- })
- .then(function(content) {
-
- api.set('content.title', content.title);
-
- if (content.comment) {
- api.set('content.text',
- content.comment);
- } else {
- api.set('content.text', 'No description available');
- }
- }, function(xhr, status, error) {
- api.set('content.text', status + ': ' + error);
- });
-
- return 'Loading...';
- }
- }
- });
-}
-
function show_summary(elem) {
var id = elem.getAttribute("data-book-id");