diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-05-31 21:48:41 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-05-31 21:48:41 -0400 |
| commit | f82085b21e8ab19d7316876c365b01e61995ebc7 (patch) | |
| tree | a4580f9575b06bcb83962442854d399c7b78703f | |
| parent | 434a9e28b27bd4df8d7d7ec9413f59f701f83c8f (diff) | |
created a separate gallery page
| -rw-r--r-- | MediaBrowser.Controller/IO/FileData.cs | 10 | ||||
| -rw-r--r-- | MediaBrowser.WebDashboard/Api/DashboardService.cs | 1 | ||||
| -rw-r--r-- | MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj | 6 |
3 files changed, 10 insertions, 7 deletions
diff --git a/MediaBrowser.Controller/IO/FileData.cs b/MediaBrowser.Controller/IO/FileData.cs index 0d253beba..2a62d98d0 100644 --- a/MediaBrowser.Controller/IO/FileData.cs +++ b/MediaBrowser.Controller/IO/FileData.cs @@ -52,14 +52,10 @@ namespace MediaBrowser.Controller.IO if (data.Exists) { - // Find out if the shortcut is pointing to a directory or file - if (data.Attributes.HasFlag(FileAttributes.Directory)) + // add to our physical locations + if (args != null) { - // add to our physical locations - if (args != null) - { - args.AddAdditionalLocation(newPath); - } + args.AddAdditionalLocation(newPath); } dict[data.FullName] = data; diff --git a/MediaBrowser.WebDashboard/Api/DashboardService.cs b/MediaBrowser.WebDashboard/Api/DashboardService.cs index 5ef413b55..a44123a39 100644 --- a/MediaBrowser.WebDashboard/Api/DashboardService.cs +++ b/MediaBrowser.WebDashboard/Api/DashboardService.cs @@ -472,6 +472,7 @@ namespace MediaBrowser.WebDashboard.Api "indexpage.js", "itembynamedetailpage.js", "itemdetailpage.js", + "itemgallery.js", "itemlistpage.js", "librarysettings.js", "loginpage.js", diff --git a/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj b/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj index c87b6f8fc..7927772ca 100644 --- a/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj +++ b/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj @@ -294,6 +294,9 @@ </Content>
</ItemGroup>
<ItemGroup>
+ <Content Include="dashboard-ui\itemgallery.html">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
<Content Include="dashboard-ui\librarysettings.html">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
@@ -339,6 +342,9 @@ <Content Include="dashboard-ui\scripts\edititemmetadata.js">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
+ <Content Include="dashboard-ui\scripts\itemgallery.js">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
<Content Include="dashboard-ui\scripts\librarysettings.js">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
|
