소스 검색

HUE-3794 [editor] Click on a result row to highlight

Enrico Berti 10 년 전
부모
커밋
499eee1
2개의 변경된 파일15개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      desktop/core/src/desktop/static/desktop/css/hue3.css
  2. 10 0
      desktop/libs/notebook/src/notebook/templates/editor_components.mako

+ 5 - 0
desktop/core/src/desktop/static/desktop/css/hue3.css

@@ -1005,6 +1005,11 @@ div.box {
   background-color: #EFEFEF;
 }
 
+.table tr.selected, .table tr.selected td {
+  background-color: #DBE8F1!important;
+}
+
+
 .nounderline:hover {
   text-decoration: none;
 }

+ 10 - 0
desktop/libs/notebook/src/notebook/templates/editor_components.mako

@@ -3026,6 +3026,16 @@ ${ hueIcons.symbols() }
         }
       });
 
+      $(document).on('click', '.resultTable tbody tr', function () {
+        if ($(this).hasClass('selected')) {
+          $(this).removeClass('selected');
+        }
+        else {
+          $('.resultTable tbody tr.selected').removeClass('selected');
+          $(this).addClass('selected');
+        }
+      });
+
       function resizeToggleResultSettings (snippet) {
         var _dtElement;
         if (snippet.showGrid()) {