couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robertkowalski <>
Subject [GitHub] couchdb-fauxton pull request: Update full page document editor
Date Thu, 25 Dec 2014 16:08:33 GMT
Github user robertkowalski commented on a diff in the pull request:
    --- Diff: app/addons/documents/views-doceditor.js ---
    @@ -505,23 +428,25 @@ function (app, FauxtonAPI, Components, Documents, Databases, prettify)
    -          //check the changedDoc has all the required standard keys
    -          if (_.isEmpty(_.difference(keyChecked, _.keys(changedDoc)))) { return; }
    +          // check the changedDoc has all the required standard keys
    +          if (_.isEmpty(_.difference(keyChecked, _.keys(changedDoc)))) {
    +            return;
    +          }
               setTimeout(function () { editor.setReadOnly(false) ;}, 400);
               // use extend so that _id stays at the top of the object with displaying the
               changedDoc = _.extend({_id:, _rev: model.get('_rev')}, changedDoc);
               editor.setValue(JSON.stringify(changedDoc, null, '  '));
                 type: 'error',
    -            msg: 'Cannot remove a documents Id or Revision.',
    -            clear:  true
    +            msg: 'Cannot remove a document\'s id or revision.',
    --- End diff --
    `msg: "Cannot remove a document's id or revision."`
    is easier to read and write

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message