| | |
| | | $('.codeeditor-space').hide(); |
| | | $('.code-editor-container').hide(); |
| | | $('#newTextFile').on('click', fm_menu_neue_textdatei); |
| | | $('#newFolder').on('click', fm_menu_neuer_ordner); |
| | | $('#newFolder').on('click', fm_get_new_folder); |
| | | $('#editTextFile').on('click', fm_get_file_content); |
| | | $('#saveFile').on('click', fm_menu_datei_speichern); |
| | | $('#closeFile').on('click', fm_menu_datei_schliessen); |
| | |
| | | } |
| | | |
| | | function fm_menu_neue_textdatei() { |
| | | fm_text_edit('Test'); |
| | | fm_text_edit('Neue Datei'); |
| | | } |
| | | |
| | | function fm_menu_datei_schliessen() { |
| | |
| | | cm.toTextArea(); |
| | | $('#bcnav').show(); |
| | | $('#dateien').show(); |
| | | fm_get_list(pfad); |
| | | } |
| | | |
| | | function fm_dateiwahl() { |
| | |
| | | fm_get_list(pfad); |
| | | } |
| | | } |
| | | } |
| | | |
| | | function fm_menu_neuer_ordner() { |
| | | fm_get_new_folder(); |
| | | } |
| | | |
| | | function fm_bc_click() { |
| | |
| | | var m = '?c=de.uhilger.filecms.api.FileMgr&m=newFolder&p=' + pfad + '&p=' + $('#dateiname').val(); |
| | | var u = '../svc' + m; |
| | | fm_get(u, "json", function(resp) { |
| | | |
| | | fm_get_list(pfad); |
| | | }); |
| | | }); |
| | | $('.modal-title').text('Neuer Ordner'); |