| | |
| | | this.fm_menu_html_export = function() { |
| | | self.fm_export_html(); |
| | | }; |
| | | |
| | | this.sued_schliessen = function() { |
| | | var suedDiv = document.querySelector('.sued'); |
| | | document.querySelector('.close-btn-fuss').removeEventListener('click', this); |
| | | suedDiv.classList.remove('sued-open'); |
| | | suedDiv.style.height = '0'; |
| | | }; |
| | | |
| | | /* --------- Dateifunktionen Ende ---------- */ |
| | | |
| | |
| | | //console.log(html); |
| | | var elem = document.querySelector('.sued'); |
| | | elem.innerHTML = html; |
| | | document.querySelector('.close-btn-fuss').addEventListener('click', self.sued_schliessen); |
| | | |
| | | /* |
| | | document.querySelector('.close-btn-fuss').addEventListener('click', function(){ |
| | | var suedDiv = document.querySelector('.sued'); |
| | | document.querySelector('.close-btn-fuss').removeEventListener('click', this); |
| | | suedDiv.classList.remove('sued-open'); |
| | | suedDiv.style.height = '0'; |
| | | }); |
| | | */ |
| | | self.fm_fusszeile_zeigen(); |
| | | self.fm_get_list(self.pfad); |
| | | }); |
| | | }); |
| | | }; |
| | | |
| | | this.fm_pack_folder = function() { |
| | | //var liste = fm_gewaehlte_dateien(); |
| | | var m = '?c=de.uhilger.filecms.api.FileMgr&m=packFolder&p=' + self.pfad; |
| | | var u = '../svc' + m; |
| | | self.fm_get(u, "text", function(resp) { |
| | | // console.log('deleteFiles gab folgendes zurueck: ' + resp); |
| | | self.fm_get_list(self.pfad); |
| | | }); |
| | | }; |
| | | |
| | | this.fm_export_html = function() { |
| | | var m = '?c=de.uhilger.filecms.api.HtmlExportService&m=exportHtml'; |
| | | m = m + '&p=' + self.pfad; |
| | | var u = '../svc' + m; |
| | | self.fm_get(u, "text", function(resp) { |
| | | var mtx = new Meldung('Rueckmeldung vom HTML-Export: ' + resp); |
| | | //console.log(mtx); |
| | | self.html_erzeugen("data/tpl/fuss.tpl", mtx, function(html) { |
| | | var elem = document.querySelector('.sued'); |
| | | elem.innerHTML = html; |
| | | document.querySelector('.close-btn-fuss').addEventListener('click', self.sued_schliessen); |
| | | self.fm_fusszeile_zeigen(); |
| | | //self.fm_get_list(self.pfad); |
| | | /* |
| | | $('.system-out').empty(); |
| | | $('.system-out').append('Rueckmeldung vom HTML-Export: ' + resp); |
| | | fm_fusszeile_zeigen(); |
| | | */ |
| | | }); |
| | | }); |
| | | }; |
| | | |
| | | |
| | | /* -------- upload ----------- */ |
| | | |