From 66e90075d48c09bac2f2c6f9b92ebf3b51d71d89 Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Sun, 6 Nov 2016 13:39:46 -0500 Subject: [PATCH] changing tooltip delay to make them feel more responsive --- awx/ui/client/src/config.js | 1 - awx/ui/client/src/shared/directives.js | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/awx/ui/client/src/config.js b/awx/ui/client/src/config.js index b252faec17..bac59a282c 100644 --- a/awx/ui/client/src/config.js +++ b/awx/ui/client/src/config.js @@ -26,7 +26,6 @@ return { // custom_logo: true // load /var/lib/awx/public/static/assets/custom_console_logo.png as the login modal header. if false, will load the standard tower console logo // custom_login_info: "example notice" // have a notice displayed in the login modal for users. note that, as a security measure, custom html is not supported and will be escaped. - tooltip_delay: { show: 500, hide: 100 }, // Default number of milliseconds to delay displaying/hiding tooltips password_length: 8, // Minimum user password length. Set to 0 to not set a limit password_hasLowercase: true, // require a lowercase letter in the password diff --git a/awx/ui/client/src/shared/directives.js b/awx/ui/client/src/shared/directives.js index cd14cdb17a..433bbbcb78 100644 --- a/awx/ui/client/src/shared/directives.js +++ b/awx/ui/client/src/shared/directives.js @@ -492,7 +492,10 @@ angular.module('AWDirectives', ['RestServices', 'Utilities', 'JobsHelper']) .directive('awToolTip', [function() { return { link: function(scope, element, attrs) { - var delay = (attrs.delay !== undefined && attrs.delay !== null) ? attrs.delay : ($AnsibleConfig) ? $AnsibleConfig.tooltip_delay : { show: 500, hide: 100 }, + // if (attrs.class.indexOf("JobResultsStdOut") > -1) { + // debugger; + // } + var delay = { show: 200, hide: 0 }, placement, stateChangeWatcher; if (attrs.awTipPlacement) {