diff --git a/src/VirtoCommerce.PricingModule.Web/Scripts/selectors/catalog-selector.js b/src/VirtoCommerce.PricingModule.Web/Scripts/selectors/catalog-selector.js
index ffc618fd..435a6c55 100644
--- a/src/VirtoCommerce.PricingModule.Web/Scripts/selectors/catalog-selector.js
+++ b/src/VirtoCommerce.PricingModule.Web/Scripts/selectors/catalog-selector.js
@@ -1,6 +1,6 @@
angular.module('virtoCommerce.pricingModule')
.controller('virtoCommerce.pricingModule.catalogSelectorController', ['$scope', 'virtoCommerce.catalogModule.catalogs', function ($scope, catalogs) {
- catalogs.search({ take: 1000 }, function (result) {
- $scope.catalogs = angular.copy(result.results);
- });
+ $scope.blade.fetchCatalogs = function (criteria) {
+ return catalogs.search(criteria);
+ }
}]);
diff --git a/src/VirtoCommerce.PricingModule.Web/Scripts/selectors/catalog-selector.tpl.html b/src/VirtoCommerce.PricingModule.Web/Scripts/selectors/catalog-selector.tpl.html
index 8cc8e0d3..21a11533 100644
--- a/src/VirtoCommerce.PricingModule.Web/Scripts/selectors/catalog-selector.tpl.html
+++ b/src/VirtoCommerce.PricingModule.Web/Scripts/selectors/catalog-selector.tpl.html
@@ -1,8 +1,6 @@
-
- {{$item.name}}
-
-
-
-
+
+
diff --git a/src/VirtoCommerce.PricingModule.Web/Scripts/selectors/pricelist-selector.js b/src/VirtoCommerce.PricingModule.Web/Scripts/selectors/pricelist-selector.js
index fcf38876..07826e17 100644
--- a/src/VirtoCommerce.PricingModule.Web/Scripts/selectors/pricelist-selector.js
+++ b/src/VirtoCommerce.PricingModule.Web/Scripts/selectors/pricelist-selector.js
@@ -1,6 +1,6 @@
angular.module('virtoCommerce.pricingModule')
.controller('virtoCommerce.pricingModule.pricelistSelectorController', ['$scope', 'virtoCommerce.pricingModule.pricelists', function ($scope, pricelists) {
- pricelists.search({ take: 1000 }, function (result) {
- $scope.pricelists = result.results;
- });
+ $scope.blade.fetchPricelists = function (criteria) {
+ return pricelists.search(criteria);
+ };
}]);
diff --git a/src/VirtoCommerce.PricingModule.Web/Scripts/selectors/pricelist-selector.tpl.html b/src/VirtoCommerce.PricingModule.Web/Scripts/selectors/pricelist-selector.tpl.html
index 1efe4b37..c9a2d605 100644
--- a/src/VirtoCommerce.PricingModule.Web/Scripts/selectors/pricelist-selector.tpl.html
+++ b/src/VirtoCommerce.PricingModule.Web/Scripts/selectors/pricelist-selector.tpl.html
@@ -1,8 +1,6 @@
-
- {{$item.name}}
-
-
-
-
+
+