Открыть боковую панель
nt_test121
nt_project_9da4a5yt9x4b
Коммиты
9401723b
Не подтверждена
Коммит
9401723b
создал
Июл 26, 2016
по автору
Luke Bennett
Просмотр файлов
Fixed tests
владелец
cdb5c5ee
Изменения
1
Скрыть пробелы
Построчно
Рядом
app/assets/javascripts/blob/edit_blob.js.es6
Просмотр файла @
9401723b
...
...
@@ -6,7 +6,7 @@
this.editor = ace.edit('editor');
this.editor.focus();
if (aceMode) this.editor.getSession().setMode
`ace/mode/${aceMode}`;
if (aceMode) this.editor.getSession().setMode
(
`ace/mode/${aceMode}`
)
;
$('form').submit(() => {
$('#file-content').val(this.editor.getValue());
...
...
@@ -22,7 +22,7 @@
initModePanesAndLinks() {
this.$editModePanes = $('.js-edit-mode-pane');
this.$editModeLinks = $('.js-edit-mode a');
this.$editModeLinks.click(this.editModeLinkClickHandler);
this.$editModeLinks.click(
(e) =>
this.editModeLinkClickHandler
(e)
);
}
editModeLinkClickHandler(event) {
...
...
@@ -34,7 +34,7 @@
$currentLink.parent().addClass('active hover');
this.$editModePanes.hide();
currentPane.fadeIn(200);
if (pa
d
eId === '#preview') {
if (pa
n
eId === '#preview') {
$.post($currentLink.data('preview-url'), {
content: this.editor.getValue()
}, (response) => {
...
...
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать