From a72f6f7dac47ff4595d905d8af0a0d9a3dbd9b72 Mon Sep 17 00:00:00 2001 From: TJ Horner Date: Mon, 21 Aug 2017 18:54:14 -0700 Subject: [PATCH] Heckin good changes --- css/styles.css | 1 + index.html | 4 ++-- js/app.js | 4 ++++ views/index.html | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) 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 }}