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"} );
$(this.el).insert(mycurrent_row);
/* icon */
var __img ="/images/ftype_file.png";
switch (fp.get('type')){
case "folder": __img = "/images/ftype_folder.png"; break;
case "link": __img = "/images/ftype_link.png"; break;
case "file": __img = "/images/ftype_file.png";
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 "file": case "tar": case "zip": case "tar.gz":
var __img = "/images/ftype_file.png";
switch (fp.get('type')) {
case "folder":
__img = "/images/ftype_folder.png";
break;
case "link":
__img = "/images/ftype_link.png";
break;
case "file":
__img = "/images/ftype_file.png";
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";
case "file": case "txt": case "ini": case "conf":
break;
case "file":
case "txt":
case "ini":
case "conf":
__img = "/images/text.png";
break;
}
@@ -426,10 +447,11 @@ function do_prop(prop){
}
break;
case "jpg":
case "png":
case "jpeg":
case "bmp":
case "gif":
case "ico":
case "png":
prop_plugin_img(fullfname);
break;
case "ts":

View File

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