Commit 57c00aa2676aa5ab5af57be85f2d3ae57f224020
1 parent
6ac32877
added styles
Showing
3 changed files
with
44 additions
and
2 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
1 | | 1 | |
2 | 'use strict'; | 2 | 'use strict'; |
3 | 3 | ||
4 | -AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$log", "$location", "$timeout", "DA", "Modules", "$routeParams", "DataService","TermService", | ||
5 | - function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Modules, $routeParam, DataService, TermService) { | 4 | +AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$log", "$location", "$timeout", "DA", "Modules", "$routeParams", "DataService", "TermService", "AIAConstants", |
5 | + function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Modules, $routeParam, DataService, TermService,AIAConstants) { | ||
6 | 6 | ||
7 | 7 | ||
8 | $scope.genderId = ""; | 8 | $scope.genderId = ""; |
@@ -2856,6 +2856,8 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l | @@ -2856,6 +2856,8 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l | ||
2856 | grayCanvasContext.putImageData($rootScope.grayImageDataList[parseInt(i)], 0, 0); | 2856 | grayCanvasContext.putImageData($rootScope.grayImageDataList[parseInt(i)], 0, 0); |
2857 | } | 2857 | } |
2858 | } | 2858 | } |
2859 | + $scope.message = AIAConstants.NO_BODY_SYSTEM_AVAILABLE; | ||
2860 | + $("#daMessageModal").modal('show'); | ||
2859 | 2861 | ||
2860 | } | 2862 | } |
2861 | else { | 2863 | else { |
400-SOURCECODE/AIAHTML5.Web/app/main/AIA.js
@@ -348,6 +348,13 @@ AIA.constant("UserTypeConstants", { | @@ -348,6 +348,13 @@ AIA.constant("UserTypeConstants", { | ||
348 | "TEST_ACCOUNT": "Test Account", | 348 | "TEST_ACCOUNT": "Test Account", |
349 | "SITE_USER": "Site User" | 349 | "SITE_USER": "Site User" |
350 | }) | 350 | }) |
351 | + | ||
352 | +AIA.constant("AIAConstants", { | ||
353 | + | ||
354 | + "NO_BODY_SYSTEM_AVAILABLE" : "No body system available in this layer.", | ||
355 | + | ||
356 | +}) | ||
357 | + | ||
351 | AIA.constant("UserModules", [ | 358 | AIA.constant("UserModules", [ |
352 | { | 359 | { |
353 | "name": "Dissectible Anatomy", | 360 | "name": "Dissectible Anatomy", |
400-SOURCECODE/AIAHTML5.Web/app/views/da/da-view.html
@@ -376,6 +376,39 @@ | @@ -376,6 +376,39 @@ | ||
376 | </div> | 376 | </div> |
377 | </div> | 377 | </div> |
378 | </div> | 378 | </div> |
379 | + <div class="modal fade" id="daMessageModal" role="dialog" style="top:20%;"> | ||
380 | + | ||
381 | + <div class="modal-dialog modal-sm"> | ||
382 | + | ||
383 | + | ||
384 | + | ||
385 | + <div class="modal-content"> | ||
386 | + | ||
387 | + | ||
388 | + <div class="modal-header"> | ||
389 | + | ||
390 | + <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> | ||
391 | + | ||
392 | + </div> | ||
393 | + | ||
394 | + <div class="modal-title"></div> | ||
395 | + | ||
396 | + <!--<div class="modal-body">"No body system"</div>--> | ||
397 | + | ||
398 | + <div class="modal-header"><p data-ng-bind ="message" style="font-size:15px;"></p></div> | ||
399 | + | ||
400 | + | ||
401 | + | ||
402 | + <div class="modal-footer"> <button type="button" class="btn btn-primary btn-sm" data-dismiss="modal">OK</button></div> | ||
403 | + | ||
404 | + | ||
405 | + </div> | ||
406 | + | ||
407 | + | ||
408 | + </div> | ||
409 | + | ||
410 | + </div> | ||
411 | + | ||
379 | </div> | 412 | </div> |
380 | 413 | ||
381 | 414 |