diff --git a/public/js/controllers/search.js b/public/js/controllers/search.js index e1299dc..1dd2c58 100644 --- a/public/js/controllers/search.js +++ b/public/js/controllers/search.js @@ -1,7 +1,7 @@ 'use strict'; angular.module('insight.search').controller('SearchController', - function ($scope, $routeParams, $location, Global, Block, Transaction, Address) { + function ($scope, $routeParams, $location, $timeout, Global, Block, Transaction, Address) { $scope.global = Global; $scope.search = function() { @@ -26,6 +26,9 @@ angular.module('insight.search').controller('SearchController', $location.path('address/' + q); }, function () { //address not found, fail :( $scope.badQuery = true; + $timeout(function() { + $scope.badQuery = false; + }, 2000); $scope.q = q; }); }); diff --git a/public/views/header.html b/public/views/header.html index 6d12e44..bcc2d55 100755 --- a/public/views/header.html +++ b/public/views/header.html @@ -11,17 +11,18 @@