Commit 2281fc6aa984f8f31ec3146e678351638a135f0d

Authored by Amrita Vishnoi
2 parents a71946ed 7a775f06

Merge branch 'Develop' into QA

400-SOURCECODE/AIAHTML5.Web/app/controllers/CAController.js
... ... @@ -397,12 +397,13 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout
397 397  
398 398  
399 399 });
400   -
  400 + $('table > #ListViewDiv > #searchAnimation').remove();
401 401 //Show Error Message in case of gridview if no data is found
402 402 if ($scope.searchCAListViewData.length == 0) {
403   -
404 403 var $el = $('<div class="col-sm-12" style="padding-left:25px;padding-top:10px;"><strong style="color:white;">No animation found for the selected search criteria!</strong></div>').appendTo('#grid-view');
405 404 $compile($el)($scope);
  405 + $('table > #ListViewDiv > #searchAnimation').remove();
  406 + $('#ListViewDiv').append('<tr id="searchAnimation"><td colspan="3"><strong style="color:black;">No animation found for the selected search criteria!</strong></td></tr>');
406 407 }
407 408  
408 409 },
... ...
400-SOURCECODE/AIAHTML5.Web/app/controllers/CIController.js
... ... @@ -175,7 +175,7 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout
175 175  
176 176  
177 177 $('#grid-view').empty();
178   - var $e1 = $('<ul><li ng-repeat="value in selectedCIListViewData" ><div id="{{value._id}}" class="col-sm-3 col-md-2" title = "{{value._Title}}" data-ng-click="openView($event)">'
  178 + var $e1 = $('<ul><li ng-repeat="value in selectedCIListViewData" class="col-sm-3 col-md-2"><div id="{{value._id}}" title = "{{value._Title}}" data-ng-click="openView($event)">'
179 179 + '<div class="thumbnail" >'
180 180 + '<img id="{{value._Title}}" ng-src="~/../content/images/ci/thumbnails/{{value._ThumbnailImage}}" >'//alt="{{value._Title}}" >'
181 181 + '<div class="caption"><p> {{value._Title}}</p></div></a></div></div></li></ul>').appendTo('#grid-view');
... ... @@ -288,35 +288,42 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout
288 288 }
289 289  
290 290 $scope.ApplySearch = function (query) {
291   -
  291 +
  292 +
292 293 $scope.filterstring = true;
293 294  
294 295 while ($scope.searchCIListViewData.length) {
295 296 $scope.searchCIListViewData.pop();
296 297 }
297 298  
298   - //$('#grid-view').empty();
  299 +
299 300  
300 301 filtercount = 0;
301 302 if (typeof (query.selectedbodyregion) !== "undefined" && (query.selectedbodyregion !== null && query.selectedbodyregion !== "")) {
302 303 filtercount = filtercount + 1;
  304 +
303 305 localStorage.setItem("CICurBodyRegion", query.selectedbodyregion);
  306 +
304 307 }
305 308 else {
306 309 localStorage.setItem("CICurBodyRegion", '');
  310 +
307 311 }
308 312  
309 313 if (typeof (query.selectedbodysystem) !== "undefined" && (query.selectedbodysystem !== null && query.selectedbodysystem !== "")) {
310 314 filtercount = filtercount + 1;
311 315 localStorage.setItem("CICurBodySystem", query.selectedbodysystem);
  316 +
312 317 }
313 318 else {
314 319 localStorage.setItem("CICurBodySystem", '');
  320 +
315 321 }
316 322  
317 323 if (typeof (query.selectedorientation) !== "undefined" && (query.selectedorientation !== null && query.selectedorientation !== '')) {
318 324 filtercount = filtercount + 1;
319 325 localStorage.setItem("CICurOrientation", query.selectedorientation);
  326 +
320 327 }
321 328 else {
322 329 localStorage.setItem("CICurOrientation", '');
... ... @@ -325,17 +332,21 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout
325 332 if (typeof (query.selectedimagetype) !== "undefined" && (query.selectedimagetype !== null && query.selectedimagetype !== '')) {
326 333 filtercount = filtercount + 1;
327 334 localStorage.setItem("CICurImageType", query.selectedimagetype);
  335 +
328 336 }
329 337 else {
330 338 localStorage.setItem("CICurImageType", '');
  339 +
331 340 }
332 341  
333 342 if (typeof (query.selectedspecialty) !== "undefined" && (query.selectedspecialty !== null && query.selectedspecialty !== '')) {
334 343 filtercount = filtercount + 1;
335 344 localStorage.setItem("CICurSpeciality", query.selectedspecialty);
  345 +
336 346 }
337 347 else {
338 348 localStorage.setItem("CICurSpeciality", '');
  349 +
339 350 }
340 351  
341 352  
... ... @@ -454,17 +465,16 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout
454 465 "_Summary": value._Summary
455 466  
456 467 });
457   -
458 468 }
459   -
460   -
461 469 });
462   -
  470 + $('table > #ListViewDiv > #searchItem').remove();
463 471 //Show Error Message in case of gridview if no data is found
464 472 if ($scope.searchCIListViewData.length == 0) {
465   -
466 473 var $el = $('<div class="col-sm-12" style="padding-left:25px;padding-top:10px;"><strong style="color:white">No illustration found for the selected search criteria!</strong></div>').appendTo('#grid-view');
467 474 $compile($el)($scope);
  475 + $('table > #ListViewDiv > #searchItem').remove();
  476 +
  477 + $('#ListViewDiv').append('<tr id="searchItem"><td colspan="6"><strong style="color:black;">No illustration found for the selected search criteria!</strong></td></tr>');
468 478 }
469 479 },
470 480 function (error) {
... ... @@ -472,8 +482,6 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout
472 482 console.log(' $scope.IllustrationData = ' + error.statusText);
473 483 }
474 484 );
475   -
476   -
477 485 }
478 486  
479 487  
... ...
400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
... ... @@ -191,6 +191,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
191 191  
192 192 $rootScope.LogoutUser = function () {
193 193 localStorage.removeItem('loggedInUserDetails');
  194 + localStorage.clear();
194 195 document.location = '/';
195 196 $rootScope.isVisibleLogin = true;
196 197 }
... ... @@ -3068,6 +3069,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
3068 3069  
3069 3070 $rootScope.disableAnnotationtoolOnListManager = false;
3070 3071 $rootScope.ShowListManager = function () {
  3072 +
3071 3073 $rootScope.switchCanvas();
3072 3074 $("#annotationpaintbrushsize").attr("href", "#");
3073 3075 $("#annotationpainteraser").attr("href", "#");
... ... @@ -3086,9 +3088,6 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
3086 3088 $("#listManager").css("visibility", "visible");
3087 3089  
3088 3090 $('#listManager').draggable();
3089   -
3090   -
3091   -
3092 3091 $rootScope.islistManagerEventAlredayDispachted = true;
3093 3092  
3094 3093 $rootScope.$broadcast('listManagerEvent', true);
... ... @@ -3116,10 +3115,12 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
3116 3115 // $('#termList option[value="' + $rootScope.SelectedTermList + '"]').prop("selected", true);
3117 3116 //$("#termList").find("option").css({ "background-color": "#ffffff", "color": "#000000" });
3118 3117 //$('#termList option[value="' + $rootScope.SelectedTermList + '"]').css({ "background-color": "#3399FF", "color": "#ffffff" });
3119   -
3120   -
3121 3118 }
3122 3119 $("#optionsListManagerTab").addClass("active");
  3120 + var viewNameAftrSplit = $("#viewName").val().split(" ");
  3121 + if (viewNameAftrSplit[0] == "null") {
  3122 + document.location.href = "/";
  3123 + }
3123 3124 }
3124 3125  
3125 3126 $rootScope.CloseListManager = function () {
... ...
400-SOURCECODE/AIAHTML5.Web/app/views/ca/ca-view.html
... ... @@ -99,9 +99,9 @@
99 99 {{item._MedicalSpecialty}}
100 100 </td>
101 101 </tr>
102   - <tr ng-if="typeof(searchCAListViewData) == 'undefined' || searchCAListViewData == null || searchCAListViewData == ''">
  102 + <!--<tr ng-if="typeof(searchCAListViewData) == 'undefined' || searchCAListViewData == null || searchCAListViewData == ''">
103 103 <td colspan="3"><strong style="color:black;">No animation found for the selected search criteria!</strong></td>
104   - </tr>
  104 + </tr>-->
105 105 </tbody>
106 106 </table>
107 107 </div>
... ...
400-SOURCECODE/AIAHTML5.Web/app/views/ci/ci-view.html
... ... @@ -155,9 +155,10 @@
155 155 {{item._MedicalSpecialty}}
156 156 </td>
157 157 </tr>
158   - <tr ng-if="typeof(searchCIListViewData) == 'undefined' || searchCIListViewData == null || searchCIListViewData == ''">
159   - <td colspan="6"><strong style="color:black;">No illustration found for the selected search criteria!</strong></td>
160   - </tr>
  158 + <!--<tr ng-if="typeof(searchCIListViewData) == 'undefined' || searchCIListViewData == null || searchCIListViewData == ''">
  159 + <td colspan="6"><strong id="searchItem" style="color:black;">No illustration found for the selected search criteria!</strong></td>
  160 + </tr>-->
  161 +
161 162 </tbody>
162 163 </table>
163 164 </div>
... ...