diff options
-rw-r--r-- | ncp-web/index.php | 12 | ||||
-rw-r--r-- | ncp-web/ncp.js | 9 |
2 files changed, 10 insertions, 11 deletions
diff --git a/ncp-web/index.php b/ncp-web/index.php index 98d7c152..05cf1573 100644 --- a/ncp-web/index.php +++ b/ncp-web/index.php @@ -82,7 +82,7 @@ HTML; <header role="banner"><div id="header"> <div id="header-left"> <a href="https://ownyourbits.com/2017/02/13/nextcloud-ready-raspberry-pi-image/" - id="nextcloudpi" tabindex="1" target="_blank"> + id="nextcloudpi" tabindex="1"> <div class="logo-icon"> <h1 class="hidden-visually">NextCloudPi</h1> </div> @@ -95,11 +95,13 @@ HTML; <?php if ( file_exists( 'wizard' ) ) echo <<<HTML - <div class="wizard-btn"> - <div id="expand"> - <div class="icon-wizard-white"></div> + <a href="wizard"> + <div class="wizard-btn"> + <div id="expand"> + <div class="icon-wizard-white"></div> + </div> </div> - </div> + </a> HTML; ?> <div id="poweroff"> diff --git a/ncp-web/ncp.js b/ncp-web/ncp.js index c666bdc4..155bf299 100644 --- a/ncp-web/ncp.js +++ b/ncp-web/ncp.js @@ -265,12 +265,6 @@ $(function() }).error( errorMsg ); } ); - // Wizard button - $( '.wizard-btn' ).on('click', function(e) - { - window.location = 'wizard'; - } ); - // close notification icon $( '.icon-close' ).on('click', function(e) { @@ -287,6 +281,9 @@ $(function() if( e.target.id == 'first-run-wizard' ) $( '#first-run-wizard' ).hide(); } ); + + // click to nextcloud button + $('#nextcloudpi').set( '@href', window.location.protocol + '//' + window.location.hostname ); }); // License |