Modal window closes on Esc keypress

This commit is contained in:
Gaël Métais
2014-09-22 15:52:56 +02:00
parent db7d07af7a
commit c9707502d3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -12,6 +12,6 @@ app.directive('showOffenders', function() {
controller: function($scope, $element, $attrs, $location) {
$scope.dialogShown = false;
},
template: '&nbsp;<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: '&nbsp;<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
View File
@@ -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"
}
}