From a37303a46caf94df41efe3b767e58da7384c0946 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Mon, 21 Nov 2022 16:36:56 +0100 Subject: [PATCH] MVC / UIBootgrid - add support for title property on custom commands (used in tooltips) --- src/opnsense/www/js/opnsense_bootgrid_plugin.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/opnsense/www/js/opnsense_bootgrid_plugin.js b/src/opnsense/www/js/opnsense_bootgrid_plugin.js index 1c406cbdf..7a249509e 100644 --- a/src/opnsense/www/js/opnsense_bootgrid_plugin.js +++ b/src/opnsense/www/js/opnsense_bootgrid_plugin.js @@ -155,6 +155,7 @@ $.fn.UIBootgrid = function (params) { let rowid = params.datakey !== undefined ? params.datakey : 'uuid'; commandlist.map(function(command){ let has_option = command.classname !== undefined; + let option_title_str = command.title !== undefined ? " title=\""+command.title+"\"" : ""; for (let i=0; i < command.requires.length; i++) { if (!(command.requires[i] in params)) { has_option = false; @@ -162,7 +163,8 @@ $.fn.UIBootgrid = function (params) { } if (has_option) { - html.push(" " );