Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F847916
D215.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Apr 19, 7:49 PM
Size
1 KB
Mime Type
text/x-diff
Expires
Sun, Apr 20, 7:49 PM (1 h, 5 m)
Engine
blob
Format
Raw Data
Handle
602695
Attached To
D215: INP-1549 - Perform search, when ENTER used in "grid_like_combo_filter" block (the jQueryUI.Autocomplete)
D215.diff
View Options
Index: branches/5.3.x/core/admin_templates/incs/grid_blocks.tpl
===================================================================
--- branches/5.3.x/core/admin_templates/incs/grid_blocks.tpl
+++ branches/5.3.x/core/admin_templates/incs/grid_blocks.tpl
@@ -350,7 +350,12 @@
onkeypress="search_keydown(event, '<inp2:m_Param name="PrefixSpecial"/>', '<inp2:m_Param name="grid"/>', '<inp2:m_Param name="ajax"/>')"/>
<script type="text/javascript">
$('#' + jq('<inp2:SearchInputName field="$filter_field" filter_type="like" grid="$grid"/>')).autocomplete({
- source: '<inp2:m_t pass="m,{$PrefixSpecial}" field="$filter_field" {$PrefixSpecial}_event="OnSuggestValuesJSON" no_amp="1" js_escape="1"/>'
+ source: '<inp2:m_t pass="m,{$PrefixSpecial}" field="$filter_field" {$PrefixSpecial}_event="OnSuggestValuesJSON" no_amp="1" js_escape="1"/>',
+ select: function (event, ui) {
+ if ( event.which === 13 ) {
+ search('<inp2:m_Param name="PrefixSpecial"/>', '<inp2:m_Param name="grid"/>', parseInt('<inp2:m_Param name="ajax"/>'));
+ }
+ }
});
</script>
</inp2:m_DefineElement>
@@ -867,4 +872,4 @@
<inp2:m_RenderElement name="grid_pagination_elem" PrefixSpecial="$pagination_prefix" pass_params="1"/>
</inp2:m_if>
</inp2:m_if>
-</inp2:m_DefineElement>
\ No newline at end of file
+</inp2:m_DefineElement>
Event Timeline
Log In to Comment