Parcourir la source

Removed external storages from UI

Manuel Gall il y a 4 ans
Parent
commit
87b8538ad4
3 fichiers modifiés avec 7 ajouts et 5 suppressions
  1. 2 0
      server/ustore_Folders.txt
  2. 2 2
      ui/index.html
  3. 3 3
      ui/js/ustore.js

+ 2 - 0
server/ustore_Folders.txt

@@ -0,0 +1,2 @@
+Johannes_Folien
+xyz

+ 2 - 2
ui/index.html

@@ -104,11 +104,11 @@
         </div>
         
         
-        
+        <!--
         <a href="#" onclick="saveexternalfolder()">Add External Folder</a>
         <div id="ExternalFolders">
         </div>
-        
+        -->
         
         
         

+ 3 - 3
ui/js/ustore.js

@@ -103,7 +103,7 @@ function deleteFolder(datalink) {
 
 function listData(folder = ""){
   $('#Data').text("");
-  const imageext = ["png", "jpg", "svg"]
+  const imageext = ["png", "jpg", "svg", "JPG", "PNG", "SVG"]
   const movieext = ["mp4"]
   $('#imgUpload').attr("action", "../server/data/" + folder);
   
@@ -179,7 +179,7 @@ function triggerEvent(data) {
 function overlayOn(data) {
   var url = new URL("../storage/" + data, document.baseURI).href
   document.getElementById("overlay").style.display = "block";
-  const imageext = ["png", "jpg", "svg"]
+  const imageext = ["png", "jpg", "svg", "PNG", "JPG", "SVG"]
   const movieext = ["mp4"]
   var ext = url.substr(url.lastIndexOf('.') + 1);
   
@@ -303,7 +303,7 @@ function listExternalFolders(folder = ""){
 
 $(document).ready(function() { 
   listFolders();
-  listExternalFolders();
+  //listExternalFolders();
   getAllFolders();
 });