Removing last of controller dir
This commit is contained in:
		
							parent
							
								
									2229399aa6
								
							
						
					
					
						commit
						3501dc1986
					
				
					 3 changed files with 0 additions and 23 deletions
				
			
		| 
						 | 
				
			
			@ -1,18 +0,0 @@
 | 
			
		|||
import Ember from 'ember';
 | 
			
		||||
 | 
			
		||||
export default Ember.ArrayController.extend({
 | 
			
		||||
  queryParams: ['sortBy', 'sortAscending'],
 | 
			
		||||
  sortAscending: true,
 | 
			
		||||
  sortBy: null, // Set in subclass
 | 
			
		||||
  // Make sortProperties computed so that we have a nice URL using sortBy
 | 
			
		||||
  sortProperties: Ember.computed('sortBy', function() {
 | 
			
		||||
    return [this.get('sortBy')];
 | 
			
		||||
  }),
 | 
			
		||||
  actions: {
 | 
			
		||||
    setSortBy: function(fieldName) {
 | 
			
		||||
      this.set('sortBy', fieldName);
 | 
			
		||||
      this.toggleProperty('sortAscending');
 | 
			
		||||
      return false;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
});
 | 
			
		||||
| 
						 | 
				
			
			@ -1,5 +0,0 @@
 | 
			
		|||
import SortableController from '../../../controllers/sortable';
 | 
			
		||||
 | 
			
		||||
export default SortableController.extend({
 | 
			
		||||
  sortBy: 'speciesName',
 | 
			
		||||
});
 | 
			
		||||
		Reference in a new issue