debian-mirror-gitlab/app/assets/javascripts/snippet/snippet_bundle.js
2017-08-17 22:00:37 +05:30

12 lines
345 B
JavaScript

/* eslint-disable func-names, space-before-function-paren, prefer-arrow-callback, no-var, quotes, max-len */
/* global ace */
(function() {
$(function() {
var editor = ace.edit("editor");
$(".snippet-form-holder form").on('submit', function() {
$(".snippet-file-content").val(editor.getValue());
});
});
}).call(window);