Skip to content

Commit 53ba352

Browse files
committed
Improved some things in caliblur theme (hide back button)
1 parent bbc3219 commit 53ba352

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

cps/static/js/caliBlur.js

+15-1
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ if ($("body.book").length > 0) {
125125
$("#sendbtn").parent().addClass("sendBtn");
126126
$("[id*=btnGroupDrop]").parent().addClass("downloadBtn");
127127
$("read-in-browser").parent().addClass("readBtn");
128+
$("listen-in-browser").parent().addClass("listenBtn");
128129
$(".downloadBtn button:first").addClass("download-text");
129130

130131
// Move all options in book details page to the same group
@@ -138,21 +139,33 @@ if ($("body.book").length > 0) {
138139
.prependTo('[aria-label^="Download, send"]');
139140
$("#have_read_cb")
140141
.after('<label class="block-label readLbl" for="#have_read_cb"></label>');
142+
$("#have_read_form").next("p").remove();
143+
$("#have_read_form").next("p").remove();
141144
$("#archived_cb")
142145
.after('<label class="block-label readLbl" for="#archived_cb"></label>');
143146
$("#shelf-actions").prependTo('[aria-label^="Download, send"]');
144147

148+
$(".more-stuff .col-sm-12 #back").hide()
149+
/* .html("&laquo; Previous")
150+
.addClass("page-link")
151+
.removeClass("btn btn-default")
152+
.prependTo('[aria-label^="Download, send"]');*/
145153

146154
// Move dropdown lists higher in dom, replace bootstrap toggle with own toggle.
147155
$('ul[aria-labelledby="read-in-browser"]').insertBefore(".blur-wrapper").addClass("readinbrowser-drop");
156+
$('ul[aria-labelledby="listen-in-browser"]').insertBefore(".blur-wrapper").addClass("readinbrowser-drop");
148157
$('ul[aria-labelledby="send-to-kereader"]').insertBefore(".blur-wrapper").addClass("sendtoereader-drop");
149158
$(".leramslist").insertBefore(".blur-wrapper");
150159
$('ul[aria-labelledby="btnGroupDrop1"]').insertBefore(".blur-wrapper").addClass("leramslist");
151160
$("#add-to-shelves").insertBefore(".blur-wrapper");
152-
161+
$("#back")
153162
$("#read-in-browser").click(function () {
154163
$(".readinbrowser-drop").toggle();
155164
});
165+
$("#listen-in-browser").click(function () {
166+
$(".readinbrowser-drop").toggle();
167+
});
168+
156169

157170
$(".downloadBtn").click(function () {
158171
$(".leramslist").toggle();
@@ -626,6 +639,7 @@ if ($("body.epub").length === 0) {
626639
}
627640

628641
$("#read-in-browser a").attr("target", "");
642+
$("#listen-in-browser a").attr("target", "");
629643

630644
if ($(".edit-shelf-btn").length > 1) {
631645
$(".edit-shelf-btn:first").remove();

0 commit comments

Comments
 (0)