Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15600651
D10867.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D10867.diff
View Options
diff --git a/resources/celerity/map.php b/resources/celerity/map.php
--- a/resources/celerity/map.php
+++ b/resources/celerity/map.php
@@ -8,7 +8,7 @@
return array(
'names' => array(
'core.pkg.css' => '0784ef1d',
- 'core.pkg.js' => 'cbdbd552',
+ 'core.pkg.js' => 'e5f7f2ba',
'darkconsole.pkg.js' => 'df001cab',
'differential.pkg.css' => '8af45893',
'differential.pkg.js' => '42c10e78',
@@ -481,7 +481,7 @@
'rsrc/js/core/behavior-remarkup-preview.js' => 'f7379f45',
'rsrc/js/core/behavior-reorder-applications.js' => '76b9fc3e',
'rsrc/js/core/behavior-reveal-content.js' => '60821bc7',
- 'rsrc/js/core/behavior-search-typeahead.js' => 'd712ac5f',
+ 'rsrc/js/core/behavior-search-typeahead.js' => '724b1247',
'rsrc/js/core/behavior-select-on-click.js' => '4e3e79a6',
'rsrc/js/core/behavior-toggle-class.js' => 'e566f52c',
'rsrc/js/core/behavior-tokenizer.js' => 'b3a4b884',
@@ -622,7 +622,7 @@
'javelin-behavior-phabricator-oncopy' => '2926fff2',
'javelin-behavior-phabricator-remarkup-assist' => 'e32d14ab',
'javelin-behavior-phabricator-reveal-content' => '60821bc7',
- 'javelin-behavior-phabricator-search-typeahead' => 'd712ac5f',
+ 'javelin-behavior-phabricator-search-typeahead' => '724b1247',
'javelin-behavior-phabricator-show-all-transactions' => '7c273581',
'javelin-behavior-phabricator-tooltips' => '3ee3408b',
'javelin-behavior-phabricator-transaction-comment-form' => '9f7309fb',
@@ -1278,6 +1278,16 @@
'phabricator-phtize',
'changeset-view-manager',
),
+ '724b1247' => array(
+ 'javelin-behavior',
+ 'javelin-typeahead-ondemand-source',
+ 'javelin-typeahead',
+ 'javelin-dom',
+ 'javelin-uri',
+ 'javelin-util',
+ 'javelin-stratcom',
+ 'phabricator-prefab',
+ ),
'7319e029' => array(
'javelin-behavior',
'javelin-dom',
@@ -1733,16 +1743,6 @@
'javelin-stratcom',
'javelin-dom',
),
- 'd712ac5f' => array(
- 'javelin-behavior',
- 'javelin-typeahead-ondemand-source',
- 'javelin-typeahead',
- 'javelin-dom',
- 'javelin-uri',
- 'javelin-util',
- 'javelin-stratcom',
- 'phabricator-prefab',
- ),
'd75709e6' => array(
'javelin-behavior',
'javelin-workflow',
diff --git a/webroot/rsrc/js/core/behavior-search-typeahead.js b/webroot/rsrc/js/core/behavior-search-typeahead.js
--- a/webroot/rsrc/js/core/behavior-search-typeahead.js
+++ b/webroot/rsrc/js/core/behavior-search-typeahead.js
@@ -62,12 +62,19 @@
var ii;
for (ii = 0; ii < list.length; ii++) {
var item = list[ii];
+
+ for (var jj = 0; jj < tokens.length; jj++) {
+ if (item.name.indexOf(tokens[jj]) === 0) {
+ priority_hits[item.id] = true;
+ }
+ }
+
if (!item.priority) {
continue;
}
- for (var jj = 0; jj < tokens.length; jj++) {
- if (item.priority.substr(0, tokens[jj].length) == tokens[jj]) {
+ for (var hh = 0; hh < tokens.length; hh++) {
+ if (item.priority.substr(0, tokens[hh].length) == tokens[hh]) {
priority_hits[item.id] = true;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, May 14, 6:58 PM (20 h, 33 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7992377
Default Alt Text
D10867.diff (3 KB)
Attached To
Mode
D10867: Search Typeahead - make exact matches show up first
Attached
Detach File
Event Timeline
Log In to Comment