Browse Source

HUE-6549 [editor] Fix title on expand row icon

Johan Ahlen 8 years ago
parent
commit
594255a

+ 6 - 5
desktop/core/src/desktop/static/desktop/js/jquery.tableextender2.js

@@ -33,8 +33,9 @@
     labels: {
       GO_TO_COLUMN: "Go to column:",
       PLACEHOLDER: "column name...",
-      LOCK: "Click to lock row",
-      UNLOCK: "Click to unlock row"
+      LOCK: "Lock row",
+      UNLOCK: "Unlock row",
+      ROW_DETAILS: "Show row details"
     }
   };
 
@@ -416,13 +417,13 @@
     if (self.options.lockSelectedRow) {
       clonedTBody.find('td').each(function(idx){
         var cell = $(this);
-        cell.attr('title', self.options.labels.LOCK).addClass('lockable');
+        cell.addClass('lockable');
         $('<i>').addClass('fa fa-lock pointer muted').prependTo(cell).on('click', function(){
           self.drawLockedRow($(this).parent().text()*1);
-        });
+        }).attr('title', self.options.labels.LOCK);
         $('<i>').addClass('fa fa-expand pointer muted').prependTo(cell).on('click', function(){
           huePubSub.publish('table.row.dblclick', {idx: idx, table: self.$element});
-        });
+        }).attr('title', self.options.labels.ROW_DETAILS);
       });
     }
     clonedTable.find("thead>tr th:eq(0)").width(originalTh.width()).css("background-color", "#FFFFFF");

+ 3 - 2
desktop/core/src/desktop/templates/common_header_footer_components.mako

@@ -96,8 +96,9 @@ from metadata.conf import has_optimizer, OPTIMIZER
       labels: {
         GO_TO_COLUMN: "${_('Go to column:')}",
         PLACEHOLDER: "${_('column name...')}",
-        LOCK: "${_('Click to lock this row')}",
-        UNLOCK: "${_('Click to unlock this row')}"
+        LOCK: "${_('Lock this row')}",
+        UNLOCK: "${_('Unlock this row')}",
+        ROW_DETAILS: "${_('Show row details')}"
       }
     };
 

+ 3 - 2
desktop/core/src/desktop/templates/common_header_m.mako

@@ -104,8 +104,9 @@ if USE_NEW_EDITOR.get():
       labels: {
         GO_TO_COLUMN: "${_('Go to column:')}",
         PLACEHOLDER: "${_('column name...')}",
-        LOCK: "${_('Click to lock this row')}",
-        UNLOCK: "${_('Click to unlock this row')}"
+        LOCK: "${_('Lock this row')}",
+        UNLOCK: "${_('Unlock this row')}",
+        ROW_DETAILS: "${_('Show row details')}"
       }
     };