Commit 58e4a39bbe3f216f62b4f799fc055b27b3cd850c

Authored by Amrita Vishnoi
1 parent aa41639f

copied code from gitlab from develop brach, don't understand why showing modifie…

…d file although had reset Develop
400-SOURCECODE/AIAHTML5.Web/app/controllers/ADAMImgController.js
1   -AIA.controller("ADAMImgController", ["$scope", "$rootScope", "pages", "$log","$location",
2   -function ($scope, $rootScope, pages, log, $location) {
3   - $scope.showTabButton = true;
4   - $scope.IsVisible = function () {
5   - $scope.scroll();
6   -
7   - }
8   -
9   - $scope.scroll = function () {
10   - // $window.scrollTo(0, 0);
11   - $("html,body").scrollTop(0);
12   - //alert("scroll");
13   - }
14   - $scope.$on('$viewContentLoaded', function (event) {
15   - // code that will be executed ...
16   - // every time this view is loaded
17   -
  1 +AIA.controller("ADAMImgController", ["$scope", "$rootScope", "pages", "$log", "$location",
  2 +function ($scope, $rootScope, pages, log, $location) {
  3 + $scope.showTabButton = true;
  4 + $scope.IsVisible = function () {
  5 + $scope.scroll();
  6 +
  7 + }
  8 +
  9 + $scope.scroll = function () {
  10 + // $window.scrollTo(0, 0);
  11 + $("html,body").scrollTop(0);
  12 + //alert("scroll");
  13 + }
  14 + $scope.$on('$viewContentLoaded', function (event) {
  15 + // code that will be executed ...
  16 + // every time this view is loaded
  17 +
18 18 //get current path
19 19 var currentURL = $location.path();
20 20 var selectedModuleName = '';
... ... @@ -24,11 +24,11 @@ function ($scope, $rootScope, pages, log, $location) {
24 24 selectedModuleName = value.name;
25 25 }
26 26 $rootScope.currentActiveModuleTitle = selectedModuleName;
27   - })
28   - })
29   -
30   -}]
31   -
32   -
33   -
  27 + })
  28 + })
  29 +
  30 +}]
  31 +
  32 +
  33 +
34 34 );
35 35 \ No newline at end of file
... ...