mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 00:38: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) {
|
if ($scope.showTypeDropdown) {
|
||||||
$("body").append("<div class='TagSearch-clickToClose'></div>");
|
$("body").append("<div class='TagSearch-clickToClose'></div>");
|
||||||
$(".TagSearch-clickToClose").on("click", function() {
|
$(".TagSearch-clickToClose").on("click", function() {
|
||||||
$scope.showTypeDropdown = false;
|
$scope.$apply(function() {
|
||||||
|
$scope.showTypeDropdown = false;
|
||||||
|
});
|
||||||
$(".TagSearch-clickToClose").remove();
|
$(".TagSearch-clickToClose").remove();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -44,7 +46,9 @@ export default ['$scope', 'Refresh', 'tagSearchService',
|
|||||||
if ($scope.showCurrentSearchDropdown) {
|
if ($scope.showCurrentSearchDropdown) {
|
||||||
$("body").append("<div class='TagSearch-clickToClose'></div>");
|
$("body").append("<div class='TagSearch-clickToClose'></div>");
|
||||||
$(".TagSearch-clickToClose").on("click", function() {
|
$(".TagSearch-clickToClose").on("click", function() {
|
||||||
$scope.showCurrentSearchDropdown = false;
|
$scope.$apply(function() {
|
||||||
|
$scope.showCurrentSearchDropdown = false;
|
||||||
|
});
|
||||||
$(".TagSearch-clickToClose").remove();
|
$(".TagSearch-clickToClose").remove();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user