Commit 29c622f5961e95e37d4475b58d2eff6d9d2b0d34
1 parent
768e53e6
Commit changes for Issue
Issue #7184:User is unable to select any annotation from an image
Showing
2 changed files
with
17 additions
and
2 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
@@ -120,13 +120,16 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | @@ -120,13 +120,16 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | ||
120 | $rootScope.isAnnotationWindowOpen = true; | 120 | $rootScope.isAnnotationWindowOpen = true; |
121 | $(".annotationTollbar").css("display", "block"); | 121 | $(".annotationTollbar").css("display", "block"); |
122 | $rootScope.$broadcast('annotationToolEvent', true); | 122 | $rootScope.$broadcast('annotationToolEvent', true); |
123 | - | 123 | + $("#canvasPaint").css("display", "none"); |
124 | + $("#canvas").css("display", "none"); | ||
124 | } | 125 | } |
125 | 126 | ||
126 | $rootScope.CloseAnnotationTool = function () { | 127 | $rootScope.CloseAnnotationTool = function () { |
127 | console.log('close') | 128 | console.log('close') |
128 | $(".annotationTollbar").css("display", "none"); | 129 | $(".annotationTollbar").css("display", "none"); |
129 | $rootScope.isAnnotationWindowClose = true; | 130 | $rootScope.isAnnotationWindowClose = true; |
131 | + $("#canvasPaint").css("display", "none"); | ||
132 | + $("#canvas").css("display", "none"); | ||
130 | } | 133 | } |
131 | 134 | ||
132 | $rootScope.OnIdentifyClick = function () { | 135 | $rootScope.OnIdentifyClick = function () { |
@@ -188,6 +191,8 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | @@ -188,6 +191,8 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | ||
188 | } | 191 | } |
189 | 192 | ||
190 | $rootScope.DrawRectangle = function (e) { | 193 | $rootScope.DrawRectangle = function (e) { |
194 | + $("#canvasPaint").css("display", "block"); | ||
195 | + $("#canvas").css("display", "block"); | ||
191 | $rootScope.switchCanvas(); | 196 | $rootScope.switchCanvas(); |
192 | $rootScope.shapeType = "Rectangle"; | 197 | $rootScope.shapeType = "Rectangle"; |
193 | $('.btnCursor').removeClass('activebtncolor'); | 198 | $('.btnCursor').removeClass('activebtncolor'); |
@@ -197,6 +202,8 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | @@ -197,6 +202,8 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | ||
197 | $rootScope.paintBrush = function () { | 202 | $rootScope.paintBrush = function () { |
198 | // debugger; | 203 | // debugger; |
199 | // $('.btnCursor').addClass('activebtncolor'); | 204 | // $('.btnCursor').addClass('activebtncolor'); |
205 | + $("#canvasPaint").css("display", "block"); | ||
206 | + $("#canvas").css("display", "block"); | ||
200 | $rootScope.switchCanvasToPaintCanvas(); | 207 | $rootScope.switchCanvasToPaintCanvas(); |
201 | $rootScope.shapeType = "FreeStylePaint"; | 208 | $rootScope.shapeType = "FreeStylePaint"; |
202 | var a = $("#amount-2").val(); | 209 | var a = $("#amount-2").val(); |
@@ -230,6 +237,8 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | @@ -230,6 +237,8 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | ||
230 | } | 237 | } |
231 | 238 | ||
232 | $rootScope.DrawCircle = function (e) { | 239 | $rootScope.DrawCircle = function (e) { |
240 | + $("#canvasPaint").css("display", "block"); | ||
241 | + $("#canvas").css("display", "block"); | ||
233 | $rootScope.switchCanvas(); | 242 | $rootScope.switchCanvas(); |
234 | $rootScope.shapeType = "Circle"; | 243 | $rootScope.shapeType = "Circle"; |
235 | $('.btnCursor').removeClass('activebtncolor'); | 244 | $('.btnCursor').removeClass('activebtncolor'); |
@@ -238,6 +247,8 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | @@ -238,6 +247,8 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | ||
238 | } | 247 | } |
239 | 248 | ||
240 | $rootScope.DrawArrow = function (e) { | 249 | $rootScope.DrawArrow = function (e) { |
250 | + $("#canvasPaint").css("display", "block"); | ||
251 | + $("#canvas").css("display", "block"); | ||
241 | $rootScope.switchCanvas(); | 252 | $rootScope.switchCanvas(); |
242 | $rootScope.shapeType = "Arrow"; | 253 | $rootScope.shapeType = "Arrow"; |
243 | $('.btnCursor').removeClass('activebtncolor'); | 254 | $('.btnCursor').removeClass('activebtncolor'); |
@@ -245,6 +256,8 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | @@ -245,6 +256,8 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | ||
245 | $(".btn-annotation-arrow").addClass("activebtncolor"); | 256 | $(".btn-annotation-arrow").addClass("activebtncolor"); |
246 | } | 257 | } |
247 | $rootScope.DrawText = function () { | 258 | $rootScope.DrawText = function () { |
259 | + $("#canvasPaint").css("display", "block"); | ||
260 | + $("#canvas").css("display", "block"); | ||
248 | $rootScope.switchCanvas(); | 261 | $rootScope.switchCanvas(); |
249 | 262 | ||
250 | $rootScope.shapeType = "TextArea"; | 263 | $rootScope.shapeType = "TextArea"; |
@@ -256,6 +269,8 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | @@ -256,6 +269,8 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | ||
256 | } | 269 | } |
257 | 270 | ||
258 | $rootScope.DrawPolygon = function () { | 271 | $rootScope.DrawPolygon = function () { |
272 | + $("#canvasPaint").css("display", "block"); | ||
273 | + $("#canvas").css("display", "block"); | ||
259 | $rootScope.shapeType = "DrawPolygon"; | 274 | $rootScope.shapeType = "DrawPolygon"; |
260 | 275 | ||
261 | } | 276 | } |
400-SOURCECODE/AIAHTML5.Web/index.html
@@ -419,7 +419,7 @@ | @@ -419,7 +419,7 @@ | ||
419 | </div> | 419 | </div> |
420 | <div class="btn-group" role="group"> | 420 | <div class="btn-group" role="group"> |
421 | <div id="draw-block" style="display: none; font-size: 13px;">Draw Mode</div> | 421 | <div id="draw-block" style="display: none; font-size: 13px;">Draw Mode</div> |
422 | - <button id="DrawMode" type="button" class="btn btn-sm btn-success">Draw</button> | 422 | + <button id="DrawMode" type="button" ng-click="DrawingMode()" class="btn btn-sm btn-success">Draw</button> |
423 | </div> | 423 | </div> |
424 | </div> | 424 | </div> |
425 | 425 |