summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-06-29 16:21:51 +0300
committerAndrew Dolgov <[email protected]>2018-06-29 16:21:51 +0300
commitc0fd1123ba9c43ec3844c4f34f5241c6b1e1da17 (patch)
tree39b8910cf6c92b109004709a7d21012c1bf439ba /js
parent71d7bb95fc9a914bb2e543f31747172d8bbb0ee2 (diff)
remove tooltips, bithack epub.js to remove hardcoded 20px content padding (what the fuck)
Diffstat (limited to 'js')
-rw-r--r--js/index.js41
-rw-r--r--js/offline.js19
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 + "]")