1
0
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:
John Mitchell 2016-06-27 11:30:16 -04:00
parent ac6d985846
commit 2229d60c4e

View File

@ -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();
});
}