order icon instead of two buttons

This commit is contained in:
Athou
2013-04-10 15:51:31 +02:00
parent 3f1306c0a4
commit 9c77ec0210
2 changed files with 9 additions and 4 deletions

View File

@@ -244,6 +244,11 @@ module.controller('ToolbarCtrl', function($scope, $http, $state, $stateParams,
$scope.showButtons = function() {
return !$stateParams._keywords;
};
$scope.toggleOrder = function() {
var settings = $scope.settingsService.settings;
settings.readingOrder = settings.readingOrder == 'asc' ? 'desc' : 'asc';
};
$scope.toAdmin = function() {
$location.path('admin');