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
dd707106
Commit
dd707106
authored
Jan 23, 2018
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: minor css class naming change of #10505
parent
12b08b61
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
public/app/plugins/datasource/graphite/func_editor.js
+6
-6
public/sass/components/_query_part.scss
+2
-2
No files found.
public/app/plugins/datasource/graphite/func_editor.js
View file @
dd707106
...
@@ -43,7 +43,7 @@ function (angular, _, $, rst2html) {
...
@@ -43,7 +43,7 @@ function (angular, _, $, rst2html) {
$input
.
val
(
func
.
params
[
paramIndex
]);
$input
.
val
(
func
.
params
[
paramIndex
]);
$comma
.
removeClass
(
'last'
);
$comma
.
removeClass
(
'
query-part__
last'
);
$link
.
hide
();
$link
.
hide
();
$input
.
show
();
$input
.
show
();
$input
.
focus
();
$input
.
focus
();
...
@@ -103,10 +103,10 @@ function (angular, _, $, rst2html) {
...
@@ -103,10 +103,10 @@ function (angular, _, $, rst2html) {
ctrl
.
targetChanged
();
ctrl
.
targetChanged
();
});
});
if
(
$link
.
hasClass
(
'last'
)
&&
newValue
===
''
)
{
if
(
$link
.
hasClass
(
'
query-part__
last'
)
&&
newValue
===
''
)
{
$comma
.
addClass
(
'last'
);
$comma
.
addClass
(
'
query-part__
last'
);
}
else
{
}
else
{
$link
.
removeClass
(
'last'
);
$link
.
removeClass
(
'
query-part__
last'
);
}
}
$input
.
hide
();
$input
.
hide
();
...
@@ -202,11 +202,11 @@ function (angular, _, $, rst2html) {
...
@@ -202,11 +202,11 @@ function (angular, _, $, rst2html) {
}
}
if
(
index
>
0
)
{
if
(
index
>
0
)
{
$
(
'<span class="comma'
+
(
last
?
' last'
:
''
)
+
'">, </span>'
).
appendTo
(
elem
);
$
(
'<span class="comma'
+
(
last
?
'
query-part__
last'
:
''
)
+
'">, </span>'
).
appendTo
(
elem
);
}
}
var
$paramLink
=
$
(
var
$paramLink
=
$
(
'<a ng-click="" class="graphite-func-param-link'
+
(
last
?
' last'
:
''
)
+
'">'
'<a ng-click="" class="graphite-func-param-link'
+
(
last
?
'
query-part__
last'
:
''
)
+
'">'
+
(
paramValue
||
' '
)
+
'</a>'
);
+
(
paramValue
||
' '
)
+
'</a>'
);
var
$input
=
$
(
paramTemplate
);
var
$input
=
$
(
paramTemplate
);
$input
.
attr
(
'placeholder'
,
param
.
name
);
$input
.
attr
(
'placeholder'
,
param
.
name
);
...
...
public/sass/components/_query_part.scss
View file @
dd707106
...
@@ -7,11 +7,11 @@
...
@@ -7,11 +7,11 @@
text-align
:
center
;
text-align
:
center
;
}
}
.last
{
.
query-part__
last
{
display
:
none
;
display
:
none
;
}
}
&
:hover
.last
{
&
:hover
.
query-part__
last
{
display
:
inline
;
display
:
inline
;
}
}
}
}
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