mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02:30
Rolled back awPopOver changes.
This commit is contained in:
@@ -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
|
* Enable TB pop-overs. To add a pop-over to an element, include the following directive in
|
||||||
* the element's attributes:
|
* the element's attributes:
|
||||||
*
|
*
|
||||||
* aw-pop-over="<< pop-over html here >>"
|
* 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'.
|
* default placement to the left, delay to 0 seconds, content type to HTML, and title to 'Help'.
|
||||||
*/
|
*/
|
||||||
.directive('awPopOver', ['$compile', function($compile) {
|
.directive('awPopOver', ['$compile', function($compile) {
|
||||||
@@ -308,24 +308,23 @@ angular.module('AWDirectives', ['RestServices', 'Utilities', 'AuthService', 'Job
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
/*
|
|
||||||
$('.popover').each(function() {
|
$('.popover').each(function() {
|
||||||
// remove lingering popover <div>. Seems to be a bug in TB3 RC1
|
// remove lingering popover <div>. Seems to be a bug in TB3 RC1
|
||||||
$(this).remove();
|
$(this).remove();
|
||||||
});*/
|
});
|
||||||
/*$('.tooltip').each( function() {
|
$('.tooltip').each( function() {
|
||||||
// close any lingering tool tipss
|
// close any lingering tool tipss
|
||||||
$(this).hide();
|
$(this).hide();
|
||||||
});*/
|
});
|
||||||
$(this).popover('toggle');
|
$(this).popover('toggle');
|
||||||
/*$('.popover').each(function() {
|
$('.popover').each(function() {
|
||||||
$compile($(this))(scope); //make nested directives work!
|
$compile($(this))(scope); //make nested directives work!
|
||||||
});*/
|
});
|
||||||
$('.popover-content, .popover-title').click(function() {
|
$('.popover-content, .popover-title').click(function() {
|
||||||
$(self).popover('hide');
|
$(self).popover('hide');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document).bind('keydown', function(e) {
|
$(document).bind('keydown', function(e) {
|
||||||
if (e.keyCode === 27) {
|
if (e.keyCode === 27) {
|
||||||
$(element).popover('hide');
|
$(element).popover('hide');
|
||||||
|
|||||||
Reference in New Issue
Block a user