@@ -12,21 +12,6 @@ var persist_options = {
12
12
debug : true ,
13
13
} ;
14
14
15
-
16
- /*function queryParams(key) {
17
- var qd = {};
18
- if (location.search) location.search.substr(1).split("&").forEach(function(item) {
19
- var s = item.split("="),
20
- k = s[0],
21
- v = s[1] && decodeURIComponent(s[1]);
22
- (qd[k] = qd[k] || []).push(v)
23
- })
24
- if (key == undefined)
25
- return qd;
26
- else
27
- return qd[key];
28
- }*/
29
-
30
15
function getPersistedPage ( ) {
31
16
var pp = $ ( "#page_record" ) . val ( ) ;
32
17
try {
@@ -40,19 +25,6 @@ function getPersistedPage() {
40
25
}
41
26
}
42
27
43
- /*function getRequestedPage() {
44
- var qp = queryParams("page");
45
- try {
46
- return parseInt(qp) - 1;
47
- } catch (e) {
48
- if (qp) {
49
- console.log(e);
50
- console.warn("Unable to work with requested page `" + qp + "`");
51
- }
52
- return 0;
53
- }
54
- }*/
55
-
56
28
function onTablePageChange ( e , settings , table ) {
57
29
// record global ref to table
58
30
if ( table )
@@ -67,25 +39,13 @@ function goToAuthor(name) {
67
39
showBooks ( ) ;
68
40
}
69
41
70
- /*function goToTitle(title) {
71
- $("#title_filter").val(title);
72
- }*/
73
-
74
-
75
42
function minimizeUI ( ) {
76
43
console . log ( "minimizeUI" ) ;
77
44
$ ( "#hide-precontent" ) . val ( "true" ) ;
78
45
$ ( "#hide-precontent" ) . change ( ) ;
79
46
$ ( ".precontent" ) . slideUp ( 300 ) ;
80
47
}
81
48
82
- /*function maximizeUI() {
83
- console.log("maximizeUI");
84
- $("#hide-precontent").val("");
85
- $("#hide-precontent").change();
86
- $(".precontent").slideDown(300);
87
- }*/
88
-
89
49
function loadScript ( url , nodeId , callback ) {
90
50
console . log ( "requesting script for #" + nodeId + " from " + url ) ;
91
51
if ( document . getElementById ( nodeId ) ) {
@@ -196,10 +156,6 @@ function is_cover_page() {
196
156
return $ ( "body" ) . hasClass ( "cover" ) ;
197
157
}
198
158
199
- /*function is_bookshelf_page() {
200
- return $("body").hasClass("individual_book_shelf");
201
- }*/
202
-
203
159
function is_bookshelves_page ( ) {
204
160
return $ ( '#bookshelvesDisplay' ) . length != 0 ;
205
161
}
0 commit comments