From 94323d81cdcdc09ea92798564ae99c765b5ce842 Mon Sep 17 00:00:00 2001 From: amrita.vishnoi Date: Tue, 4 Oct 2016 17:53:54 +0530 Subject: [PATCH] The Annotation tool bar should be disabled if Annotation tool bar is already opened --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js | 12 ++++++++++++ 400-SOURCECODE/AIAHTML5.Web/app/widget/TopMenu.html | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js index d2cd0ce..e311faf 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js @@ -165,6 +165,18 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", } + // Dissectible Anatomy > Settings should be disable if Annotation is Open. + $rootScope.ShowSettingWindow = function () { + if ($(".annotationTollbar").css("display") == "block") { + // alert("already open"); + } + else { + $('#modal-settings').modal('toggle'); + } + + + } + //----Annotation Toolbar: Jcanvas----- diff --git a/400-SOURCECODE/AIAHTML5.Web/app/widget/TopMenu.html b/400-SOURCECODE/AIAHTML5.Web/app/widget/TopMenu.html index b540b99..a02f42f 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/widget/TopMenu.html +++ b/400-SOURCECODE/AIAHTML5.Web/app/widget/TopMenu.html @@ -35,7 +35,7 @@
  • Annotation Toolbar
  • Add to Existing Curriculum
  • -
  • Settings
  • +
  • Settings
  • Lab Exercises PDF
  • -- libgit2 0.21.4