From bf56be31ddaaee5333625e2f5a2e733f7651c7ef Mon Sep 17 00:00:00 2001 From: ulrich Date: Thu, 21 Jan 2021 18:44:56 +0000 Subject: [PATCH] Ausbau jquery aus foto-ui und umstellung des foto ui auf flex-box, noch in arbeit --- web/ui2/js/data.js | 28 ++++++++++++++++------------ 1 files changed, 16 insertions(+), 12 deletions(-) diff --git a/web/ui2/js/data.js b/web/ui2/js/data.js index e819b0c..e3517bc 100644 --- a/web/ui2/js/data.js +++ b/web/ui2/js/data.js @@ -27,6 +27,10 @@ /* ----- Objekte ----- */ +function Meldung(tx) { + this.mtext = tx; +} + function IssueList(il) { this.issues = il; } @@ -50,17 +54,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 +85,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 +99,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 +116,8 @@ self.fext = fny.substr(dotpos); } } - var path = fm_get_path(userid); - var imgurl = loc + path + '/' + self.fnx + self.fext; + var path = app.fm_get_path(app.userid); + var imgurl = app.loc + path + '/' + self.fnx + self.fext; return imgurl; }; -- Gitblit v1.9.3