我试图在点击一下后禁用背景屏幕。但是如果再次点击则会弹出多个弹出窗口。如何点击后禁用背景屏幕。
这是我的代码:
HTML:
<html>
<li id="logical-resources" ng-click="showLogicalResourcesPool()" ng-class="{'vrack-info-padding-top-9':dashboardInfo.workloads.length > 0,'vrack-info-padding-top-30':dashboardInfo.workloads.length == 0 || dashboardInfo.workloads == null}">
<span ng-click="showLogicalResourcesPool();" ng-hide="isLogicalResourcesDisable==false" ></span>
<span ng-show="isLogicalResourcesDisable==true" style="color:gray"></span>
</html>
JS:
$scope.showLogicalResourcesPool = function() { $scope.showDisableDone = 0;
$rootScope.modalInstance = $modal.open({ templateUrl:
vrmUi.getDashboardValue("LOGICAL_RESOURCES_URL"), backdrop:
vrmUi.getDashboardValue("BACKDROP_STYLE_STATIC"), keyboard: false }); };