View Single Post
Old 03-21-2023, 02:26 PM   #7
huotg01
Enthusiast
huotg01 began at the beginning.
 
Posts: 35
Karma: 10
Join Date: Apr 2013
Location: Montreal, Qc, Canada
Device: Moon Reader, Xiaomi Note 10
Hi kovidgoyal

I finally found out the function in the JavaScript file viewer.js, in the folder Ressources.

1- I don't know what to change to remove the second line (the filter) in the list
2- When the modification is made, what do I have to do the make it work ?

Would you have a minute to help me on that ?

Thanks,

Gaston

Quote:
function create_vl_panel(container_id) {
var container, items, vls, vl_names, name;
if (!library_data.sortable_fields) {
ρσ_interpolate_kwargs.call(this, show_panel, ["book_list"].concat([ρσ_desugar_kwargs({replace: true})]));
return;
}
container = document.getElementById(container_id);
ρσ_interpolate_kwargs.call(this, create_top_bar, [container].concat([ρσ_desugar_kwargs({title: _("Choose Virtual library…"), action: back, icon: "close"})]));
items = ρσ_list_decorate([]);
vls = all_virtual_libraries();
vl_names = Object.keys(vls).sort((function() {
var ρσ_anonfunc = function (a, b) {
return a.toLowerCase().localeCompare(b.toLowerCase());
};
if (!ρσ_anonfunc.__argnames__) Object.defineProperties(ρσ_anonfunc, {
__argnames__ : {value: ["a", "b"]},
__module__ : {value: "book_list.views"}
});
return ρσ_anonfunc;
})());
var ρσ_Iter5 = ρσ_Iterable(vl_names);
for (var ρσ_Index5 = 0; ρσ_Index5 < ρσ_Iter5.length; ρσ_Index5++) {
name = ρσ_Iter5[ρσ_Index5];
items.push(ρσ_interpolate_kwargs.call(this, create_item, [name].concat([ρσ_desugar_kwargs({subtitle: vls[(typeof name === "number" && name < 0) ? vls.length + name : name], action: show_vl.bind(null, name, true)})])));
}
container.appendChild(E.div());
create_item_list(container.lastChild, items, _("Choose a Virtual library to browse from the list below"));
enable_escape_key(container, back);
};
if (!create_vl_panel.__argnames__) Object.defineProperties(create_vl_panel, {
__argnames__ : {value: ["container_id"]},
__module__ : {value: "book_list.views"}
});
huotg01 is offline   Reply With Quote