| | |
| | | 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'; |
| | | } |
| | | } |
| | | }; |
| | |
| | | }; |
| | | |
| | | 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('.'); |
| | |
| | | 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('.'); |
| | |
| | | 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; |
| | | }; |
| | | |