yWeb: fix filetype icons Y_Filemgr.yhtm

Origin commit data
------------------
Branch: ni/coolstream
Commit: a375564933
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-09-10 (Sat, 10 Sep 2022)

Origin message was:
------------------
- yWeb: fix filetype icons Y_Filemgr.yhtm

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2022-09-10 22:20:29 +02:00
parent 515fe074b8
commit f7388f5a39
2 changed files with 36 additions and 14 deletions

View File

@@ -46,19 +46,40 @@ CyExplorer.prototype = {
var mycurrent_row = new Element( 'tr', {'class': ((this.line_number % 2) ==0)?"a":"b"} ); var mycurrent_row = new Element( 'tr', {'class': ((this.line_number % 2) ==0)?"a":"b"} );
$(this.el).insert(mycurrent_row); $(this.el).insert(mycurrent_row);
/* icon */ /* icon */
var __img ="/images/ftype_file.png"; var __img = "/images/ftype_file.png";
switch (fp.get('type')){ switch (fp.get('type')) {
case "folder": __img = "/images/ftype_folder.png"; break; case "folder":
case "link": __img = "/images/ftype_link.png"; break; __img = "/images/ftype_folder.png";
case "file": __img = "/images/ftype_file.png"; break;
switch (fp.get('ext')){ case "link":
case "ts": case "ps": case "pes": case "avi": __img = "/images/ftype_link.png";
__img = "/images/film.png"; break; break;
case "jpg": case "jpeg": case "bmp": case "gif": case "ico": case "png": case "file":
__img = "/images/picture.png"; break; __img = "/images/ftype_file.png";
case "file": case "tar": case "zip": case "tar.gz": switch (fp.get('ext')) {
case "ts":
case "ps":
case "pes":
case "avi":
__img = "/images/film.png";
break;
case "jpg":
case "jpeg":
case "bmp":
case "gif":
case "ico":
case "png":
__img = "/images/picture.png";
break;
case "tar":
case "tar.gz":
case "zip":
__img = "/images/package.png"; __img = "/images/package.png";
case "file": case "txt": case "ini": case "conf": break;
case "file":
case "txt":
case "ini":
case "conf":
__img = "/images/text.png"; __img = "/images/text.png";
break; break;
} }
@@ -426,10 +447,11 @@ function do_prop(prop){
} }
break; break;
case "jpg": case "jpg":
case "png": case "jpeg":
case "bmp": case "bmp":
case "gif": case "gif":
case "ico": case "ico":
case "png":
prop_plugin_img(fullfname); prop_plugin_img(fullfname);
break; break;
case "ts": case "ts":

View File

@@ -1,3 +1,3 @@
version=2.9.1.10 version=2.9.1.11
date=06.09.2022 date=06.09.2022
info=NI-Neutrino info=NI-Neutrino