diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/index.js | 41 | ||||
-rw-r--r-- | js/offline.js | 19 |
2 files changed, 0 insertions, 60 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"); diff --git a/js/offline.js b/js/offline.js index 749b3ff..a3448a1 100644 --- a/js/offline.js +++ b/js/offline.js @@ -126,25 +126,6 @@ function populate_list() { var cell = $(cell); if (cover) { - cell.find("img").attr("src", cover).qtip({ - position: { - target: 'mouse', - adjust: { - mouse: false - } - }, - style: { - classes: 'qtip-light qtip-custom' - }, - show: { - delay: 1000 - }, - hide: 'unfocus mouseleave', - content: { - text: info.comment ? info.comment : "No description available", - title: info.title - } - }); cell.find(".series_link") .attr("title", info.series_name + " [" + info.series_index + "]") |