created file sync

This commit is contained in:
Senad Uka
2016-02-21 19:17:04 +01:00
parent 709ce3e38c
commit ac099e3210
18 changed files with 230 additions and 28 deletions

View File

@@ -0,0 +1,17 @@
$(document).ready(function() {
var editor = ace.edit("editor");
//editor.setTheme("ace/theme/monokai");
//editor.getSession().setMode("ace/mode/javascript");
editor.setOptions({
maxLines: 40
});
editor.resize();
$("#save_button").click(function() {
var content = editor.getValue();
$("#content").val(content);
var filePath = $("#visible_file_path").val()
$("#file_path").val(filePath)
$("#update_form").submit();
});
});