Modal window closes on Esc keypress
This commit is contained in:
@@ -12,6 +12,6 @@ app.directive('showOffenders', function() {
|
||||
controller: function($scope, $element, $attrs, $location) {
|
||||
$scope.dialogShown = false;
|
||||
},
|
||||
template: ' <span ng-click="dialogShown = true" class="icon-eye"></span><modal-dialog show="dialogShown" dialog-title="{{modalTitle}}: {{phantomasResults.metrics[metricName]}}" width="70%"><ul><li ng-repeat="offender in phantomasResults.offenders[metricName] track by $index">{{offender}}</li></ul></modal-dialog>'
|
||||
template: ' <span ng-click="dialogShown = true" class="icon-eye" title="See offenders"></span><modal-dialog show="dialogShown" dialog-title="{{modalTitle}}: {{phantomasResults.metrics[metricName]}}" width="70%"><ul><li ng-repeat="offender in phantomasResults.offenders[metricName] track by $index">{{offender}}</li></ul></modal-dialog>'
|
||||
};
|
||||
});
|
||||
+1
-1
@@ -2,6 +2,6 @@
|
||||
"name": "yellowlabtools",
|
||||
"dependencies": {
|
||||
"angular": "^1.3.0",
|
||||
"ngModal": "1.2.2"
|
||||
"ngModal": "git://github.com/gmetais/ngModal.git#1.2.3"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user