linquize opened a new issue #954: Save document does not prompt invalid JSON
   Save document does not prompt invalid JSON
   ## Expected Behavior
   Prompt the user "Invalid JSON"
   ## Current Behavior
   1. If **Save** button is clicked, nothing shown. In browser console, a 
Javascript error occurred.
   SyntaxError: JSON.parse: expected ',' or '}' after property value in object 
at line 9 column 5 of the JSON data
   2. If **ctrl+S** is pressed, the browser's Save File Dialog shows, which is 
not the expected behaviour
   ## Possible Solution
   Prompt "invalid JSON", and handle **ctrl+S** hotkey when error
   ## Steps to Reproduce (for bugs)
   1. Edit a document with invalid JSON format
   2. Click the green "Save" button / Press hotkey **Ctrl+S**
   ## Context
   Does not realize I have JSON typo
   ## Your Environment
   * Version used: CouchDB 2.1
   * Browser Name and version: Firefox 54 x64
   * Operating System and version (desktop or mobile): Win 10 x64 version 1703
   * Link to your project: N/A
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

With regards,
Apache Git Services

Reply via email to