diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-02-21 21:55:28 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-02-21 21:57:41 +0300 |
commit | 8d100b9d8716392ae8c845f25c2178f838dd19a7 (patch) | |
tree | 709d62f7c24b3c7fbee5317b8053ae78eefa7943 | |
parent | 63b74a82731fc97d28249e4f081fd3e38e2b44ca (diff) |
ncp-web: link to wizard and Nextcloud instancev0.46.24
-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 |