1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00

changing tooltip delay to make them feel more responsive

This commit is contained in:
John Mitchell 2016-11-06 13:39:46 -05:00 committed by jaredevantabor
parent e1edcc5e5a
commit 66e90075d4
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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) {