| | |
| | | var self = this; |
| | | this.fr = obj; |
| | | this.fnx; |
| | | this.fext = ''; |
| | | |
| | | this.typeClass = function() { |
| | | if(modus == 'kacheln') { |
| | |
| | | return miniatur; |
| | | }; |
| | | |
| | | this.dia = function() { |
| | | return fm_slideshow; |
| | | }; |
| | | |
| | | this.miniurl = function() { |
| | | var userid = $('#userMenu').text(); |
| | | var ext = ''; |
| | | var dotpos = self.fnx.indexOf('.'); |
| | | if(dotpos > -1) { |
| | | var fny = self.fnx; |
| | | self.fnx = self.fnx.substring(0, dotpos); |
| | | ext = fny.substr(dotpos); |
| | | if(self.fext === '') { |
| | | //self.fext = ''; |
| | | var dotpos = self.fnx.indexOf('.'); |
| | | if(dotpos > -1) { |
| | | var fny = self.fnx; |
| | | self.fnx = self.fnx.substring(0, dotpos); |
| | | self.fext = fny.substr(dotpos); |
| | | } |
| | | } |
| | | var path = fm_get_path(userid); |
| | | var imgurl = loc + path + '/' + self.fnx + '_tn' + ext; |
| | | var imgurl = loc + path + '/' + self.fnx + '_tn' + self.fext; |
| | | return imgurl; |
| | | |
| | | }; |
| | | |
| | | this.bildurl = function() { |
| | | var userid = $('#userMenu').text(); |
| | | if(self.fext === '') { |
| | | //self.fext = ''; |
| | | var dotpos = self.fnx.indexOf('.'); |
| | | if(dotpos > -1) { |
| | | var fny = self.fnx; |
| | | self.fnx = self.fnx.substring(0, dotpos); |
| | | self.fext = fny.substr(dotpos); |
| | | } |
| | | } |
| | | var path = fm_get_path(userid); |
| | | var imgurl = loc + path + '/' + self.fnx + self.fext; |
| | | return imgurl; |
| | | }; |
| | | |
| | | this.fileName = function() { |
| | |
| | | } |
| | | |
| | | }; |
| | | |
| | | this.fileDate = function() { |
| | | return moment(self.fr.lastModified).format("YYYY-MM-DD-hh-mm-ss-SSS"); |
| | | }; |
| | | |
| | | this.fileSize = function() { |
| | | return numeral(self.fr.length).format("0.00 b"); |
| | | }; |
| | | } |
| | | |
| | | function BcrFiles(fl) { |