@@ -488,7 +488,10 @@ <h3>Dynamic Optimization</h3>
488
488
</ table >
489
489
< script type ="text/ng-template " id ="myModalContent.html ">
490
490
< div class = "modal-header" >
491
- < button type = "button" class = "close" data-dismiss = "modal" > < span aria-hidden = "true" > ×</ span > < span class = "sr-only" > Close</ span > </ button >
491
+ < button type = "button" ng-click = "modalInstance.close()"
492
+ class = "close" data-dismiss = "modal" >
493
+ < span aria-hidden = "true" > ×</ span > < span class = "sr-only" > Close</ span >
494
+ </ button >
492
495
< h4 class = "modal-title" id = "allocatingRoutinesModalLabel" >
493
496
Routines Allocating { { CurrentAllocatingRoutine} }
494
497
</ h4 >
@@ -528,7 +531,8 @@ <h4 class="modal-title" id="allocatingRoutinesModalLabel">
528
531
</ table >
529
532
</ div >
530
533
< div class = "modal-footer" >
531
- < button type = "button" class = "btn btn-default" data-dismiss = "modal" > Close</ button >
534
+ < button type = "button" ng-click = "modalInstance.close()"
535
+ class = "btn btn-default" data-dismiss = "modal" > Close</ button >
532
536
< / d i v >
533
537
</ script >
534
538
</ div >
@@ -1145,11 +1149,12 @@ <h3>Global Deoptimization</h3>
1145
1149
$scope . routineReverse = true ;
1146
1150
1147
1151
// Allocating routines handlng.
1152
+ $scope . modalInstance = null ;
1148
1153
$scope . showAllocatingRoutines = function ( alloc ) {
1149
1154
// Show modal dialog with data.
1150
1155
$scope . CurrentAllocatingRoutine = alloc . Name ;
1151
1156
$scope . CurrentAllocatingRoutineStats = alloc . RoutineStats ;
1152
- var modalInstance = $uibModal . open ( {
1157
+ $scope . modalInstance = $uibModal . open ( {
1153
1158
templateUrl : 'myModalContent.html' ,
1154
1159
scope : $scope
1155
1160
} ) ;
0 commit comments