Commit db798846d5d59729698af675d77d293dfb8b3cd7
1 parent
d5881720
26672 : First time Addressed>CI and CA > Selected illustration and Animation is …
…not loaded in the below scenario
Showing
1 changed file
with
20 additions
and
20 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/CAController.js
... | ... | @@ -497,31 +497,31 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout |
497 | 497 | |
498 | 498 | //once you get id in scope push detail in jspanel content |
499 | 499 | |
500 | - var openViews; | |
501 | - if ($rootScope.openViews.length > 0) { | |
502 | - openViews = new jinqJs() | |
503 | - .from($rootScope.openViews) | |
504 | - .where("BodyViewId==" + $scope.voId) | |
505 | - .select(); | |
506 | - } | |
500 | + // var openViews; | |
501 | + //if ($rootScope.openViews.length > 0) { | |
502 | + // openViews = new jinqJs() | |
503 | + // .from($rootScope.openViews) | |
504 | + // .where("BodyViewId==" + $scope.voId) | |
505 | + // .select(); | |
506 | + //} | |
507 | 507 | var counter = 1; |
508 | 508 | var tittle = $rootScope.getLocalStorageValue("currentViewTitleFromJson"); |
509 | + localStorage.setItem("currentViewTitle", tittle); | |
510 | + //if (openViews != null && openViews.length > 0) { | |
511 | + // angular.forEach(openViews, function (value, key) { | |
509 | 512 | |
510 | - if (openViews != null && openViews.length > 0) { | |
511 | - angular.forEach(openViews, function (value, key) { | |
513 | + // if (value.body - views == tittle) { | |
514 | + // tittle = $rootScope.getLocalStorageValue("currentViewTitleFromJson") + counter++; | |
515 | + // $rootScope.currentActiveViewTitle = tittle; | |
516 | + // localStorage.setItem("currentViewTitle", tittle); | |
517 | + // } | |
512 | 518 | |
513 | - if (value.body - views == tittle) { | |
514 | - tittle = $rootScope.getLocalStorageValue("currentViewTitleFromJson") + counter++; | |
515 | - $rootScope.currentActiveViewTitle = tittle; | |
516 | - localStorage.setItem("currentViewTitle", tittle); | |
517 | - } | |
518 | - | |
519 | - }); | |
520 | - } | |
521 | - else { | |
522 | - localStorage.setItem("currentViewTitle", tittle); | |
519 | + // }); | |
520 | + //} | |
521 | + //else { | |
522 | + // localStorage.setItem("currentViewTitle", tittle); | |
523 | 523 | |
524 | - } | |
524 | + //} | |
525 | 525 | |
526 | 526 | //alert($rootScope.getLocalStorageValue("currentViewTitle")); |
527 | 527 | ... | ... |