[Bps-public-commit] rt-extension-inlinehelp branch master updated. e4029ba4d5b8c687e9a137b4c7e86dc3552a1554

BPS Git Server git at git.bestpractical.com
Wed Nov 10 19:09:54 UTC 2021


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt-extension-inlinehelp".

The branch, master has been updated
       via  e4029ba4d5b8c687e9a137b4c7e86dc3552a1554 (commit)
      from  c51a6ec7fa5f809a6d4f132a549327adfc61ba65 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit e4029ba4d5b8c687e9a137b4c7e86dc3552a1554
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Thu Nov 11 03:05:41 2021 +0800

    Replace core tooltips with inlinehelp style

diff --git a/html/Callbacks/RT-Extension-InlineHelp/Elements/Footer/Default b/html/Callbacks/RT-Extension-InlineHelp/Elements/Footer/Default
index 11f115c..7db0e00 100644
--- a/html/Callbacks/RT-Extension-InlineHelp/Elements/Footer/Default
+++ b/html/Callbacks/RT-Extension-InlineHelp/Elements/Footer/Default
@@ -1,5 +1,14 @@
 <script type="text/javascript">
 jQuery(function() {
+    jQuery('.icon-helper[data-toggle="tooltip"]').each( function() {
+        var elem = jQuery(this);
+        var title = elem.parent().text().replace(/:\s*$/, '');
+        var help = jQuery('<span></span>');
+        help.attr('data-content', elem.data('original-title'));
+        help.attr('data-help', title);
+        elem.replaceWith(help);
+    });
+
     // any help items that have been queued up via addPopupHelpItems() will
     // get their popover functionality added at this point, including the default rule
     // that matches any elements with a 'data-help' attribute
-----------------------------------------------------------------------

Summary of changes:
 html/Callbacks/RT-Extension-InlineHelp/Elements/Footer/Default | 9 +++++++++
 1 file changed, 9 insertions(+)


hooks/post-receive
-- 
rt-extension-inlinehelp


More information about the Bps-public-commit mailing list