Skip to content
This repository has been archived by the owner on Nov 5, 2020. It is now read-only.

Commit

Permalink
Adds sortorder to search
Browse files Browse the repository at this point in the history
  • Loading branch information
zrrrzzt committed Apr 10, 2014
1 parent 48a2250 commit e99d8f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 5 additions & 3 deletions index.html
Expand Up @@ -131,9 +131,11 @@ <h1>{{departmentName}}</h1>
{{#link-to 'avdeling.ansatte' tagName='li'}}
<a {bind-attr href="view.href"}>Vis ansatte</a>
{{/link-to}}
{{#link-to 'avdeling.kart' tagName='li'}}
<a {bind-attr href="view.href"}>Vis kart</a>
{{/link-to}}
{{#unless ShowMapButton}}
{{#link-to 'avdeling.kart' tagName='li'}}
<a {bind-attr href="view.href"}>Vis kart</a>
{{/link-to}}
{{/unless}}
</ul>
{{outlet}}
</script>
Expand Down
3 changes: 3 additions & 0 deletions js/app.js
Expand Up @@ -22,6 +22,8 @@ App.ApplicationController = Ember.Controller.extend({
});

App.SearchController = Ember.ArrayController.extend({
sortProperties: ['familyName', 'givenName'],
sortAscending: true,
itemController: 'ansatt'
});

Expand Down Expand Up @@ -54,6 +56,7 @@ App.AvdelingerRoute = Ember.Route.extend({
});

App.AvdelingController = Ember.ObjectController.extend({
ShowMapButton: false,
realUrl:'',
realMail:'',
formattedUrl: function(){
Expand Down

0 comments on commit e99d8f0

Please sign in to comment.