diff --git a/css/styles.css b/css/styles.css index f06b126..f8ff56a 100644 --- a/css/styles.css +++ b/css/styles.css @@ -115,6 +115,7 @@ header { .hero-typeahead .typeahead-result { padding: 15px; + cursor: pointer; } .hero-typeahead .typeahead-result.selected { diff --git a/index.html b/index.html index f88ce20..bade7e1 100644 --- a/index.html +++ b/index.html @@ -1,13 +1,13 @@ TL-Schema Explorer - + - + diff --git a/js/app.js b/js/app.js index c3a8319..1d4c9be 100644 --- a/js/app.js +++ b/js/app.js @@ -185,6 +185,10 @@ tlDocsApp.controller("mainController", function($scope, $rootScope, $location, s $location.path(`/${result.type}/${result.name}`) } + $scope.clickResult = function(result) { + $location.path(`/${result.type}/${result.name}`) + } + if($rootScope.globalSearch) { $scope.search = $rootScope.globalSearch document.getElementById("heroSearchBar").focus() diff --git a/views/index.html b/views/index.html index 93be508..556db99 100644 --- a/views/index.html +++ b/views/index.html @@ -6,7 +6,7 @@
-
+
{{ result.name }}