Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CiviCRM Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
CiviCRM Core
Commits
05bba38d
Commit
05bba38d
authored
3 years ago
by
Rich
Browse files
Options
Downloads
Patches
Plain Diff
Reinstate jQueryUI visible focus effect in quicksearch user-interface issue 37
parent
586db1c6
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/crm.menubar.js
+8
-1
8 additions, 1 deletion
js/crm.menubar.js
with
8 additions
and
1 deletion
js/crm.menubar.js
+
8
−
1
View file @
05bba38d
...
...
@@ -314,6 +314,12 @@
});
},
focus
:
function
(
event
,
ui
)
{
// This is when an item is 'focussed' by keyboard up/down or mouse hover.
// It is not the same as actually having focus, i.e. it is not :focus
var
lis
=
$
(
event
.
currentTarget
).
find
(
'
li[data-cid="
'
+
ui
.
item
.
value
+
'
"]
'
);
lis
.
children
(
'
div
'
).
addClass
(
'
ui-state-active
'
);
lis
.
siblings
().
children
(
'
div
'
).
removeClass
(
'
ui-state-active
'
);
// Returning false leaves the user-entered text as it was.
return
false
;
},
select
:
function
(
event
,
ui
)
{
...
...
@@ -340,6 +346,7 @@
.
autocomplete
(
"
instance
"
).
_renderItem
=
function
(
ul
,
item
)
{
var
uiMenuItemWrapper
=
$
(
"
<div class='ui-menu-item-uiMenuItemWrapper'>
"
);
if
(
item
.
value
==
0
)
{
// "No results"
uiMenuItemWrapper
.
text
(
item
.
label
);
}
else
{
...
...
@@ -359,7 +366,7 @@
}));
}
return
$
(
"
<li class='ui-menu-item'>
"
)
return
$
(
"
<li class='ui-menu-item'
data-cid=
"
+
item
.
value
+
"
>
"
)
.
append
(
uiMenuItemWrapper
)
.
appendTo
(
ul
);
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment