fix: add support for progressive enhancement in included mode (#100)

This commit is contained in:
Martin Monperrus
2019-12-15 16:59:21 +00:00
committed by GitHub
parent c6464f9cec
commit f48e78d5c8
2 changed files with 6 additions and 2 deletions
+4 -1
View File
@@ -4210,7 +4210,7 @@ if (method_exists($content, 'getTitle')) {
$content->display();
echo poweredby();
if (BIBTEXBROWSER_USE_PROGRESSIVE_ENHANCEMENT) {
if (c('BIBTEXBROWSER_USE_PROGRESSIVE_ENHANCEMENT')) {
javascript();
}
@@ -4235,6 +4235,9 @@ usage:
*/
function NoWrapper($content) {
echo $content->display();
if (c('BIBTEXBROWSER_USE_PROGRESSIVE_ENHANCEMENT')) {
javascript();
}
}
/** is used to create an subset of a bibtex file.