单击后无法禁用BG屏幕

时间:2014-11-25 06:41:38

标签: javascript json html5 angularjs

我试图在点击一下后禁用背景屏幕。但是如果再次点击则会弹出多个弹出窗口。如何点击后禁用背景屏幕。

这是我的代码:

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

0 个答案:

没有答案