From e4182acfe342ea76922afc9f6ad01a87318b0e90 Mon Sep 17 00:00:00 2001 From: Eric Barbour Date: Jul 13 2016 18:46:33 +0000 Subject: Fix improper search behavior Ref: https://pagure.io/pagure/pull-request/1085#comment-7171 Add searchKey config to search by username --- diff --git a/pagure/templates/issue.html b/pagure/templates/issue.html index a15039c..997a59c 100644 --- a/pagure/templates/issue.html +++ b/pagure/templates/issue.html @@ -298,6 +298,7 @@ $(document).ready(function() { data: resp['mention'], insertTpl: '@${username}', displayTpl: "
  • ${username} ${name}
  • ", + searchKey: "username" } $("#comment").atwho(userConfig); }); diff --git a/pagure/templates/pull_request.html b/pagure/templates/pull_request.html index a7532ef..4cb28d2 100644 --- a/pagure/templates/pull_request.html +++ b/pagure/templates/pull_request.html @@ -1195,6 +1195,7 @@ $(document).ready(function () { data: resp['mention'], insertTpl: '@${username}', displayTpl: "
  • ${username} ${name}
  • ", + searchKey: "username" } $("#comment").atwho(userConfig); });