Showing
1 changed file
400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js
... | ... | @@ -652,20 +652,35 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, |
652 | 652 | }; |
653 | 653 | |
654 | 654 | |
655 | - | |
655 | + $scope.isResultVisible = false; | |
656 | 656 | $scope.minLabExPanel = function () { |
657 | - $("#questionHtml").css("display", "none"); | |
657 | + if ($('#questionHtml').css('display') === 'block') { | |
658 | + $("#questionHtml").css("display", "none"); | |
659 | + | |
660 | + $scope.isResultVisible = false; | |
661 | + } | |
662 | + else { | |
663 | + $("#submitResultHtml").css("display", "none"); | |
664 | + $scope.isResultVisible = true; | |
665 | + | |
666 | + } | |
658 | 667 | $("#LabExPageHeading").css("display", "none"); |
659 | 668 | $("#LabExMinimizedId").css("display", "block"); |
660 | 669 | |
661 | 670 | |
671 | + | |
662 | 672 | } |
663 | 673 | $scope.maxLabExPanel = function () { |
664 | - $("#questionHtml").css("display", "block"); | |
674 | + if ($scope.isResultVisible == true) { | |
675 | + $("#submitResultHtml").css("display", "block"); | |
676 | + } | |
677 | + else { | |
678 | + $("#questionHtml").css("display", "block"); | |
679 | + } | |
680 | + | |
665 | 681 | $("#LabExPageHeading").css("display", "block"); |
666 | 682 | $("#LabExMinimizedId").css("display", "none"); |
667 | 683 | |
668 | - | |
669 | 684 | } |
670 | 685 | $scope.handleDragOver = function (e) { |
671 | 686 | e.preventDefault(); // Necessary. Allows us to drop. | ... | ... |