Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1046967
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
Sun, Jun 29, 2:34 PM
Size
1 KB
Mime Type
text/x-diff
Expires
Mon, Jun 30, 2:34 PM (53 m, 46 s)
Engine
blob
Format
Raw Data
Handle
676690
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