mirror of
https://github.com/ansible/awx.git
synced 2026-02-27 15:58:45 -03:30
speed up toggle by manually applying toggle
This commit is contained in:
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user