Browse Source

created a separate gallery page

Luke Pulverenti 12 years ago
parent
commit
f82085b21e

+ 3 - 7
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;

+ 1 - 0
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",

+ 6 - 0
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>