created file sync
This commit is contained in:
17
web/app/assets/javascripts/edit_configuration_file_form.js
Normal file
17
web/app/assets/javascripts/edit_configuration_file_form.js
Normal 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();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user