Skip to content

Commit

Permalink
Merge branch 'master' into issue-229
Browse files Browse the repository at this point in the history
  • Loading branch information
boehsermoe committed Mar 5, 2019
2 parents 933ece9 + 5d45200 commit f3a2b50
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ This release contains new migrations and requires to run the `migrate` command a

### Added

+ [#205](https://github.com/luyadev/luya-module-admin/issues/205) CRUD search works now in filters and relation calls, sorting and pagination works in searching.
+ [#216](https://github.com/luyadev/luya-module-admin/issues/216) File manager file detail view provides option to tag files.
+ [#259](https://github.com/luyadev/luya-module-admin/pull/259) SelectRelationActiveQuery supports related i18n label fields
+ [#253](https://github.com/luyadev/luya-module-admin/pull/253) Added command action to reset password for users via cli.
Expand Down
2 changes: 1 addition & 1 deletion src/resources/dist/js/main.uglified.js

Large diffs are not rendered by default.

13 changes: 11 additions & 2 deletions src/resources/js/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@
} else {
cfpLoadingBar.start();
$scope.searchPromise = $timeout(function() {
$scope.generateSearchPromise(n, 1);
}, 500)
$scope.reloadCrudList(1);
}, 700)
}
};

Expand Down Expand Up @@ -565,6 +565,11 @@
if (pageId !== undefined) {
url = url + '&page=' + pageId;
}

var query = $scope.config.searchQuery;
if (query) {
url = url + '&query=' + query;
}

return url;
};
Expand All @@ -573,13 +578,17 @@
$scope.reloadCrudList = function(pageId) {
if (parseInt($scope.config.filter) == 0) {

/*
if ($scope.config.searchQuery) {
return $scope.generateSearchPromise($scope.config.searchQuery, pageId);
}
*/

if ($scope.config.relationCall) {
var url = $scope.generateUrlWithParams('relation-call', pageId);
url = url + '&arrayIndex=' + $scope.config.relationCall.arrayIndex + '&id=' + $scope.config.relationCall.id + '&modelClass=' + $scope.config.relationCall.modelClass;
} else if ($scope.config.searchQuery) {
return $scope.generateSearchPromise($scope.config.searchQuery, pageId);
} else {
var url = $scope.generateUrlWithParams('list', pageId);
}
Expand Down

0 comments on commit f3a2b50

Please sign in to comment.