diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-06-09 07:18:41 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-06-09 07:18:41 -0700 |
commit | b84ef45eb13f218c63cd904386db6bb737ef8bee (patch) | |
tree | 28261763712ee8cff3a3d6d256b76920e48934a3 /themes/default | |
parent | 01042b6d8528a396df1cfa145a43ca589f51ec7c (diff) |
Rather than just displaying the "unformatted" login screen when the root album
is not viewable by a guest, display the root album as if it was empty. When
the page finishes loading force the login dialog to be displayed.
Diffstat (limited to 'themes/default')
-rw-r--r-- | themes/default/views/page.html.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/themes/default/views/page.html.php b/themes/default/views/page.html.php index 6c77fb72..a17b643d 100644 --- a/themes/default/views/page.html.php +++ b/themes/default/views/page.html.php @@ -52,6 +52,13 @@ <script src="<?= $theme->url("js/jquery.localscroll.js") ?>" type="text/javascript"></script> <script src="<?= $theme->url("js/ui.init.js") ?>" type="text/javascript"></script> <?= $theme->head() ?> + <? if (!empty($unauthorized)): ?> + <script type="text/javascript"> + $(document).ready(function() { + $("#gLoginLink").click(); + }); + </script> + <? endif ?> </head> <body <?= $theme->main_element_attributes() ?>> |