From 39e714a17a2f21c37d5c3228eb8d563b3621eb8e Mon Sep 17 00:00:00 2001 From: ulrich Date: Sun, 17 Jan 2021 11:32:09 +0000 Subject: [PATCH] Bearbeiten-Menue fertig, Stile verfeinert, Dateiauswahl vereinheitlicht, in Arbeit: Ansehen oder Bearbeiten --- web/ui2/js/data.js | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/web/ui2/js/data.js b/web/ui2/js/data.js index e819b0c..31df16e 100644 --- a/web/ui2/js/data.js +++ b/web/ui2/js/data.js @@ -50,17 +50,17 @@ this.fext = ''; this.typeClass = function () { - if (modus == 'kacheln') { + if (app.modus == 'kacheln') { if (self.fr.isDirectory) { - return 'fa-folder ordner'; + return 'icon-folder ordner'; } else { - return 'fa-file datei'; + return 'icon-doc-text-inv datei'; } } else { if (self.fr.isDirectory) { - return 'fa-folder ordner'; + return 'icon-folder ordner'; } else { - return 'fa-file-o datei'; + return 'icon-doc-text-inv datei'; } } }; @@ -81,11 +81,11 @@ }; this.dia = function () { - return fm_slideshow; + return app.fm_slideshow; }; this.miniurl = function () { - var userid = $('#userMenu').text(); + // var userid = $('#userMenu').text(); if (self.fext === '') { //self.fext = ''; var dotpos = self.fnx.indexOf('.'); @@ -95,14 +95,14 @@ self.fext = fny.substr(dotpos); } } - var path = fm_get_path(userid); - var imgurl = loc + path + '/' + self.fnx + '_tn' + self.fext; + var path = app.fm_get_path(app.userid); + var imgurl = app.loc + path + '/' + self.fnx + '_tn' + self.fext; return imgurl; }; this.bildurl = function () { - var userid = $('#userMenu').text(); + // var userid = $('#userMenu').text(); if (self.fext === '') { //self.fext = ''; var dotpos = self.fnx.indexOf('.'); @@ -112,8 +112,8 @@ self.fext = fny.substr(dotpos); } } - var path = fm_get_path(userid); - var imgurl = loc + path + '/' + self.fnx + self.fext; + var path = fm_get_path(app.userid); + var imgurl = app.loc + path + '/' + self.fnx + self.fext; return imgurl; }; -- Gitblit v1.9.3