]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frost-mobile/theme.php
Merge remote-tracking branch 'upstream/develop' into 1612-unused-indexes
[friendica.git] / view / theme / frost-mobile / theme.php
index 24d5e9e52e0c3e3ec2e76cd32e2408522bad4db0..ceb28c2d6627abd3883c6d9759f9dbed5a83851e 100644 (file)
@@ -22,11 +22,13 @@ function frost_mobile_content_loaded(&$a) {
 
        // I could do this in style.php, but by having the CSS in a file the browser will cache it,
        // making pages load faster
-       if( $a->module === 'home' || $a->module === 'login' || $a->module === 'register' || $a->module === 'lostpass' ) {
+       if ( $a->module === 'home' || $a->module === 'login' || $a->module === 'register' || $a->module === 'lostpass' ) {
 //             $a->page['htmlhead'] = str_replace('$stylesheet', App::get_baseurl() . '/view/theme/frost-mobile/login-style.css', $a->page['htmlhead']);
                $a->theme['stylesheet'] = App::get_baseurl() . '/view/theme/frost-mobile/login-style.css';
        }
-       if( $a->module === 'login' )
+
+       if ( $a->module === 'login' ) {
                $a->page['end'] .= '<script type="text/javascript"> $(document).ready(function() { $("#id_" + window.loginName).focus();} );</script>';
+       }
 
 }