Commit 94323d81cdcdc09ea92798564ae99c765b5ce842

Authored by Amrita Vishnoi
1 parent e69fb7ac

The Annotation tool bar should be disabled if Annotation tool bar is already opened

400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
... ... @@ -165,6 +165,18 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location",
165 165  
166 166 }
167 167  
  168 + // Dissectible Anatomy > Settings should be disable if Annotation is Open.
  169 + $rootScope.ShowSettingWindow = function () {
  170 + if ($(".annotationTollbar").css("display") == "block") {
  171 + // alert("already open");
  172 + }
  173 + else {
  174 + $('#modal-settings').modal('toggle');
  175 + }
  176 +
  177 +
  178 + }
  179 +
168 180  
169 181  
170 182 //----Annotation Toolbar: Jcanvas-----
... ...
400-SOURCECODE/AIAHTML5.Web/app/widget/TopMenu.html
... ... @@ -35,7 +35,7 @@
35 35 <li><a href="#" id="annotationToolBarOptions" ng-click="ShowAnnotationWindow()">Annotation Toolbar</a></li>
36 36  
37 37 <li><a href="#">Add to Existing Curriculum</a></li>
38   - <li><a data-toggle="modal" data-target="#modal-settings" class="cursor-pointer">Settings</a></li>
  38 + <li><a ng-click="ShowSettingWindow()" class="cursor-pointer">Settings</a></li>
39 39 <li role="separator" class="divider"></li>
40 40 <li><a href="#">Lab Exercises PDF</a></li>
41 41 </ul>
... ...