Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve search engine #16

Merged
merged 4 commits into from
Aug 2, 2017
Merged

Conversation

cryptobioz
Copy link
Member

Fix design bugs and add the possibility to create permalinks.

@@ -312,6 +324,27 @@ app.controller("tbSearchCtrl", ['$scope', '$http', '$location', '$routeParams',
$scope.attrKey = undefined;
$scope.attrVal = undefined;
$scope.results = undefined;
$scope.doSearch(1);
$location.url('/search');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two comments here:

  • absolute URLs break with the base href, only use relative URLs;
  • why not use $location.search() instead?

params.page = page;
}
var query = $.param(params);
$location.url('/search?'+query);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, do not use absolute URLs here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On my screen, the fields are a bit on top of each other for some reason

screenshot from 2017-08-01 20-10-54

@raphink raphink merged commit 8fea4ab into camptocamp:master Aug 2, 2017
@cryptobioz cryptobioz mentioned this pull request Aug 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants