Skip to content

Node.js based forum software built for the modern web

minor tweak to 'start' button at end of install wizard

Julian Lam069cf5c6cbfd
diff --git a/public/templates/install/privileges.tpl b/public/templates/install/privileges.tpl
index 466febc9c5..a35a1cfe7a 100644
--- a/public/templates/install/privileges.tpl
+++ b/public/templates/install/privileges.tpl
@@ -27,7 +27,7 @@
<hr />
<div class="pull-right">
- <a href="/" class="btn btn-success btn-large"><i class="icon-thumbs-up"></i> Start using NodeBB!</a>
+ <button id="start-nodebb" class="btn btn-success btn-large"><i class="icon-thumbs-up"></i> Start using NodeBB!</button>
</div>
<div>
<button data-path="social" class="btn btn-primary btn-large">Previous &ndash; <i class="icon-facebook"></i> Social</button>
@@ -36,5 +36,11 @@
<script>
(function() {
nodebb_setup.prepare();
+
+ var startEl = document.getElementById('start-nodebb');
+ startEl.addEventListener('click', function(e) {
+ e.preventDefault();
+ document.location.href = '/';
+ });
})();
</script>
\ No newline at end of file