mirror of
https://github.com/lazylibrarian/LazyLibrarian.git
synced 2026-06-12 01:28:41 -04:00
Fix for #1479
This commit is contained in:
@@ -29,13 +29,17 @@
|
||||
|
||||
var array = pop_types.split(' ');
|
||||
var item;
|
||||
var loc = 'openBook?bookid=' + bookid + '&library=eBook&booktype='
|
||||
for (item of array) {
|
||||
buttons[item] = {
|
||||
% for extn in valid:
|
||||
if (item === "${extn}") {
|
||||
buttons[item] = {
|
||||
label: item,
|
||||
className: 'btn-info',
|
||||
callback: function(result){ window.location = 'openBook?bookid=' + bookid +
|
||||
'&library=eBook&booktype=' + item }
|
||||
callback: function(result){ window.location = loc + "${extn}"; }
|
||||
};
|
||||
}
|
||||
%endfor
|
||||
};
|
||||
|
||||
bootbox.dialog({
|
||||
|
||||
Reference in New Issue
Block a user