This commit is contained in:
Phil Borman
2018-06-22 14:27:01 +02:00
parent f23cb6806f
commit 7ea09db8de

View File

@@ -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({