mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
speed up toggle by manually applying toggle
This commit is contained in:
parent
ac6d985846
commit
2229d60c4e
@ -20,7 +20,9 @@ export default ['$scope', 'Refresh', 'tagSearchService',
|
||||
if ($scope.showTypeDropdown) {
|
||||
$("body").append("<div class='TagSearch-clickToClose'></div>");
|
||||
$(".TagSearch-clickToClose").on("click", function() {
|
||||
$scope.showTypeDropdown = false;
|
||||
$scope.$apply(function() {
|
||||
$scope.showTypeDropdown = false;
|
||||
});
|
||||
$(".TagSearch-clickToClose").remove();
|
||||
});
|
||||
}
|
||||
@ -44,7 +46,9 @@ export default ['$scope', 'Refresh', 'tagSearchService',
|
||||
if ($scope.showCurrentSearchDropdown) {
|
||||
$("body").append("<div class='TagSearch-clickToClose'></div>");
|
||||
$(".TagSearch-clickToClose").on("click", function() {
|
||||
$scope.showCurrentSearchDropdown = false;
|
||||
$scope.$apply(function() {
|
||||
$scope.showCurrentSearchDropdown = false;
|
||||
});
|
||||
$(".TagSearch-clickToClose").remove();
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user