From b6cf2762c3d2ddfde7ebaf75ab75b08d980bf813 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 24 Mar 2014 18:00:09 +0000 Subject: [PATCH] egw tooltips aren't supported in nextmatch rows, so set field title for custom field list when not shown as separate column. Also set data attributes, if anyone wants to try some fancy styling. --- etemplate/js/et2_extension_customfields.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/etemplate/js/et2_extension_customfields.js b/etemplate/js/et2_extension_customfields.js index 98c5af836a..9e597dc4d9 100644 --- a/etemplate/js/et2_extension_customfields.js +++ b/etemplate/js/et2_extension_customfields.js @@ -213,6 +213,12 @@ var et2_customfields_list = et2_valueWidget.extend([et2_IDetachedDOM, et2_IInput if(this._type == 'customfields-list') { // No label, cust widget attrs.readonly = true; + // Widget tooltips don't work in nextmatch because of the creation / binding separation + // Set title to field label so browser will show something + // Add field label & help as data attribute to row, so it can be stylied with CSS (title should be disabled) + row.attr('title', field.label); + row.attr('data-label', field.label); + row.attr('data-help', field.help); this.detachedNodes.push(cf[0]); } else { // Label in first column, widget in 2nd