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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Paul Graydon
erp5
Commits
e594a856
Commit
e594a856
authored
May 08, 2015
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_code_mirror: Allow saving with C-s in the ZMI.
Signed-off-by:
Jérome Perrin
<
jerome@nexedi.com
>
parent
c85a840f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
bt5/erp5_code_mirror/SkinTemplateItem/portal_skins/erp5_code_mirror/code_mirror_support.xml
...tem/portal_skins/erp5_code_mirror/code_mirror_support.xml
+12
-2
bt5/erp5_code_mirror/bt/change_log
bt5/erp5_code_mirror/bt/change_log
+3
-0
No files found.
bt5/erp5_code_mirror/SkinTemplateItem/portal_skins/erp5_code_mirror/code_mirror_support.xml
View file @
e594a856
...
@@ -234,7 +234,7 @@
...
@@ -234,7 +234,7 @@
}\n
}\n
\n
\n
// Save source code only through an AJAX request\n
// Save source code only through an AJAX request\n
function saveDocument(cm, event) {\n
function save
Component
Document(cm, event) {\n
event.stopPropagation();\n
event.stopPropagation();\n
event.preventDefault();\n
event.preventDefault();\n
\n
\n
...
@@ -332,9 +332,19 @@
...
@@ -332,9 +332,19 @@
data: edit_data,\n
data: edit_data,\n
success: successHandler,\n
success: successHandler,\n
error: errorHandler});\n
error: errorHandler});\n
\n
\n
return false;\n
return false;\n
}\n
}\n
\n
function saveZMIDocument(cm, event) {\n
$(\'input[value="Save Changes"]\').click();\n
return false;\n
}\n
\n
if($(\'input[value="Save Changes"]\').length)\n
saveDocument = saveZMIDocument;\n
else\n
saveDocument = saveComponentDocument;\n
\n
\n
function switchToFullScreen(cm) {\n
function switchToFullScreen(cm) {\n
element = $(\'#merge\')[0];\n
element = $(\'#merge\')[0];\n
...
...
bt5/erp5_code_mirror/bt/change_log
View file @
e594a856
2015-05-08 arnaud.fontaine
* Allow saving with C-s in the ZMI.
2015-04-23 arnaud.fontaine
2015-04-23 arnaud.fontaine
* Add support for the ZMI.
* Add support for the ZMI.
...
...
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