Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
4c5cfd51
Commit
4c5cfd51
authored
Dec 06, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(metric_editors): Fixes clicking timing issue for typeahead auto dropdown option, fixes #3428
parent
5aa90eb0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
CHANGELOG.md
+6
-1
public/app/core/directives/metric_segment.js
+4
-4
No files found.
CHANGELOG.md
View file @
4c5cfd51
# 2.6.0 (unreleased)
# 2.6.0 (2015-12-04)
### Bug Fixes
*
**metric editors**
: Fix for clicking typeahead auto dropdown option, fixes
[
#3428
](
https://github.com/grafana/grafana/issues/3428
)
# 2.6.0-Beta1 (2015-12-04)
### New Table Panel
*
**table**
: New powerful and flexible table panel, closes
[
#215
](
https://github.com/grafana/grafana/issues/215
)
...
...
public/app/core/directives/metric_segment.js
View file @
4c5cfd51
...
...
@@ -55,8 +55,8 @@ function (_, $, coreModule) {
});
};
$scope
.
switchToLink
=
function
()
{
if
(
linkMode
)
{
return
;
}
$scope
.
switchToLink
=
function
(
fromClick
)
{
if
(
linkMode
&&
!
fromClick
)
{
return
;
}
clearTimeout
(
cancelBlur
);
cancelBlur
=
null
;
...
...
@@ -69,7 +69,7 @@ function (_, $, coreModule) {
$scope
.
inputBlur
=
function
()
{
// happens long before the click event on the typeahead options
// need to have long delay because the blur
cancelBlur
=
setTimeout
(
$scope
.
switchToLink
,
1
00
);
cancelBlur
=
setTimeout
(
$scope
.
switchToLink
,
2
00
);
};
$scope
.
source
=
function
(
query
,
callback
)
{
...
...
@@ -100,7 +100,7 @@ function (_, $, coreModule) {
}
$input
.
val
(
value
);
$scope
.
switchToLink
();
$scope
.
switchToLink
(
true
);
return
value
;
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment