commit | 81aa90203c4e4ec769205bbd98e6bd2e06aba89e | [log] [tgz] |
---|---|---|
author | Shawn Pearce <sop@google.com> | Thu Jan 01 21:19:50 2015 -0500 |
committer | Shawn Pearce <sop@google.com> | Mon Jan 05 17:04:15 2015 -0800 |
tree | 94fa33f6f756daacdcd17659201cd6be3438d9aa | |
parent | 7a9608284d7bf63a05d409ab4b88fbd8d823b104 [diff] |
Inline Edit: Confirm discard of edits Initially disable the Save button until after changes are made. Use the CodeMirror4 edit system to track the mutation, allowing the Save button to re-disable after using undo. If the document is dirty, popup the standard Javascript window to ask if its OK to discard edits. On Cancel return back to the editor to allow saving, or to continue editing. Change-Id: Ic43e82fe083de4da9e9985ef12a3752bdb9d9928