From 3068f35aeb8bed81a9bc7ed85171d14e45161523 Mon Sep 17 00:00:00 2001 From: Chris Houseknecht Date: Wed, 2 Apr 2014 11:55:00 -0400 Subject: [PATCH] Rolled back awPopOver changes. --- awx/ui/static/lib/ansible/directives.js | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/awx/ui/static/lib/ansible/directives.js b/awx/ui/static/lib/ansible/directives.js index 45b92c7812..49f7e535c9 100644 --- a/awx/ui/static/lib/ansible/directives.js +++ b/awx/ui/static/lib/ansible/directives.js @@ -273,13 +273,13 @@ angular.module('AWDirectives', ['RestServices', 'Utilities', 'AuthService', 'Job }; }) - /* + /* * Enable TB pop-overs. To add a pop-over to an element, include the following directive in * the element's attributes: * * aw-pop-over="<< pop-over html here >>" * - * Include the standard TB data-XXX attributes to controll the pop-over's appearance. We will + * Include the standard TB data-XXX attributes to controll the pop-over's appearance. We will * default placement to the left, delay to 0 seconds, content type to HTML, and title to 'Help'. */ .directive('awPopOver', ['$compile', function($compile) { @@ -308,24 +308,23 @@ angular.module('AWDirectives', ['RestServices', 'Utilities', 'AuthService', 'Job } } }); - /* $('.popover').each(function() { // remove lingering popover
. Seems to be a bug in TB3 RC1 $(this).remove(); - });*/ - /*$('.tooltip').each( function() { + }); + $('.tooltip').each( function() { // close any lingering tool tipss $(this).hide(); - });*/ + }); $(this).popover('toggle'); - /*$('.popover').each(function() { + $('.popover').each(function() { $compile($(this))(scope); //make nested directives work! - });*/ + }); $('.popover-content, .popover-title').click(function() { $(self).popover('hide'); }); }); - + $(document).bind('keydown', function(e) { if (e.keyCode === 27) { $(element).popover('hide');