Commit e7cd3044eae9950d8c303f68df6b237e098c1c4e
1 parent
7cf6d0ab
this is solution of bug 25066
Showing
1 changed file
with
12 additions
and
3 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js
@@ -37,7 +37,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou | @@ -37,7 +37,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou | ||
37 | $scope.activePinArray = []; | 37 | $scope.activePinArray = []; |
38 | $scope.showTabButton = true; | 38 | $scope.showTabButton = true; |
39 | $scope.isListViewDataLoaded = true; | 39 | $scope.isListViewDataLoaded = true; |
40 | - | 40 | + $rootScope.isSliderSlide = false; |
41 | $scope.setActiveTab = function (tabToSet) { | 41 | $scope.setActiveTab = function (tabToSet) { |
42 | 42 | ||
43 | $scope.activeTab = tabToSet; | 43 | $scope.activeTab = tabToSet; |
@@ -272,6 +272,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou | @@ -272,6 +272,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou | ||
272 | range: "min", | 272 | range: "min", |
273 | orientation: "vertical", | 273 | orientation: "vertical", |
274 | slide: function (event, ui) { | 274 | slide: function (event, ui) { |
275 | + $rootScope.isSliderSlide = true; | ||
275 | var scope = angular.element(document.getElementById("aaDetailPageDiv")).scope(); | 276 | var scope = angular.element(document.getElementById("aaDetailPageDiv")).scope(); |
276 | scope.$apply(function () { | 277 | scope.$apply(function () { |
277 | scope.sliderVal = ui.value; | 278 | scope.sliderVal = ui.value; |
@@ -463,9 +464,17 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou | @@ -463,9 +464,17 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou | ||
463 | }) | 464 | }) |
464 | 465 | ||
465 | 466 | ||
466 | - | 467 | + |
467 | //load search/vocab data | 468 | //load search/vocab data |
468 | - $rootScope.loadSearchData(); | 469 | + if ($rootScope.isSliderSlide == true) { |
470 | + | ||
471 | + $rootScope.isSliderSlide = false; | ||
472 | + | ||
473 | + } | ||
474 | + else { | ||
475 | + $rootScope.loadSearchData(); | ||
476 | + | ||
477 | + } | ||
469 | } | 478 | } |
470 | }, | 479 | }, |
471 | function (error) { | 480 | function (error) { |