Module info in json.

This commit is contained in:
Ben Vanik 2013-12-24 17:25:29 -08:00
parent c45f573472
commit dcd9f8b6ff
7 changed files with 339 additions and 125 deletions

View file

@ -321,6 +321,9 @@ body {
display: block;
pointer-events: none;
}
.debugger-module-info .modal-dialog {
width: 60vw;
}
.debugger-module-info.fade .modal-dialog {
-webkit-transition: none;
-webkit-transform: translate(0,0);
@ -329,6 +332,7 @@ body {
pointer-events: auto;
}
.debugger-module-info .modal-body {
max-width: 60vw;
max-height: 80vh;
overflow-y: auto;
}

View file

@ -66,12 +66,16 @@ module.controller('CodeTabController', function(
var modalInstance = $modal.open({
templateUrl: 'assets/ui/code/module-info.html',
controller: 'ModuleInfoController',
windowClass: 'debugger-module-info'
// resolve: {
// items: function () {
// return $scope.items;
// }
// }
windowClass: 'debugger-module-info',
resolve: {
moduleName: function() {
return $scope.selectedModule.name;
},
moduleInfo: function() {
return app.session.dataSource.getModule(
$scope.selectedModule.name);
}
}
});
modalInstance.result.then(function() {
}, function () {

View file

@ -2,66 +2,10 @@
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true" ng-click="close()">&times;</button>
<h4 class="modal-title">Modal title</h4>
<h4 class="modal-title">{{ moduleName }}</h4>
</div>
<div class="modal-body">
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
Lots of info<br/>
{{ moduleInfo }}
</div>
</div>
</div>

View file

@ -17,7 +17,10 @@ var module = angular.module('xe.ui.code.moduleInfo', [
module.controller('ModuleInfoController', function(
$rootScope, $scope, $modal, log) {
$rootScope, $scope, $modal, log, moduleName, moduleInfo) {
$scope.moduleName = moduleName;
$scope.moduleInfo = moduleInfo;
$scope.close = function() {
$scope.$close(null);
};