From d3b2742da01a81bfa017c0aeb2d87c5a31db9c10 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 12 Mar 2015 16:50:46 -0400 Subject: [PATCH] closes #2746 closes #2747 --- public/src/admin/modules/search.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/public/src/admin/modules/search.js b/public/src/admin/modules/search.js index dec438165d..781f4ade9e 100644 --- a/public/src/admin/modules/search.js +++ b/public/src/admin/modules/search.js @@ -103,11 +103,17 @@ define(function() { if (menuItems.html() !== '') { menuItems.append(''); + } else { + menuItems.append('
  • No results...
  • '); } } if (value.length > 0) { - menuItems.append('
  • Search the forum for ' + value + '
  • '); + if (config.searchEnabled) { + menuItems.append('
  • Search the forum for ' + value + '
  • '); + } else if (value.length < 3) { + menuItems.append('
  • Type more to see results...
  • '); + } } else { menuItems.append('
  • Start typing to see results...
  • '); }