Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 6479f0a

Browse files
authored
Merge pull request #1193 from schellenberg/master
only change html footer if use_services is true
2 parents 11ffe8c + fb19f3b commit 6479f0a

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

runestone/common/js/bookfuncs.js

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -243,15 +243,17 @@ function setupNavbarLoggedIn() {
243243
$(document).bind("runestone:login", setupNavbarLoggedIn);
244244

245245
function setupNavbarLoggedOut() {
246-
console.log("setup navbar for logged out");
247-
$("#registerlink").show();
248-
$("#profilelink").hide();
249-
$("#passwordlink").hide();
250-
$("#ip_dropdown_link").hide();
251-
$("li.loginout").html(
252-
'<a href="' + eBookConfig.app + '/default/user/login">Login</a>'
253-
);
254-
$(".footer").html("user not logged in");
246+
if (eBookConfig.useRunestoneServices) {
247+
console.log("setup navbar for logged out");
248+
$("#registerlink").show();
249+
$("#profilelink").hide();
250+
$("#passwordlink").hide();
251+
$("#ip_dropdown_link").hide();
252+
$("li.loginout").html(
253+
'<a href="' + eBookConfig.app + '/default/user/login">Login</a>'
254+
);
255+
$(".footer").html("user not logged in");
256+
}
255257
}
256258
$(document).bind("runestone:logout", setupNavbarLoggedOut);
257259

0 commit comments

Comments
 (0)