| | |
| | | function fm_init() { |
| | | $('.codeeditor-space').hide(); |
| | | $('.code-editor-container').hide(); |
| | | //$('.ost').attr('flex-basis', 0); |
| | | $('#newTextFile').on('click', fm_menu_neue_textdatei); |
| | | $('#newFolder').on('click', fm_get_new_folder); |
| | | $('#editTextFile').on('click', fm_get_file_content); |
| | | $('#saveFile').on('click', fm_menu_datei_speichern); |
| | | $('#saveFileAs').on('click', fm_menu_datei_speichern_unter); |
| | | $('#closeFile').on('click', fm_menu_datei_schliessen); |
| | | $('#m-test').on('click', fm_menu_test); |
| | | $('#saveModal').on('hidden.bs.modal', function (e) { |
| | | $('#modal_ok').attr('onclick','').unbind('click'); |
| | | }); |
| | |
| | | fm_get_list(''); |
| | | } |
| | | |
| | | function fm_menu_test() { |
| | | var w = $('.ost').width(); |
| | | console.log('.ost.width: ' + w); |
| | | if(w == 0) { |
| | | $('.ost').width('20%'); |
| | | $('.ost').text('Hallo Welt!'); |
| | | } else { |
| | | $('.ost').empty(); |
| | | $('.ost').width(0); |
| | | } |
| | | } |
| | | |
| | | function fm_ansicht_umschalten() { |
| | | if($('#ansicht').children(0).hasClass('fa-th-list')) { |
| | | $('#ansicht').children(0).addClass('fa-th-large'); |