Fix 'ctrl+s' in inlineEditors that use CodeMirror.
Review Request #6133 — Created July 22, 2014 and submitted
inlineEditor has two functions that save the contents:
saveandsubmit. Of
these two,saveis really just meant to be an internal helper, andsubmit
is the one that does a lot of the necessary cleanup.The handler for 'ctrl+s' was calling
save, which caused the editor box to
disappear. Changing it tosubmitmakes everything work correctly.
Opened an inline editor that used CodeMirror and hit ctrl+s. Saw the input box
disappear and be replaced with the rendered contents.
Tool: PEP8 Style Checker Ignored Files: djblets/static/djblets/js/jquery.gravy.inlineEditor.js Tool: Pyflakes Ignored Files: djblets/static/djblets/js/jquery.gravy.inlineEditor.js