Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
77fd986c
Commit
77fd986c
authored
Nov 01, 2017
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code_mirror: support for YAPF
parent
cdc4177a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
bt5/erp5_code_mirror/SkinTemplateItem/portal_skins/erp5_code_mirror/code_mirror_support.txt
...tem/portal_skins/erp5_code_mirror/code_mirror_support.txt
+19
-0
No files found.
bt5/erp5_code_mirror/SkinTemplateItem/portal_skins/erp5_code_mirror/code_mirror_support.txt
View file @
77fd986c
...
@@ -239,6 +239,25 @@
...
@@ -239,6 +239,25 @@
function successHandler(data) {
function successHandler(data) {
generateHistorySelectElement();
generateHistorySelectElement();
/* check getTextContent have not changed server side (for example YAPF) */
if (mode == 'python') {
$.ajax({
type: 'GET',
url: 'getTextContent',
success: function refreshTextContent(textContent) {
if (textContent !== cm.getValue()) {
if (cm.hasFocus()) {
const cursorPosition = cm.getCursor();
cm.setValue(textContent);
cm.setCursor(cursorPosition);
} else {
cm.setValue(textContent);
}
}
}
});
}
transition_message = $('#transition_message');
transition_message = $('#transition_message');
transition_message.css('opacity', 0.0);
transition_message.css('opacity', 0.0);
transition_message.html(data);
transition_message.html(data);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment