added default library layout setting

so you can decide if you show list or grid by default
This commit is contained in:
Alex Norman 2013-12-03 10:53:41 -08:00
parent eebdb25a39
commit fc231e1c0b
4 changed files with 15 additions and 3 deletions

View file

@ -13,6 +13,11 @@ function SettingsCtrl($scope, $routeParams, $location, utils, globals, json, not
];
$scope.Protocols = ["json", "jsonp"];
$scope.Themes = ["Default", "Dark"];
$scope.LibraryLayouts = [
{ id: "list", name: "List" },
{ id: "grid", name: "Grid" },
];
$scope.DefaultLibraryLayout = 'grid';
$scope.$watch('settings.HideAZ', function () {
if (globals.settings.HideAZ) {
$('#AZIndex').hide();
@ -73,4 +78,4 @@ function SettingsCtrl($scope, $routeParams, $location, utils, globals, json, not
/* Load on Startup */
/* End Startup */
});
});