From c0fd1123ba9c43ec3844c4f34f5241c6b1e1da17 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 29 Jun 2018 16:21:51 +0300 Subject: remove tooltips, bithack epub.js to remove hardcoded 20px content padding (what the fuck) --- js/index.js | 41 ----------------------------------------- js/offline.js | 19 ------------------- 2 files changed, 60 deletions(-) (limited to 'js') 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 + "]") -- cgit v1.2.3