added default library layout setting
so you can decide if you show list or grid by default
This commit is contained in:
parent
eebdb25a39
commit
fc231e1c0b
4 changed files with 15 additions and 3 deletions
|
@ -131,6 +131,7 @@ JamStash.service('globals', function (utils) {
|
|||
SaveTrackPosition: false,
|
||||
ForceFlash: false,
|
||||
Theme: "Default",
|
||||
DefaultLibraryLayout: "grid",
|
||||
AutoPlay: false,
|
||||
LoopQueue: false,
|
||||
Repeat: false,
|
||||
|
|
|
@ -32,7 +32,8 @@ function SubsonicCtrl($scope, $rootScope, $location, $window, $routeParams, util
|
|||
$scope.sortSubsonicAlbums(newValue);
|
||||
}
|
||||
});
|
||||
$scope.selectedLayout = 'grid';
|
||||
$scope.selectedLayout = globals.settings.DefaultLibraryLayout;
|
||||
//not sure how to just grab the layouts hash from the settings controller
|
||||
$scope.Layouts = [
|
||||
{ id: "list", name: "List" },
|
||||
{ id: "grid", name: "Grid" },
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -41,6 +41,11 @@
|
|||
<div class="clear"></div>
|
||||
<div class="inputwrap"><input type="checkbox" id="ScrollTitle" name="ScrollTitle" value="1" title="Scroll the Title Once" ng-model="settings.ScrollTitle"/></div>
|
||||
<label for="ScrollTitle">Scroll Title</label>
|
||||
<div class="clear"></div>
|
||||
<label for="DefaultLibraryLayout">Default Library Layout</label>
|
||||
<div class="clear"></div>
|
||||
<select id="DefaultLibraryLayout" name="DefaultLibraryLayout" class="" ng-model="settings.DefaultLibraryLayout" ng-options="o.id as o.name for o in LibraryLayouts" title="AJAX Request Library Layout"></select>
|
||||
<div class="clear"></div>
|
||||
</fieldset>
|
||||
<div class="clear"></div>
|
||||
<fieldset id="HTML5">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue