From dd7071061791d3a4508c719685c7220ae7641bfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Tue, 23 Jan 2018 16:10:04 +0100 Subject: [PATCH] refactor: minor css class naming change of #10505 --- .../app/plugins/datasource/graphite/func_editor.js | 12 ++++++------ public/sass/components/_query_part.scss | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/public/app/plugins/datasource/graphite/func_editor.js b/public/app/plugins/datasource/graphite/func_editor.js index 949a6912720..5648aa4935b 100644 --- a/public/app/plugins/datasource/graphite/func_editor.js +++ b/public/app/plugins/datasource/graphite/func_editor.js @@ -43,7 +43,7 @@ function (angular, _, $, rst2html) { $input.val(func.params[paramIndex]); - $comma.removeClass('last'); + $comma.removeClass('query-part__last'); $link.hide(); $input.show(); $input.focus(); @@ -103,10 +103,10 @@ function (angular, _, $, rst2html) { ctrl.targetChanged(); }); - if ($link.hasClass('last') && newValue === '') { - $comma.addClass('last'); + if ($link.hasClass('query-part__last') && newValue === '') { + $comma.addClass('query-part__last'); } else { - $link.removeClass('last'); + $link.removeClass('query-part__last'); } $input.hide(); @@ -202,11 +202,11 @@ function (angular, _, $, rst2html) { } if (index > 0) { - $(', ').appendTo(elem); + $(', ').appendTo(elem); } var $paramLink = $( - '' + '' + (paramValue || ' ') + ''); var $input = $(paramTemplate); $input.attr('placeholder', param.name); diff --git a/public/sass/components/_query_part.scss b/public/sass/components/_query_part.scss index f029f781fd1..e5ad043788f 100644 --- a/public/sass/components/_query_part.scss +++ b/public/sass/components/_query_part.scss @@ -7,11 +7,11 @@ text-align: center; } - .last { + .query-part__last { display: none; } - &:hover .last { + &:hover .query-part__last { display: inline; } }